|
libxr
1.0
Want to be the best embedded framework
|
质心信息表示类。Represents the center of mass information. More...
#include <inertia.hpp>
Public Member Functions | |
| CenterOfMass () | |
| 默认构造函数,初始化质心位置为 (0,0,0),质量为 0。Default constructor initializing position to (0,0,0) and mass to 0. | |
| CenterOfMass (Scalar m, const LibXR::Position< Scalar > &p) | |
| 使用质量和位置构造质心对象。Constructs a center of mass object using mass and position. | |
| CenterOfMass (Scalar m, const Eigen::Matrix< Scalar, 3, 1 > &p) | |
| 使用质量和 Eigen 3D 向量构造质心对象。Constructs a center of mass object using mass and Eigen 3D vector. | |
| CenterOfMass (const Inertia< Scalar > &m, const Transform< Scalar > &p) | |
| 从惯性对象和变换构造质心对象。Constructs a center of mass object from inertia and transformation. | |
| CenterOfMass | operator+ (const CenterOfMass &m) const |
| 计算两个质心的合成。Computes the combined center of mass. | |
| CenterOfMass & | operator+= (const CenterOfMass &m) |
| 质心累加运算符。Accumulation operator for center of mass. | |
Data Fields | |
| Eigen::Matrix< Scalar, 3, 1 > | position |
| 质心位置。Center of mass position. | |
| Scalar | mass |
| 质量值。Mass value. | |
质心信息表示类。Represents the center of mass information.
| Scalar | 数据类型,默认为 DefaultScalar。Data type, defaulting to DefaultScalar. |
Definition at line 228 of file inertia.hpp.
|
inline |
默认构造函数,初始化质心位置为 (0,0,0),质量为 0。Default constructor initializing position to (0,0,0) and mass to 0.
Definition at line 236 of file inertia.hpp.
|
inline |
使用质量和位置构造质心对象。Constructs a center of mass object using mass and position.
| m | 质量值。Mass value. |
| p | 质心位置。Center of mass position. |
Definition at line 244 of file inertia.hpp.
|
inline |
使用质量和 Eigen 3D 向量构造质心对象。Constructs a center of mass object using mass and Eigen 3D vector.
| m | 质量值。Mass value. |
| p | 3D 位置向量。3D position vector. |
Definition at line 252 of file inertia.hpp.
|
inline |
从惯性对象和变换构造质心对象。Constructs a center of mass object from inertia and transformation.
| m | 惯性对象。Inertia object. |
| p | 变换对象。Transformation object. |
Definition at line 260 of file inertia.hpp.
|
inline |
计算两个质心的合成。Computes the combined center of mass.
| m | 另一个质心对象。Another center of mass object. |
Definition at line 270 of file inertia.hpp.
|
inline |
质心累加运算符。Accumulation operator for center of mass.
| m | 另一个质心对象。Another center of mass object. |
Definition at line 285 of file inertia.hpp.
| Scalar LibXR::CenterOfMass< Scalar >::mass |
质量值。Mass value.
Definition at line 232 of file inertia.hpp.
| Eigen::Matrix<Scalar, 3, 1> LibXR::CenterOfMass< Scalar >::position |
质心位置。Center of mass position.
Definition at line 231 of file inertia.hpp.