Function lupnt::spice::GetBodyPosVelSpice

Function Documentation

Vec6d lupnt::spice::GetBodyPosVelSpice(Real t_tdb, BodyId obs, BodyId target, const std::string &refFrame = "J2000", const std::string &abCorrection = "NONE")

Get the position and velocity of target relative to obs at t_tdb directly from SPICE (spkezr_c), without LuPNT’s Chebyshev cache.

Vec6 (position+velocity) counterpart of GetBodyPosSpice; see that function for the role of refFrame/abCorrection.

Returns:

[r; v] position [km] / velocity [km/s] of target relative to obs, in refFrame