25#include "AstCore/OrbitElement.hpp"
34 using Rotation::getMatrix;
35 using Rotation::getQuaternion;
36 using Rotation::transformVector;
37 using Rotation::transformVectorInv;
67 Rotation& getRotation() {
return *
this; }
110 void transformVectorVelocity(
const Vector3d& vector,
const Vector3d& velocity, Vector3d& vectorOut, Vector3d& velocityOut)
const;
123 void transformVectorVelocityInv(
const Vector3d& vector,
const Vector3d& velocity, Vector3d& vectorOut, Vector3d& velocityOut)
const;
133A_ALWAYS_INLINE KinematicRotation::KinematicRotation(
const Matrix3d &mat,
const Vector3d &angvel)
148 matrix_ = next.matrix_ * this->matrix_;
183 velocityOut = this->matrix_ * (velocity - this->
angvel_.cross(vector));
184 vectorOut = this->matrix_ * vector;
196 vectorOut = vector * this->matrix_;
197 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:62
KinematicRotation composed(const KinematicRotation &next) const
组合下一个旋转
定义 KinematicRotation.hpp:152
CartState transformCartState(const CartState &state) const
变换状态向量和速度
定义 KinematicRotation.hpp:187
Vector3d angvel_
角速度
定义 KinematicRotation.hpp:125
const Vector3d & getRotationRate() const
获取坐标系旋转角速度
定义 KinematicRotation.hpp:58
void transformVectorVelocityInv(const Vector3d &vector, const Vector3d &velocity, Vector3d &vectorOut, Vector3d &velocityOut) const
变换位置和速度(逆变换)
定义 KinematicRotation.hpp:194
KinematicRotation()=default
运动学旋转默认构造函数
const Rotation & getRotation() const
获取坐标系旋转
定义 KinematicRotation.hpp:66
void transformVectorVelocity(const Vector3d &vector, const Vector3d &velocity, Vector3d &vectorOut, Vector3d &velocityOut) const
变换向量和速度
定义 KinematicRotation.hpp:180
KinematicRotation & operator*=(const KinematicRotation &next)
组合下一个坐标系旋转
定义 KinematicRotation.hpp:162
void getInverse(KinematicRotation &inversed) const
获取逆旋转
定义 KinematicRotation.hpp:167
KinematicRotation operator*(const KinematicRotation &next) const
组合下一个旋转
定义 KinematicRotation.hpp:157
KinematicRotation & compose(const KinematicRotation &next)
组合下一个坐标系旋转
定义 KinematicRotation.hpp:145
void setRotation(const Rotation &rot)
设置坐标系旋转
定义 KinematicRotation.hpp:72
KinematicRotation inverse() const
获取逆旋转
定义 KinematicRotation.hpp:173
void getInverse(Rotation &inversed) const
获取逆旋转
定义 Rotation.hpp:290