Class RelCart6¶
Defined in File state.h
Inheritance Relationships¶
Base Type¶
public lupnt::State(Class State)
Class Documentation¶
-
class RelCart6 : public lupnt::State¶
Public Functions
-
inline RelCart6(const State &x)¶
Reinterpret a generic
Stateas aRelCart6(relative Cartesian position+velocity, e.g. chief-to-deputy in RTN/synodic frames), checking its size and type tag. Used byStateConverterwhen converting betweenCart6and relative-orbit representations (InertialToSynodicand ROE conversions).- Parameters:
x – 6-element state of type
RelCart6::TYPE.
-
inline RelCart6(const Vec3 &dr, const Vec3 &dv, const Frame frame = Frame::MOON_CI)¶
Construct a
RelCart6from separate relative position and velocity vectors.- Parameters:
dr – Relative position [m] in
frame.dv – Relative velocity [m/s] in
frame.frame – Reference frame (default MOON_CI).
-
inline RelCart6(const Vec6 &x = Vec6::Zero(), const Frame frame = Frame::MOON_CI)¶
Construct a
RelCart6from a stacked 6-element [relative position; relative velocity] vector.- Parameters:
x – [dr_x, dr_y, dr_z, dv_x, dv_y, dv_z] in [m, m, m, m/s, m/s, m/s].
frame – Reference frame (default MOON_CI).
-
inline Eigen::Ref<Vec3> dr()¶
Mutable view of the relative position.
- Returns:
Relative position [m].
-
inline RelCart6(const State &x)¶