|
🛰️航天仿真算法库 SpaceAST 0.3.1
|
#include <KinematicTransform.hpp>
Public 成员函数 | |
| A_ALWAYS_INLINE | KinematicTransform (const CartState &translate, const KinematicRotation &rot) |
| A_ALWAYS_INLINE | KinematicTransform (const Vector3d &translation, const Vector3d &velocity, const KinematicRotation &rot) |
| _AST_DEF_KINEMATICTRANSFORM_PROPERTIES _AST_DEF_KINEMATICROTATION_PROPERTIES KinematicTransform & | compose (const KinematicTransform &next) |
| KinematicTransform | composed (const KinematicTransform &next) const |
| KinematicTransform | operator* (const KinematicTransform &next) const |
| KinematicTransform & | operator*= (const KinematicTransform &next) |
| KinematicTransform | inverse () const |
| void | getInverse (KinematicTransform &inversed) const |
| void | setIdentity () |
| void | transformPositionVelocity (const Vector3d &position, const Vector3d &velocity, Vector3d &positionOut, Vector3d &velocityOut) |
| CartState | transformPositionVelocity (const CartState &state) |
静态 Public 成员函数 | |
| static KinematicTransform | Identity () |
Protected 属性 | |
| Vector3d | velocity_ {} |
| Vector3d | translation_ {} |
| Rotation | rotation_ {} |
| Vector3d | angvel_ {} |
运动学变换
在静态变换的基础上,添加了旋转角速度和平移速度。
|
inline |
从旋转和平移状态构造变换
| translate | 平移量 |
| rot | 旋转量 |
| A_ALWAYS_INLINE KinematicTransform & ast::KinematicTransform::compose | ( | const KinematicTransform & | next | ) |
组合下一个变换
| next | 下一个变换 |
| A_ALWAYS_INLINE KinematicTransform ast::KinematicTransform::composed | ( | const KinematicTransform & | next | ) | const |
获取组合变换
| next | 下一个变换 |
| A_ALWAYS_INLINE void ast::KinematicTransform::getInverse | ( | KinematicTransform & | inversed | ) | const |
获取逆变换
| inversed | 逆变换 |
|
static |
获取单位变换
| A_ALWAYS_INLINE KinematicTransform ast::KinematicTransform::inverse | ( | ) | const |
获取逆变换
| A_ALWAYS_INLINE KinematicTransform ast::KinematicTransform::operator* | ( | const KinematicTransform & | next | ) | const |
组合下一个变换
| next | 下一个变换 |
| A_ALWAYS_INLINE KinematicTransform & ast::KinematicTransform::operator*= | ( | const KinematicTransform & | next | ) |
组合下一个变换
| next | 下一个变换 |
| A_ALWAYS_INLINE CartState ast::KinematicTransform::transformPositionVelocity | ( | const CartState & | state | ) |
变换位置和速度
| position | 位置 |
| velocity | 速度 |
| A_ALWAYS_INLINE void ast::KinematicTransform::transformPositionVelocity | ( | const Vector3d & | position, |
| const Vector3d & | velocity, | ||
| Vector3d & | positionOut, | ||
| Vector3d & | velocityOut ) |
变换位置和速度
| position | 位置 |
| velocity | 速度 |
| positionOut | 变换后的位置 |
| velocityOut | 变换后的速度 |
先进行坐标系平移,再进行坐标系旋转。