as2_python_api.behavior_actions.navigate_to_behavior module

Navigate To Behavior.

class as2_python_api.behavior_actions.navigate_to_behavior.NavigateToBehavior(drone: DroneInterfaceBase)

Bases: BehaviorHandler

Navigate To Behavior class.

modify(pose: Pose | PoseStamped, speed: float, yaw_mode: int, yaw_angle: float, frame_id: str = 'earth')
start(pose: Pose | PoseStamped, speed: float, yaw_mode: int, yaw_angle: float, frame_id: str = 'earth', wait_result: bool = True) bool

Start behavior.

Parameters:
  • goal_msg (Goal) – behavior goal

  • wait_result (bool, optional) – wait to behavior end, defaults to True

Raises:

self.GoalRejected – on goal rejection

Returns:

succeeded or not

Return type:

bool