as2_python_api.behavior_actions package
Submodules
as2_python_api.behavior_actions.behavior_handler module
Behavior handler. Abstract class to handle behaviors.
- class as2_python_api.behavior_actions.behavior_handler.BehaviorHandler(node: Node, action_msg, behavior_name)[source]
Bases:
ABC
Behavior handler.
- TIMEOUT = 1
- property feedback
Behavior feedback.
- Returns:
rclpy.Feedback
- property result
Behavior result.
- Raises:
self.ResultUnknown – on result not ready
- Returns:
rclpy.Result
- property result_status
Behavior result status.
- Returns:
rclpy.GoalStatus
- resume(wait_result: bool = True) bool [source]
Continue with current behavior.
- Parameters:
wait_result (bool, optional) – wait to behavior end, defaults to True
- Returns:
resume succeed or not
- Return type:
bool
- start(goal_msg, wait_result: bool = True) bool [source]
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
- property status: int
Behavior internal status.
- Returns:
IDLE, PAUSED, RUNNING
- Return type:
int
as2_python_api.behavior_actions.follow_reference_behavior module
FollowReference Behavior.
- class as2_python_api.behavior_actions.follow_reference_behavior.FollowReferenceBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
FollowReference Behavior.
as2_python_api.behavior_actions.followpath_behavior module
FollowPath Behavior.
- class as2_python_api.behavior_actions.followpath_behavior.FollowPathBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
FollowPath Behavior.
as2_python_api.behavior_actions.go_to_behavior module
Go To Behavior.
- class as2_python_api.behavior_actions.go_to_behavior.GoToBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
GoTo Behavior.
as2_python_api.behavior_actions.land_behavior module
Land Behavior.
- class as2_python_api.behavior_actions.land_behavior.LandBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
Land Behavior.
as2_python_api.behavior_actions.point_gimbal_behavior module
PointGimbal Behavior.
- class as2_python_api.behavior_actions.point_gimbal_behavior.PointGimbalBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
PointGimbal Behavior.
as2_python_api.behavior_actions.takeoff_behavior module
Takeoff Behavior.
- class as2_python_api.behavior_actions.takeoff_behavior.TakeoffBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
Takeoff Behavior.
as2_python_api.behavior_actions.trajectory_generation_behavior module
Trajectory Generation Behavior.
- class as2_python_api.behavior_actions.trajectory_generation_behavior.TrajectoryGenerationBehavior(drone: DroneInterfaceBase)[source]
Bases:
BehaviorHandler
Trajectory Generation Behavior.