Go to the documentation of this file.
34 #ifndef OCTOMATH_QUATERNION_H
35 #define OCTOMATH_QUATERNION_H
97 Quaternion(
double roll,
double pitch,
double yaw);
113 void toRotMatrix(std::vector <double>& rot_matrix_3_3)
const;
178 inline float&
u() {
return data[0]; }
179 inline float&
x() {
return data[1]; }
180 inline float&
y() {
return data[2]; }
181 inline float&
z() {
return data[3]; }
183 inline const float&
u()
const {
return data[0]; }
184 inline const float&
x()
const {
return data[1]; }
185 inline const float&
y()
const {
return data[2]; }
186 inline const float&
z()
const {
return data[3]; }
188 std::istream&
read(std::istream &s);
189 std::ostream&
write(std::ostream &s)
const;
Quaternion()
Default constructor.
void toRotMatrix(std::vector< double > &rot_matrix_3_3) const
std::ostream & operator<<(std::ostream &s, const Pose6D &p)
user friendly output in format (x y z, u x y z) which is (translation, rotation)
Vector3 toEuler() const
Conversion to Euler angles.
std::istream & read(std::istream &s)
std::ostream & writeBinary(std::ostream &s) const
std::ostream & write(std::ostream &s) const
bool operator==(const Quaternion &other) const
Quaternion normalized() const
This class represents a three-dimensional vector.
Vector3 rotate(const Vector3 &v) const
Rotate a vector.
const float & operator()(unsigned int i) const
Quaternion inv() const
Inversion.
Quaternion operator*(const Quaternion &other) const
Quaternion multiplication.
std::istream & readBinary(std::istream &s)
Quaternion & operator=(const Quaternion &other)
Quaternion & inv_IP()
Inversion.
This class represents a Quaternion.
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:40