🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::JplSpk类 参考

#include <JplSpk.hpp>

Public 成员函数

 JplSpk (StringView spkfile)
 
errc_t open (StringView spkfile)
 
bool isOpen () const
 
errc_t close ()
 
const std::string & getFilePath () const
 
int handle () const
 
errc_t getInterval (int target, TimeInterval &interval) const
 
errc_t getBodyNames (std::vector< std::string > &names) const
 
errc_t getBodyIds (std::vector< int > &ids) const
 

静态 Public 成员函数

static errc_t getPosICRF (const TimePoint &tp, int target, int referenceBody, Vector3d &pos)
 
static errc_t getPosVelICRF (const TimePoint &tp, int target, int referenceBody, Vector3d &pos, Vector3d &vel)
 
static std::string getBodyName (int id)
 

Protected 属性

std::string spkfile_
 
int handle_ {0}
 
bool isIntervalCached_ {false}
 
TimeInterval intervalCache_ {}
 

详细描述

JPL SPK文件

用于读取JPL SPK文件

成员函数说明

◆ close()

errc_t ast::JplSpk::close ( )

关闭SPK文件

返回
错误码

◆ getBodyIds()

errc_t ast::JplSpk::getBodyIds ( std::vector< int > & ids) const

获取所有目标体的ID

参数
ids目标体ID向量
返回
错误码

◆ getBodyName()

std::string ast::JplSpk::getBodyName ( int id)
static

获取目标体的名称

参数
id目标体ID
返回
目标体名称

◆ getBodyNames()

errc_t ast::JplSpk::getBodyNames ( std::vector< std::string > & names) const

获取所有目标体的名称

参数
names目标体名称向量
返回
错误码

◆ getFilePath()

const std::string & ast::JplSpk::getFilePath ( ) const
inline

获取SPK文件路径

返回
SPK文件路径

◆ handle()

int ast::JplSpk::handle ( ) const
inline

获取SPK文件句柄(CSPICE库返回的文件句柄)

返回
SPK文件句柄

◆ isOpen()

bool ast::JplSpk::isOpen ( ) const
inline

检查SPK文件是否已打开

返回
是否已打开

◆ open()

errc_t ast::JplSpk::open ( StringView spkfile)

打开SPK文件

参数
filepathSPK文件路径
返回
错误码

该类的文档由以下文件生成: