🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
AttitudeTrajectoryRelated.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AttitudeProfile.hpp"
25#include "AstCore/Frame.hpp"
26#include "AstCore/Point.hpp"
27
28AST_NAMESPACE_BEGIN
29
39class AST_CORE_API AttitudeTrajectoryRelated : public AttitudeProfile
40{
41public:
43
44 AttitudeTrajectoryRelated() = default;
46 ~AttitudeTrajectoryRelated() override = default;
47public:
48 Axes* getParent() const override;
49public:
50 void setPoint(Point* point) { point_ = point; }
51 void setFrame(Frame* frame) { frame_ = frame; }
52 Point* point() const { return point_.get(); }
53 Frame* frame() const { return frame_.get(); }
54protected:
55 errc_t getPosVelAccLocal(const TimePoint& tp, Vector3d& pos, Vector3d& vel, Vector3d& acc) const;
56 errc_t getPosVelLocal(const TimePoint& tp, Vector3d& pos, Vector3d& vel) const;
57 errc_t getPosLocal(const TimePoint& tp, Vector3d& pos) const;
58private:
59 WeakPtr<Point> point_{};
60 WeakPtr<Frame> frame_{};
61};
62
63
64
67AST_NAMESPACE_END
与轨迹相关的姿态
定义 AttitudeTrajectoryRelated.hpp:40
轴系抽象基类
定义 Axes.hpp:86
virtual Axes * getParent() const =0
获取当前轴系的父轴系
坐标系抽象基类
定义 Frame.hpp:74
点抽象基类
定义 Point.hpp:42
绝对时间点
定义 TimePoint.hpp:108
弱引用指针
定义 WeakPtr.hpp:35