36#include <auterion_sdk/control/surface_vehicle/position_setpoint_common.hpp>
41namespace surface_vehicle {
86 Eigen::Vector2f _position_en_m{NAN, NAN};
87 std::optional<Eigen::Vector2f> _start_position_en_m{};
103 : _position_en_m(position_en_m) {}
109 _position_en_m = position_en_m;
118 _position_en_m = position_enu_m.head<2>();
130 _start_position_en_m = start_position_en_m;
134 inline Eigen::Vector2f getPosition()
const {
return _position_en_m; }
135 inline std::optional<Eigen::Vector2f> getStartPosition()
const {
return _start_position_en_m; }
Mode-wide defaults for LocalFramePositionSetpoint.
Definition local_frame_position_control.hpp:95
Drive to a 2D position in the local frame.
Definition local_frame_position_control.hpp:84
LocalFramePositionSetpoint(const Eigen::Vector2f &position_en_m)
Definition local_frame_position_control.hpp:102
LocalFramePositionSetpoint & withPosition(const Eigen::Vector3f &position_enu_m)
Sets the target position from a 3D local ENU position [m]. The height (z) is ignored,...
Definition local_frame_position_control.hpp:117
LocalFramePositionSetpoint & withPosition(const Eigen::Vector2f &position_en_m)
Sets the target position (East, North) in the local frame [m].
Definition local_frame_position_control.hpp:108
LocalFramePositionSetpoint & withStartPosition(const Eigen::Vector2f &start_position_en_m)
Sets the start of the line that the vehicle follows to the target (East, North) [m].
Definition local_frame_position_control.hpp:129
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