8#ifndef INCLUDE_EULER_RPY_H_
9#define INCLUDE_EULER_RPY_H_
11#include <eigen3/Eigen/Dense>
28 EulerRPY(
double roll,
double pitch,
double yaw);
36 return os << a.roll_ <<
"\t" << a.pitch_ <<
"\t" << a.yaw_ <<
"\t";
39 auto Yaw() const ->
double {
return this->yaw_; }
40 auto Yaw(
double yaw) ->
void { this->yaw_ = yaw; }
42 auto Pitch() const ->
double {
return this->pitch_; }
43 auto Pitch(
double pitch) ->
void { this->pitch_ = pitch; }
45 auto Roll() const ->
double {
return this->roll_; }
46 auto Roll(
double roll) ->
void { this->roll_ = roll; }
48 auto RPY(
double roll,
double pitch,
double yaw) ->
void
55 auto RPY(Eigen::Vector3d rpy) ->
void
58 this->pitch_ = rpy[1];
62 auto ToVector() const ->
Eigen::Vector3d {
return Eigen::Vector3d(roll_, pitch_, yaw_); }
73 Eigen::Vector3d
Derivative(
const Eigen::Vector3d& omega)
const;
80 Eigen::Vector3d
Omega(
const Eigen::Vector3d& rpyDerivarives)
const;
84 double roll_, pitch_, yaw_;
This class extends the Eigen::Matrix3d.
Definition RotMatrix.h:26
Euler RPY angle representation.
Definition EulerRPY.h:25
Eigen::RotationMatrix ToRotationMatrix() const
Eigen::Quaterniond ToQuaternion() const
auto RPY(Eigen::Vector3d rpy) -> void
Definition EulerRPY.h:55
auto RPY(double roll, double pitch, double yaw) -> void
Definition EulerRPY.h:48
EulerRPY(Eigen::Quaterniond q)
Eigen::Vector3d Derivative(const Eigen::Vector3d &omega) const
GetDerivative computes the euler rates (derivative) of 'this', given the angular velocity omega of th...
auto ToVector() const -> Eigen::Vector3d
Definition EulerRPY.h:62
EulerRPY(double roll, double pitch, double yaw)
auto Roll(double roll) -> void
Definition EulerRPY.h:46
auto Yaw() const -> double
Definition EulerRPY.h:39
Eigen::Vector3d Omega(const Eigen::Vector3d &rpyDerivarives) const
GetOmega computes the angular velocity of the frame given euler rates (derivative) of 'this',...
auto Roll() const -> double
Definition EulerRPY.h:45
EulerRPY(Eigen::Vector3d vec3)
auto Pitch() const -> double
Definition EulerRPY.h:42
auto Pitch(double pitch) -> void
Definition EulerRPY.h:43
auto Yaw(double yaw) -> void
Definition EulerRPY.h:40
friend std::ostream & operator<<(std::ostream &os, EulerRPY const &a)
Definition EulerRPY.h:34
This namespace is used to extend the Eigen Dense library functionalities.
Definition RotMatrix.h:13
Types and algorithms for robotic mobile manipulation.
Definition ArmModel.h:19