🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
AttitudeFixed.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AttitudeProfile.hpp"
25#include "AstMath/Rotation.hpp"
26#include "AstCore/AttitudeProfile.hpp"
27
28AST_NAMESPACE_BEGIN
29
39class AST_CORE_API AttitudeFixed : public AttitudeProfile
40{
41public:
42 AST_OBJECT(AttitudeFixed)
43
44 AttitudeFixed() = default;
45 ~AttitudeFixed() override = default;
46
47 Axes* getParent() const override;
48 errc_t getTransform(const TimePoint& tp, Rotation& rotation) const override;
49 errc_t getTransform(const TimePoint& tp, KinematicRotation& rotation) const override;
50PROPERTIES:
51 const Rotation& rotation() const { return rotation_; }
52 const Rotation& getRotation() const { return rotation_; }
53 void setRotation(const Rotation& rotation) { rotation_ = rotation; }
54
55 Axes* referenceAxes() const { return referenceAxes_.get(); }
56 void setReferenceAxes(Axes* referenceAxes) { referenceAxes_ = referenceAxes; }
57protected:
58 WeakPtr<Axes> referenceAxes_{};
60};
61
64AST_NAMESPACE_END
固定姿态
定义 AttitudeFixed.hpp:40
轴系抽象基类
定义 Axes.hpp:86
virtual Axes * getParent() const =0
获取当前轴系的父轴系
virtual errc_t getTransform(const TimePoint &tp, Rotation &rotation) const =0
获取当前轴系相对于父轴系的旋转变换
运动学坐标系旋转
定义 KinematicRotation.hpp:50
坐标系旋转类
定义 Rotation.hpp:55
static Rotation Identity()
单位旋转
定义 Rotation.hpp:235
绝对时间点
定义 TimePoint.hpp:108
弱引用指针
定义 WeakPtr.hpp:35