60 public:
Pose(
double _x,
double _y,
double _z,
61 double _roll,
double _pitch,
double _yaw);
68 public:
virtual ~
Pose();
87 public:
void Set(
double _x,
double _y,
double _z,
88 double _roll,
double _pitch,
double _yaw);
91 public:
bool IsFinite()
const;
102 public:
Pose GetInverse()
const;
110 public:
Pose operator+(
const Pose &_pose)
const;
115 public:
const Pose &operator+=(
const Pose &_pose);
123 return Pose() - *
this;
134 return Pose(this->CoordPositionSub(_pose),
135 this->CoordRotationSub(_pose.
rot));
141 public:
const Pose &operator-=(
const Pose &_pose);
146 public:
bool operator ==(
const Pose &_pose)
const;
151 public:
bool operator!=(
const Pose &_pose)
const;
156 public:
Pose operator*(
const Pose &_pose);
160 public:
Pose &operator=(
const Pose &_pose);
170 public:
Vector3 CoordPositionAdd(
const Pose &_pose)
const;
178 this->pos.x - _pose.
pos.
x,
179 this->pos.y - _pose.
pos.
y,
180 this->pos.z - _pose.
pos.
z);
204 public:
Pose CoordPoseSolve(
const Pose &_b)
const;
207 public:
void Reset();
212 public:
Pose RotatePositionAboutOrigin(
const Quaternion &_rot)
const;
216 public:
void Round(
int _precision);
225 _out << _pose.
pos <<
" " << _pose.
rot;
237 _in.setf(std::ios_base::skipws);
238 _in >> _pose.
pos >> _pose.
rot;
double z
Attributes of the quaternion.
Definition: Quaternion.hh:364
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
Pose operator-() const
Negation operator A is the transform from O to P in frame O then -A is transform from P to O specifie...
Definition: Pose.hh:121
double x
X location.
Definition: Vector3.hh:302
Quaternion CoordRotationSub(const Quaternion &_rot) const
Subtract one rotation from another: result = this->rot - rot.
Definition: Pose.hh:194
double z
Z location.
Definition: Vector3.hh:308
Pose operator-(const Pose &_pose) const
Subtraction operator A is the transform from O to P in frame O B is the transform from O to Q in fram...
Definition: Pose.hh:132
Vector3 pos
The position.
Definition: Pose.hh:243
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Pose &_pose)
Stream insertion operator.
Definition: Pose.hh:222
A quaternion class.
Definition: Quaternion.hh:41
friend std::istream & operator>>(std::istream &_in, gazebo::math::Pose &_pose)
Stream extraction operator.
Definition: Pose.hh:233
Quaternion rot
The rotation.
Definition: Pose.hh:246
GAZEBO_VISIBLE void Set(common::Image &_img, const msgs::Image &_msg)
Convert a msgs::Image to a common::Image.
double y
Attributes of the quaternion.
Definition: Quaternion.hh:361
Quaternion GetInverse() const
Get the inverse of this quaternion.
Definition: Quaternion.hh:86
double x
Attributes of the quaternion.
Definition: Quaternion.hh:358
Vector3 CoordPositionSub(const Pose &_pose) const
Subtract one position from another: result = this - pose.
Definition: Pose.hh:175
static const Pose Zero
math::Pose(0, 0, 0, 0, 0, 0)
Definition: Pose.hh:43
void Correct()
Fix any nan values.
Definition: Pose.hh:94
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
double y
Y location.
Definition: Vector3.hh:305
void Normalize()
Normalize the quaternion.