Encapsulates a position and rotation in three space. More...
#include <Pose.hh>
Public Member Functions | |
| Pose () | |
| Default constructors. | |
| Pose (const Vector3 &pos, const Quaternion &rot) | |
| Constructor. | |
| Pose (const Pose &pose) | |
| Copy constructor. | |
| virtual | ~Pose () |
| Destructor. | |
| void | Set (const Vector3 &_pos, const Quaternion &_rot) |
| bool | IsFinite () const |
| See if a pose is finite (e.g., not nan) | |
| void | Correct () |
| Fix any nan values. | |
| Pose | GetInverse () const |
| Get the inverse of this pose. | |
| Pose | operator+ (const Pose &pose) const |
| Addition operator. | |
| const Pose & | operator+= (const Pose &pose) |
| Add-Equals operator. | |
| Pose | operator- (const Pose &_pose) const |
| Subtraction operator. | |
| const Pose & | operator-= (const Pose &_pose) |
| Subtraction operator. | |
| bool | operator== (const Pose &_pose) const |
| Equality operator. | |
| bool | operator!= (const Pose &_pose) const |
| Inequality operator. | |
| Pose | operator* (const Pose &pose) |
| Multiplication operator. | |
| Vector3 | CoordPositionAdd (const Vector3 &pos) const |
| Add one point to a vector: result = this + pos. | |
| Vector3 | CoordPositionAdd (const Pose &pose) const |
| Add one point to another: result = this + pose. | |
| Vector3 | CoordPositionSub (const Pose &_pose) const |
| Subtract one position from another: result = this - pose. | |
| Quaternion | CoordRotationAdd (const Quaternion &rot) const |
| Add one rotation to another: result = this->rot + rot. | |
| Quaternion | CoordRotationSub (const Quaternion &rot) const |
| Subtract one rotation from another: result = this->rot - rot. | |
| Pose | CoordPoseSolve (const Pose &b) const |
| Find the inverse of a pose; i.e., if b = this + a, given b and this, find a. | |
| void | Reset () |
| Reset the pose. | |
| Pose | RotatePositionAboutOrigin (const Quaternion &rot) const |
| Rotate vector part of a pose about the origin. | |
| void | Round (int _precision) |
| Round all values to _precision decimal places. | |
Public Attributes | |
| Vector3 | pos |
| The position. | |
| Quaternion | rot |
| The rotation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const gazebo::math::Pose &pose) |
| Ostream operator. | |
| std::istream & | operator>> (std::istream &in, gazebo::math::Pose &pose) |
Encapsulates a position and rotation in three space.
| Pose | ( | const Vector3 & | pos, |
| const Quaternion & | rot | ||
| ) |
Constructor.
| pos | A position |
| rot | A rotation |
Add one point to a vector: result = this + pos.
| pos | Position to add to this pose |
Add one point to another: result = this + pose.
| pose | The Pose to add |
Subtract one position from another: result = this - pose.
| pose | Pose to subtract |
References Quaternion::GetInverse(), Pose::pos, Pose::rot, Vector3::x, Quaternion::x, Vector3::y, Quaternion::y, Vector3::z, and Quaternion::z.
Referenced by Pose::operator-().
| Quaternion CoordRotationAdd | ( | const Quaternion & | rot | ) | const |
Add one rotation to another: result = this->rot + rot.
| rot | Rotation to add |
| Quaternion CoordRotationSub | ( | const Quaternion & | rot | ) | const [inline] |
Subtract one rotation from another: result = this->rot - rot.
| rot | The rotation to subtract |
References Quaternion::GetInverse(), Quaternion::Normalize(), and Pose::rot.
Referenced by Pose::operator-().
| bool operator!= | ( | const Pose & | _pose | ) | const |
Subtraction operator.
| pose | Pose to subtract from this one |
References Pose::CoordPositionSub(), Pose::CoordRotationSub(), Pose::Pose(), and Pose::rot.
| bool operator== | ( | const Pose & | _pose | ) | const |
| std::ostream& operator<< | ( | std::ostream & | out, |
| const gazebo::math::Pose & | pose | ||
| ) | [friend] |
1.7.5.1