Encapsulates a position and rotation in three space. More...
#include <Types.hh>
Public Member Functions | |
| Pose () | |
| Constructor. More... | |
| Pose (Vector3 _pos, Quaternion _rot) | |
| Constructor. More... | |
| Pose (double _x, double _y, double _z, double _roll, double _pitch, double _yaw) | |
| Constructor. More... | |
| Vector3 | CoordPositionAdd (const Pose &_pose) const |
| Add one point to another: result = this + pose. More... | |
| Pose | operator* (const Pose &pose) |
| Multiplication operator. More... | |
| bool | operator== (const Pose &_pose) const |
| Equality operator. More... | |
Public Attributes | |
| Vector3 | pos |
| Position data. More... | |
| Quaternion | rot |
| Orientation data. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &_out, const Pose &_pose) |
| Stream insertion operator. More... | |
| std::istream & | operator>> (std::istream &_in, Pose &_pose) |
| Stream extraction operator. More... | |
Encapsulates a position and rotation in three space.
|
inline |
Constructor.
Referenced by operator*().
|
inline |
Constructor.
| [in] | _pos | A position |
| [in] | _rot | A rotation |
|
inline |
Constructor.
| [in] | _x | x position in meters. |
| [in] | _y | y position in meters. |
| [in] | _z | z position in meters. |
| [in] | _roll | Roll (rotation about X-axis) in radians. |
| [in] | _pitch | Pitch (rotation about y-axis) in radians. |
| [in] | _yaw | Yaw (rotation about z-axis) in radians. |
References sdf::Quaternion::Correct(), and rot.
Add one point to another: result = this + pose.
| [in] | _pose | The Pose to add |
References sdf::Quaternion::GetInverse(), pos, rot, sdf::Quaternion::w, sdf::Vector3::x, sdf::Quaternion::x, sdf::Vector3::y, sdf::Quaternion::y, sdf::Vector3::z, and sdf::Quaternion::z.
Referenced by operator*().
Multiplication operator.
| [in] | _pose | the other pose |
References CoordPositionAdd(), Pose(), and rot.
|
inline |
|
friend |
Stream insertion operator.
| out | output stream |
| pose | pose to output |
|
friend |
Stream extraction operator.
| [in] | _in | the input stream |
| [in] | _pose | the pose |
| Vector3 sdf::Pose::pos |
Position data.
Referenced by CoordPositionAdd(), and operator==().
| Quaternion sdf::Pose::rot |
Orientation data.
Referenced by CoordPositionAdd(), operator*(), operator==(), and Pose().