15#include "auto_apms_interfaces/action/mission.hpp"
17#include "auto_apms_px4/mode_executor.hpp"
22class MissionSkill :
public ModeExecutor<auto_apms_interfaces::action::Mission>
25 explicit MissionSkill(
const rclcpp::NodeOptions & options)
26 : ModeExecutor{_AUTO_APMS_PX4__MISSION_ACTION_NAME, options, FlightMode::Mission}
31 bool sendActivationCommand(
const VehicleCommandClient & client, std::shared_ptr<const Goal> goal_ptr)
final
33 if (goal_ptr->do_restart) {
34 return client.startMission();
36 return client.syncActivateFlightMode(FlightMode::Mission);
42#include "rclcpp_components/register_node_macro.hpp"
43RCLCPP_COMPONENTS_REGISTER_NODE(auto_apms_px4::MissionSkill)
Generic template class for executing a PX4 mode implementing the interface of a standard ROS 2 action...
Implementation of PX4 mode peers offered by px4_ros2_cpp enabling integration with AutoAPMS.