8 #include <px4_msgs/msg/goto_setpoint.hpp>
12 #include <px4_ros2/common/setpoint_base.hpp>
13 #include <px4_ros2/utils/geodesic.hpp>
45 const Eigen::Vector3f & position,
46 const std::optional<float> & heading = {},
47 const std::optional<float> & max_horizontal_speed = {},
48 const std::optional<float> & max_vertical_speed = {},
49 const std::optional<float> & max_heading_rate = {}
52 float desiredUpdateRateHz()
override {
return 30.f;}
56 rclcpp::Publisher<px4_msgs::msg::GotoSetpoint>::SharedPtr
82 const Eigen::Vector3d & global_position,
83 const std::optional<float> & heading = {},
84 const std::optional<float> & max_horizontal_speed = {},
85 const std::optional<float> & max_vertical_speed = {},
86 const std::optional<float> & max_heading_rate = {}
91 std::unique_ptr<MapProjection> _map_projection;
92 std::shared_ptr<GotoSetpointType> _goto_setpoint;
Definition: context.hpp:20
Setpoint type for smooth global position and heading control.
Definition: goto.hpp:64
void update(const Eigen::Vector3d &global_position, const std::optional< float > &heading={}, const std::optional< float > &max_horizontal_speed={}, const std::optional< float > &max_vertical_speed={}, const std::optional< float > &max_heading_rate={})
Go-to global setpoint update.
Setpoint type for smooth position and heading control.
Definition: goto.hpp:25
void update(const Eigen::Vector3f &position, const std::optional< float > &heading={}, const std::optional< float > &max_horizontal_speed={}, const std::optional< float > &max_vertical_speed={}, const std::optional< float > &max_heading_rate={})
Go-to setpoint update.
Definition: setpoint_base.hpp:20
Definition: setpoint_base.hpp:25