25#include "AstCore/OrbitElement.hpp"
34 using Rotation::getMatrix;
35 using Rotation::transformVector;
36 using Rotation::getQuaternion;
66 Rotation& getRotation() {
return *
this; }
109 void transformVectorVelocity(
const Vector3d& vector,
const Vector3d& velocity, Vector3d& vectorOut, Vector3d& velocityOut)
const;
122 void transformVectorVelocityInv(
const Vector3d& vector,
const Vector3d& velocity, Vector3d& vectorOut, Vector3d& velocityOut)
const;
132A_ALWAYS_INLINE KinematicRotation::KinematicRotation(
const Matrix3d &mat,
const Vector3d &angvel)
147 matrix_ = next.matrix_ * this->matrix_;
182 velocityOut = this->matrix_ * (velocity - this->
angvel_.cross(vector));
183 vectorOut = this->matrix_ * vector;
195 vectorOut = vector * this->matrix_;
196 velocityOut = velocity* this->matrix_ + this->
angvel_.cross(vectorOut);
直角坐标
定义 OrbitElement.hpp:46
const Vector3d & pos() const
获取位置
定义 OrbitElement.hpp:59
const Vector3d & vel() const
获取速度
定义 OrbitElement.hpp:64
运动学坐标系旋转
定义 KinematicRotation.hpp:32
void setRotationRate(const Vector3d &angvel)
设置坐标系旋转角速度
定义 KinematicRotation.hpp:61
KinematicRotation composed(const KinematicRotation &next) const
组合下一个旋转
定义 KinematicRotation.hpp:151
CartState transformCartState(const CartState &state) const
变换状态向量和速度
定义 KinematicRotation.hpp:186
Vector3d angvel_
角速度
定义 KinematicRotation.hpp:124
const Vector3d & getRotationRate() const
获取坐标系旋转角速度
定义 KinematicRotation.hpp:57
void transformVectorVelocityInv(const Vector3d &vector, const Vector3d &velocity, Vector3d &vectorOut, Vector3d &velocityOut) const
变换位置和速度(逆变换)
定义 KinematicRotation.hpp:193
KinematicRotation()=default
运动学旋转默认构造函数
const Rotation & getRotation() const
获取坐标系旋转
定义 KinematicRotation.hpp:65
void transformVectorVelocity(const Vector3d &vector, const Vector3d &velocity, Vector3d &vectorOut, Vector3d &velocityOut) const
变换向量和速度
定义 KinematicRotation.hpp:179
KinematicRotation & operator*=(const KinematicRotation &next)
组合下一个坐标系旋转
定义 KinematicRotation.hpp:161
void getInverse(KinematicRotation &inversed) const
获取逆旋转
定义 KinematicRotation.hpp:166
KinematicRotation operator*(const KinematicRotation &next) const
组合下一个旋转
定义 KinematicRotation.hpp:156
KinematicRotation & compose(const KinematicRotation &next)
组合下一个坐标系旋转
定义 KinematicRotation.hpp:144
void setRotation(const Rotation &rot)
设置坐标系旋转
定义 KinematicRotation.hpp:71
KinematicRotation inverse() const
获取逆旋转
定义 KinematicRotation.hpp:172
void getInverse(Rotation &inversed) const
获取逆旋转
定义 Rotation.hpp:290