🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
Sensor.hpp
浏览该文件的文档.
1
19
20#pragma once
21
22#include "AstGlobal.h"
23#include "AstUtil/Object.hpp"
24#include "AstUtil/StringView.hpp"
25#include "AstCore/Point.hpp"
26#include "AstCore/FieldOfView.hpp"
27#include "AstSim/Platform.hpp"
28#include <memory>
29
30AST_NAMESPACE_BEGIN
31
38class AST_SIM_API Sensor: public Platform
39{
40public:
41 AST_OBJECT(Sensor)
42 Sensor();
43 ~Sensor() override = default;
44public:
47 void setFieldOfView(FieldOfView* fov);
48
51 FieldOfView* getFieldOfView() const { return fov_; }
52 FieldOfView* fieldOfView() const { return fov_; }
53
54private:
55 SharedPtr<FieldOfView> fov_{};
56};
57
60AST_NAMESPACE_END
视场基类
定义 FieldOfView.hpp:43
通用平台类,用于表示空间中的平台对象,例如卫星、飞机、地面站等,具有位置、姿态两个属性
定义 Platform.hpp:40
传感器对象
定义 Sensor.hpp:39
FieldOfView * getFieldOfView() const
获取传感器视场
定义 Sensor.hpp:51