34 #include <eigen3/Eigen/Eigen>
48 Eigen::Vector3f _rate_flu_rad;
49 Eigen::Vector3f _thrust_flu_normalized;
60 RateSetpoint(
const Eigen::Vector3f& rate_flu_rad,
const Eigen::Vector3f& thrust_flu_normalized)
61 : _rate_flu_rad(rate_flu_rad), _thrust_flu_normalized(thrust_flu_normalized) {}
63 RateSetpoint(
const Eigen::Vector3f& rate_flu_rad,
const float thrust_up_normalized)
64 :
RateSetpoint(rate_flu_rad, Eigen::Vector3f(0, 0, thrust_up_normalized)) {}
66 inline Eigen::Vector3f getRate()
const {
return _rate_flu_rad; }
68 inline Eigen::Vector3f getThrust()
const {
return _thrust_flu_normalized; }
70 RateSetpoint& withAttitude(
const Eigen::Vector3f& rate_flu_rad) {
71 _rate_flu_rad = rate_flu_rad;
75 RateSetpoint& withThrust(
const Eigen::Vector3f& thrust_flu_normalized) {
76 _thrust_flu_normalized = thrust_flu_normalized;
80 RateSetpoint& withThrustUp(
const float thrust_up_normalized) {
81 _thrust_flu_normalized = Eigen::Vector3f(0, 0, thrust_up_normalized);
Placeholder config.
Definition: rate_control.hpp:55
Represents a setpoint to angular rates and thrust.
Definition: rate_control.hpp:46