|
octomap 1.9.8
|
This class represents a tree-dimensional pose of an object. More...
#include <Pose6D.h>
Public Member Functions | |
| double | distance (const Pose6D &other) const |
| Translational distance. | |
| Pose6D | inv () const |
| Inversion. | |
| Pose6D & | inv_IP () |
| Inversion. | |
| bool | operator!= (const Pose6D &other) const |
| Pose6D | operator* (const Pose6D &p) const |
| Concatenation. | |
| const Pose6D & | operator*= (const Pose6D &p) |
| In place concatenation. | |
| Pose6D & | operator= (const Pose6D &other) |
| bool | operator== (const Pose6D &other) const |
| double | pitch () const |
| Pose6D () | |
| Pose6D (const Pose6D &other) | |
| Pose6D (const Vector3 &trans, const Quaternion &rot) | |
| Constructor. | |
| Pose6D (float x, float y, float z, double roll, double pitch, double yaw) | |
| Constructor. | |
| std::istream & | read (std::istream &s) |
| Input operator. | |
| std::istream & | readBinary (std::istream &s) |
| Binary input operator. | |
| double | roll () const |
| Quaternion & | rot () |
| Rotational component. | |
| const Quaternion & | rot () const |
| Rotational component. | |
| Vector3 & | trans () |
| Translational component. | |
| const Vector3 & | trans () const |
| Translational component. | |
| Vector3 | transform (const Vector3 &v) const |
| Transformation of a vector. | |
| double | transLength () const |
| Translational length. | |
| std::ostream & | write (std::ostream &s) const |
| Output operator. | |
| std::ostream & | writeBinary (std::ostream &s) const |
| Binary output operator. | |
| float & | x () |
| const float & | x () const |
| float & | y () |
| const float & | y () const |
| double | yaw () const |
| float & | z () |
| const float & | z () const |
| ~Pose6D () | |
Protected Attributes | |
| Quaternion | rotation |
| Vector3 | translation |
This class represents a tree-dimensional pose of an object.
The tree-dimensional pose is represented by a three-dimensional translation vector representing the position of the object and a Quaternion representing the attitude of the object
| octomath::Pose6D::Pose6D | ( | ) |
Referenced by distance(), inv(), inv_IP(), operator!=(), operator*(), operator*=(), operator=(), operator==(), and Pose6D().
| octomath::Pose6D::~Pose6D | ( | ) |
| octomath::Pose6D::Pose6D | ( | const Vector3 & | trans, |
| const Quaternion & | rot ) |
Constructor.
Constructs a pose from given translation and rotation.
References rot(), rotation, trans(), and translation.
| octomath::Pose6D::Pose6D | ( | float | x, |
| float | y, | ||
| float | z, | ||
| double | roll, | ||
| double | pitch, | ||
| double | yaw ) |
| octomath::Pose6D::Pose6D | ( | const Pose6D & | other | ) |
References Pose6D(), rot(), rotation, trans(), and translation.
| double octomath::Pose6D::distance | ( | const Pose6D & | other | ) | const |
| Pose6D octomath::Pose6D::inv | ( | ) | const |
Inversion.
Inverts the coordinate transformation represented by this pose
References octomath::Quaternion::inv(), octomath::Quaternion::normalized(), Pose6D(), rot(), octomath::Quaternion::rotate(), and trans().
Referenced by octomap::ScanGraph::addEdge(), octomap::ScanGraph::crop(), octomap::OccupancyOcTreeBase< NODE >::insertPointCloud(), and main().
| Pose6D & octomath::Pose6D::inv_IP | ( | ) |
Inversion.
Inverts the coordinate transformation represented by this pose
References octomath::Quaternion::inv(), octomath::Quaternion::normalized(), Pose6D(), rot(), octomath::Quaternion::rotate(), and trans().
Concatenation.
Concatenates the coordinate transformations represented by this and p.
References octomath::Quaternion::normalized(), Pose6D(), rot(), rotation, and trans().
References Pose6D(), rot(), rotation, trans(), and translation.
| bool octomath::Pose6D::operator== | ( | const Pose6D & | other | ) | const |
References Pose6D(), rotation, and translation.
|
inline |
References rotation.
Referenced by comparePose(), Pose6D(), and octomap::MapCollection< MAPNODE >::write().
| std::istream & octomath::Pose6D::read | ( | std::istream & | s | ) |
Input operator.
Parsing from stream which was written by write().
References rotation, and translation.
| std::istream & octomath::Pose6D::readBinary | ( | std::istream & | s | ) |
Binary input operator.
Parsing from binary stream which was written by writeBinary().
References rotation, and translation.
|
inline |
References rotation.
Referenced by comparePose(), Pose6D(), and octomap::MapCollection< MAPNODE >::write().
|
inline |
Rotational component.
References rotation.
Referenced by inv(), inv_IP(), operator*(), operator*=(), octomath::operator<<(), operator=(), Pose6D(), Pose6D(), and transform().
|
inline |
|
inline |
Translational component.
References translation.
Referenced by octomap::OccupancyOcTreeBase< NODE >::insertPointCloud(), inv(), inv_IP(), main(), operator*(), operator*=(), operator=(), Pose6D(), Pose6D(), and transform().
|
inline |
Transformation of a vector.
Transforms the vector v by the transformation which is specified by this.
References rot(), octomath::Quaternion::rotate(), and trans().
Referenced by octomap::OccupancyOcTreeBase< NODE >::insertPointCloud(), octomap::OccupancyOcTreeBase< NODE >::insertPointCloud(), main(), and octomap::Pointcloud::transformAbsolute().
| double octomath::Pose6D::transLength | ( | ) | const |
| std::ostream & octomath::Pose6D::write | ( | std::ostream & | s | ) | const |
Output operator.
Output to stream in a format which can be parsed using read().
References rotation, and translation.
| std::ostream & octomath::Pose6D::writeBinary | ( | std::ostream & | s | ) | const |
Binary output operator.
Output to stream in a binary format which can be parsed using readBinary().
References rotation, and translation.
|
inline |
References translation.
Referenced by comparePose(), distance(), octomath::operator<<(), Pose6D(), transLength(), and octomap::MapCollection< MAPNODE >::write().
|
inline |
References translation.
|
inline |
References translation.
Referenced by comparePose(), distance(), octomath::operator<<(), Pose6D(), transLength(), and octomap::MapCollection< MAPNODE >::write().
|
inline |
References translation.
|
inline |
References rotation.
Referenced by comparePose(), main(), Pose6D(), and octomap::MapCollection< MAPNODE >::write().
|
inline |
References translation.
Referenced by comparePose(), distance(), octomath::operator<<(), Pose6D(), transLength(), and octomap::MapCollection< MAPNODE >::write().
|
inline |
References translation.
|
protected |
Referenced by operator*(), operator*=(), operator=(), operator==(), pitch(), Pose6D(), Pose6D(), Pose6D(), read(), readBinary(), roll(), rot(), rot(), write(), writeBinary(), and yaw().
|
protected |
Referenced by operator=(), operator==(), Pose6D(), Pose6D(), Pose6D(), read(), readBinary(), trans(), trans(), write(), writeBinary(), x(), x(), y(), y(), z(), and z().