24#include "AstCore/Object.hpp"
25#include "AstUtil/ObjectNamed.hpp"
35class KinematicRotation;
36class AccelerationRotation;
89 ~Axes()
override =
default;
96 virtual
Axes* getParent() const = 0;
119 int getDepth() const;
124 Axes* getAncestor(
int depth) const;
209 return getTransform(tp, rotation);
218 return getTransform(tp, rotation);
230 if(axes ==
nullptr)
return eErrorNullInput;
231 return getAttitudeIn(*axes, tp, quat);
240 errc_t getAttitudeIn(Axes& axes,
const TimePoint& tp, Quaternion& quat, Vector3d& angvel)
const;
242 errc_t getAttitudeIn(Axes* axes,
const TimePoint& tp, Quaternion& quat, Vector3d& angvel)
const
244 if(axes ==
nullptr)
return eErrorNullInput;
245 return getAttitudeIn(*axes, tp, quat, angvel);
262using HAxes = SharedPtr<Axes>;
加速度(二阶运动学)坐标系旋转
定义 AccelerationRotation.hpp:51
A_ALWAYS_INLINE errc_t getTransformFromParent(const TimePoint &tp, KinematicRotation &rotation) const
获取当前轴系相对于父轴系的运动学旋转变换
定义 Axes.hpp:216
A_ALWAYS_INLINE errc_t getTransformFrom(Axes *source, const TimePoint &tp, Rotation &rotation) const
获取源轴系到当前轴系的旋转变换
定义 Axes.hpp:163
A_ALWAYS_INLINE errc_t getTransformFrom(Axes *source, const TimePoint &tp, KinematicRotation &rotation) const
获取源轴系到当前轴系的运动学旋转变换
定义 Axes.hpp:178
A_ALWAYS_INLINE errc_t getTransformFromParent(const TimePoint &tp, Rotation &rotation) const
获取当前轴系相对于父轴系的旋转变换
定义 Axes.hpp:207
A_ALWAYS_INLINE errc_t getTransformTo(Axes *target, const TimePoint &tp, KinematicRotation &rotation) const
获取当前轴系到目标轴系的运动学旋转变换
定义 Axes.hpp:148
A_ALWAYS_INLINE errc_t getTransformFrom(Axes *source, const TimePoint &tp, AccelerationRotation &rotation) const
获取源轴系到当前轴系的加速度旋转变换
定义 Axes.hpp:193
运动学坐标系旋转
定义 KinematicRotation.hpp:50
命名对象
定义 ObjectNamed.hpp:36
绝对时间点
定义 TimePoint.hpp:108
Axes * PAxes
轴系指针(pointer to axes)
定义 Axes.hpp:38
errc_t aAxesRotationRateByDifference(Axes &axes, Axes &referenceAxes, const TimePoint &tp, Vector3d &angvel, double h)
用有限差分计算轴系相对于参考轴系的角速度
定义 Axes.cpp:337
SharedPtr< Axes > HAxes
轴系句柄(handle to axes)
定义 Axes.hpp:39
errc_t aAxesTransform(Axes &source, Axes &target, const TimePoint &tp, Rotation &rotation)
计算轴系之间的旋转变换。
定义 Axes.cpp:291