as2_python_api.mission_interpreter.mission_interpreter module
Mission Interpreter and Executer.
- class as2_python_api.mission_interpreter.mission_interpreter.MissionInterpreter(mission: Mission | None = None, use_sim_time: bool = False, executor: rclpy.executors.Executor = rclpy.executors.SingleThreadedExecutor)
Bases:
object
Mission Interpreter and Executer.
- property drone: DroneInterfaceBase
Build a DroneInterface based on the mission requirements.
- property feedback
Get current behavior feedback.
- property feedback_dict
Get current behavior feedback dictionary.
- property mission_stack: MissionStack
Mission stack.
- modify_current() bool
Modify current item in mission.
- next_item() bool
Advance to next item in mission.
- pause_mission() bool
Pause mission.
- perform_mission() None
Perform a mission.
- resume_mission() bool
Resume mission.
- shutdown() None
Shutdown properly.
- start_mission() bool
Start mission in different thread.
- property status: InterpreterStatus
Mission status.
- stop_mission() bool
Stop mission.
- as2_python_api.mission_interpreter.mission_interpreter.test()
A doctest in a docstring.
>>> test() test called with height=1.0, speed=2.0 and wait=True test called with height=98.0, speed=99.0 and wait=True