36#include <auterion_sdk/control/surface_vehicle/position_setpoint_common.hpp>
41namespace surface_vehicle {
82 Eigen::Vector2d _position_lat_lon_deg{NAN, NAN};
83 std::optional<Eigen::Vector2d> _start_position_lat_lon_deg{};
99 : _position_lat_lon_deg(position_lat_lon_deg) {}
105 _position_lat_lon_deg = position_lat_lon_deg;
114 _position_lat_lon_deg = position_lat_lon_alt.head<2>();
126 const Eigen::Vector2d& start_position_lat_lon_deg) {
127 _start_position_lat_lon_deg = start_position_lat_lon_deg;
131 inline Eigen::Vector2d getPosition()
const {
return _position_lat_lon_deg; }
132 inline std::optional<Eigen::Vector2d> getStartPosition()
const {
133 return _start_position_lat_lon_deg;
Mode-wide defaults for GlobalFramePositionSetpoint.
Definition global_frame_position_control.hpp:91
Drive to a position given as latitude and longitude.
Definition global_frame_position_control.hpp:80
GlobalFramePositionSetpoint & withPosition(const Eigen::Vector2d &position_lat_lon_deg)
Sets the target latitude and longitude [deg].
Definition global_frame_position_control.hpp:104
GlobalFramePositionSetpoint & withPosition(const Eigen::Vector3d &position_lat_lon_alt)
Sets the target from latitude [deg], longitude [deg] and altitude [m]. The altitude is ignored,...
Definition global_frame_position_control.hpp:113
GlobalFramePositionSetpoint & withStartPosition(const Eigen::Vector2d &start_position_lat_lon_deg)
Sets the start of the line that the vehicle follows to the target, as latitude and longitude [deg].
Definition global_frame_position_control.hpp:125
GlobalFramePositionSetpoint(const Eigen::Vector2d &position_lat_lon_deg)
Definition global_frame_position_control.hpp:98
Mode-wide defaults shared by the surface vehicle position setpoint types.
Definition position_setpoint_common.hpp:48
Speed settings shared by the surface vehicle position setpoint types.
Definition position_setpoint_common.hpp:82