65 public:
Matrix4(
double _v00,
double _v01,
double _v02,
double _v03,
66 double _v10,
double _v11,
double _v12,
double _v13,
67 double _v20,
double _v21,
double _v22,
double _v23,
68 double _v30,
double _v31,
double _v32,
double _v33);
90 public:
void Set(
double _v00,
double _v01,
double _v02,
double _v03,
91 double _v10,
double _v11,
double _v12,
double _v13,
92 double _v20,
double _v21,
double _v22,
double _v23,
93 double _v30,
double _v31,
double _v32,
double _v33);
99 public:
void SetTranslate(
const Vector3 &_t);
103 public:
Vector3 GetTranslation()
const;
111 public:
Vector3 GetEulerRotation(
unsigned int solution_number = 1)
const;
119 public:
void SetScale(
const Vector3 &_s);
123 public:
bool IsAffine()
const;
131 public:
Matrix4 Inverse()
const;
165 return this->m[_row];
172 return this->m[_row];
179 public:
bool operator==(
const Matrix4 &_m)
const;
188 for (
int i = 0; i < 4; i++)
190 for (
int j = 0; j < 4; j++)
192 _out << (fabs(_m.
m[i][j]) < 1e-6 ? 0 : _m.
m[i][j]) <<
" ";
207 protected:
double m[4][4];
const double * operator[](size_t _row) const
Definition: Matrix4.hh:169
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
double * operator[](size_t _row)
Array subscript operator.
Definition: Matrix4.hh:162
A 3x3 matrix class.
Definition: Matrix4.hh:39
A 3x3 matrix class.
Definition: Matrix3.hh:34
static const Matrix4 IDENTITY
Identity matrix.
Definition: Matrix4.hh:201
A quaternion class.
Definition: Quaternion.hh:45
double m[4][4]
The 4x4 matrix.
Definition: Matrix4.hh:207
GAZEBO_VISIBLE void Set(common::Image &_img, const msgs::Image &_msg)
Convert a msgs::Image to a common::Image.
static const Matrix4 ZERO
Zero matrix.
Definition: Matrix4.hh:204
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Matrix4 &_m)
Stream insertion operator.
Definition: Matrix4.hh:185