PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
|
Interface class for an action. More...
#include <px4_ros2/mission/actions/action.hpp>
Public Member Functions | |
virtual std::string | name () const =0 |
virtual bool | canRun (const ActionArguments &arguments, std::vector< std::string > &errors) |
virtual bool | shouldStopAtWaypoint (const ActionArguments &arguments) |
virtual bool | supportsResumeFromLanded () |
virtual void | run (const std::shared_ptr< ActionHandler > &handler, const ActionArguments &arguments, const std::function< void()> &on_completed)=0 |
virtual void | deactivate () |
Interface class for an action.
|
inlinevirtual |
This is called when the mission gets deactivated, i.e., the user switches to a different mode, or the mission finished. It can be used to disable continuous actions.
Reimplemented in px4_ros2::default_actions::ChangeSettings, and px4_ros2::default_actions::Hold.
|
inlinevirtual |
If this returns true, trajectory navigation stops the vehicle at the previous waypoint.
Reimplemented in px4_ros2::default_actions::ChangeSettings, px4_ros2::default_actions::Hold, px4_ros2::default_actions::Land, and px4_ros2::default_actions::Rtl.
|
inlinevirtual |
If the action includes a landing with disarming sequence, this method can be used to return true, so that when activating the mission again, the action is directly called (w/o doing the mission takeoff first)