34 #include <eigen3/Eigen/Eigen>
48 Eigen::Quaternionf _attitude_enu;
49 Eigen::Vector3f _thrust_flu_normalized;
61 const Eigen::Vector3f& thrust_flu_normalized)
62 : _attitude_enu(attitude_enu), _thrust_flu_normalized(thrust_flu_normalized) {}
64 AttitudeSetpoint(
const Eigen::Quaternionf& attitude_enu,
const float thrust_up_normalized)
65 :
AttitudeSetpoint(attitude_enu, Eigen::Vector3f(0, 0, thrust_up_normalized)) {}
67 inline Eigen::Quaternionf getAttitude()
const {
return _attitude_enu; }
69 inline Eigen::Vector3f getThrust()
const {
return _thrust_flu_normalized; }
71 AttitudeSetpoint& withAttitude(
const Eigen::Quaternionf& attitude_enu) {
72 _attitude_enu = attitude_enu;
76 AttitudeSetpoint& withThrust(
const Eigen::Vector3f& thrust_flu_normalized) {
77 _thrust_flu_normalized = thrust_flu_normalized;
81 AttitudeSetpoint& withThrustUp(
const float thrust_up_normalized) {
82 _thrust_flu_normalized = Eigen::Vector3f(0, 0, thrust_up_normalized);
Placeholder config.
Definition: attitude_control.hpp:55
Represents a setpoint to control attitude and thrust.
Definition: attitude_control.hpp:46