libxr 1.0
Want to be the best embedded framework
|
表示欧拉角的类,用于描述3D旋转。Class representing Euler angles for 3D rotation. More...
#include <transform.hpp>
Public Member Functions | |
EulerAngle () | |
默认构造函数,初始化所有角度为零。Default constructor initializing all angles to zero. | |
EulerAngle (Scalar roll, Scalar pitch, Scalar yaw) | |
使用指定角度构造欧拉角对象。Constructs an Euler angle object with given angles. | |
EulerAngle (const Eigen::Matrix< Scalar, 3, 1 > &p) | |
通过 Eigen 3D 向量构造欧拉角对象。Constructs an Euler angle object using an Eigen 3D vector. | |
EulerAngle (const EulerAngle &p) | |
拷贝构造函数。Copy constructor. | |
const Scalar & | Roll () const |
const Scalar & | Pitch () const |
const Scalar & | Yaw () const |
template<typename T , std::enable_if_t< std::is_same< T, Scalar >::value||std::is_same< T, float >::value||std::is_same< T, double >::value, int > = 0> | |
EulerAngle (const T(&data)[3]) | |
通过 3 元素数组构造欧拉角对象。Constructs an Euler angle object using a 3-element array. | |
operator Eigen::Matrix< Scalar, 3, 1 > () const | |
转换为 Eigen 3D 向量。Converts to an Eigen 3D vector. | |
Scalar | operator() (int i) const |
获取欧拉角的某个分量。Retrieves a specific Euler angle component. | |
EulerAngle & | operator= (const Eigen::Matrix< Scalar, 3, 1 > &p) |
赋值运算符,从 Eigen 3D 向量赋值。Assignment operator from an Eigen 3D vector. | |
EulerAngle & | operator= (const EulerAngle &p) |
赋值运算符,从另一个 EulerAngle 赋值。Assignment operator from another EulerAngle. | |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrix () const |
转换为旋转矩阵,默认使用 ZYX 顺序。Converts to a rotation matrix using the ZYX order by default. | |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixZYX () const |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixZXY () const |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixYXZ () const |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixYZX () const |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixXYZ () const |
Eigen::Matrix< Scalar, 3, 3 > | ToRotationMatrixXZY () const |
Eigen::Quaternion< Scalar > | ToQuaternion () const |
Eigen::Quaternion< Scalar > | ToQuaternionXYZ () const |
转换为四元数,默认使用 ZYX 顺序。Converts to a quaternion using the ZYX order by default. | |
Eigen::Quaternion< Scalar > | ToQuaternionXZY () const |
Eigen::Quaternion< Scalar > | ToQuaternionYXZ () const |
Eigen::Quaternion< Scalar > | ToQuaternionYZX () const |
Eigen::Quaternion< Scalar > | ToQuaternionZXY () const |
Eigen::Quaternion< Scalar > | ToQuaternionZYX () const |
Data Fields | |
Scalar | data_ [3] |
存储欧拉角的数组。Array storing Euler angles. | |
表示欧拉角的类,用于描述3D旋转。Class representing Euler angles for 3D rotation.
Scalar | 数据类型,如 float 或 double。Data type, such as float or double. |
Definition at line 339 of file transform.hpp.
|
inline |
默认构造函数,初始化所有角度为零。Default constructor initializing all angles to zero.
Definition at line 346 of file transform.hpp.
|
inline |
使用指定角度构造欧拉角对象。Constructs an Euler angle object with given angles.
roll | 绕 X 轴的角度。Angle about the X-axis. |
pitch | 绕 Y 轴的角度。Angle about the Y-axis. |
yaw | 绕 Z 轴的角度。Angle about the Z-axis. |
Definition at line 355 of file transform.hpp.
|
inline |
通过 Eigen 3D 向量构造欧拉角对象。Constructs an Euler angle object using an Eigen 3D vector.
p | 含有 (roll, pitch, yaw) 的向量。Vector containing (roll, pitch, yaw). |
Definition at line 362 of file transform.hpp.
|
inline |
拷贝构造函数。Copy constructor.
p | 另一个 EulerAngle 对象。Another EulerAngle object. |
Definition at line 368 of file transform.hpp.
|
inline |
通过 3 元素数组构造欧拉角对象。Constructs an Euler angle object using a 3-element array.
T | 数据类型,支持 Scalar、float 或 double。Data type, supporting Scalar, float, or double. |
data | 存储 (roll, pitch, yaw) 的数组。Array storing (roll, pitch, yaw). |
Definition at line 385 of file transform.hpp.
|
inline |
转换为 Eigen 3D 向量。Converts to an Eigen 3D vector.
Definition at line 390 of file transform.hpp.
|
inline |
获取欧拉角的某个分量。Retrieves a specific Euler angle component.
Definition at line 396 of file transform.hpp.
|
inline |
赋值运算符,从 Eigen 3D 向量赋值。Assignment operator from an Eigen 3D vector.
Definition at line 400 of file transform.hpp.
|
inline |
赋值运算符,从另一个 EulerAngle 赋值。Assignment operator from another EulerAngle.
Definition at line 410 of file transform.hpp.
Definition at line 371 of file transform.hpp.
Definition at line 370 of file transform.hpp.
|
inline |
Definition at line 489 of file transform.hpp.
|
inline |
转换为四元数,默认使用 ZYX 顺序。Converts to a quaternion using the ZYX order by default.
Definition at line 537 of file transform.hpp.
|
inline |
Definition at line 542 of file transform.hpp.
|
inline |
Definition at line 547 of file transform.hpp.
|
inline |
Definition at line 552 of file transform.hpp.
|
inline |
Definition at line 557 of file transform.hpp.
|
inline |
Definition at line 562 of file transform.hpp.
|
inline |
转换为旋转矩阵,默认使用 ZYX 顺序。Converts to a rotation matrix using the ZYX order by default.
Definition at line 421 of file transform.hpp.
|
inline |
Definition at line 467 of file transform.hpp.
|
inline |
Definition at line 478 of file transform.hpp.
|
inline |
Definition at line 445 of file transform.hpp.
|
inline |
Definition at line 456 of file transform.hpp.
|
inline |
Definition at line 434 of file transform.hpp.
|
inline |
Definition at line 423 of file transform.hpp.
Definition at line 372 of file transform.hpp.
Scalar LibXR::EulerAngle< Scalar >::data_[3] |
存储欧拉角的数组。Array storing Euler angles.
Definition at line 342 of file transform.hpp.