|
AutoAPMS
Streamlining behaviors in ROS 2
|
Generic template class for a custom PX4 mode. More...
#include <auto_apms_px4/mode.hpp>
Private Member Functions | |
| virtual void | updateSetpointWithGoal (float dt_s, std::shared_ptr< const Goal > goal_ptr, std::shared_ptr< Feedback > feedback_ptr, std::shared_ptr< Result > result_ptr)=0 |
Generic template class for a custom PX4 mode.
The workspace must define a ROS 2 action providing the corresponding goal, feedback and result message types.
For the user to be able to execute custom PX4 modes that are created by inheriting from this class, a corresponding ModeExecutorFactory must be defined.
| ActionT | Type of the ROS 2 action. |
|
privatepure virtual |
The following methods MUST call the special 'completed' method when the mode is finished to gracefully exit the mode.