Ejemplo n.º 1
0
        public static SteeringOutput GetSteering(KinematicState ownKS, SArrive arriveInfo, SObstacleAvoidance obstacleInfo, ref bool obstacleAvoided)
        {
            SteeringOutput obstacleAvoidSteering = ObstacleAvoidance.GetSteering(ownKS, obstacleInfo);

            if (obstacleAvoidSteering != NULL_STEERING)
            {
                obstacleAvoided = true;
                return(obstacleAvoidSteering);
            }

            obstacleAvoided = false;
            return(Arrive.GetSteering(ownKS, arriveInfo));
        }
Ejemplo n.º 2
0
 public void SetInfo(SArrive arrive, SObstacleAvoidance obstacleAvoidance)
 {
     m_arriveInfo            = arrive;
     m_obstacleAvoidanceInfo = obstacleAvoidance;
 }