15#include "auto_apms_interfaces/action/rtl.hpp"
17#include "auto_apms_px4/mode_executor.hpp"
22class RTLSkill :
public ModeExecutor<auto_apms_interfaces::action::RTL>
25 explicit RTLSkill(
const rclcpp::NodeOptions & options)
26 : ModeExecutor{_AUTO_APMS_PX4__RTL_ACTION_NAME, options, FlightMode::RTL}
32 bool isCompleted(std::shared_ptr<const Goal> goal_ptr,
const px4_msgs::msg::VehicleStatus & vehicle_status)
34 return ModeExecutor::isCompleted(goal_ptr, vehicle_status) ||
35 vehicle_status.arming_state == px4_msgs::msg::VehicleStatus::ARMING_STATE_DISARMED;
41#include "rclcpp_components/register_node_macro.hpp"
42RCLCPP_COMPONENTS_REGISTER_NODE(auto_apms_px4::RTLSkill)
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.