Class RelCart6

Inheritance Relationships

Base Type

Class Documentation

class RelCart6 : public lupnt::State

Public Functions

inline RelCart6(const State &x)

Reinterpret a generic State as a RelCart6 (relative Cartesian position+velocity, e.g. chief-to-deputy in RTN/synodic frames), checking its size and type tag. Used by StateConverter when converting between Cart6 and relative-orbit representations (InertialToSynodic and 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 RelCart6 from 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 RelCart6 from 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 Eigen::Ref<Vec3> dv()

Mutable view of the relative velocity.

Returns:

Relative velocity [m/s].

inline Vec3 dr() const

Relative position.

Returns:

Relative position [m].

inline Vec3 dv() const

Relative velocity.

Returns:

Relative velocity [m/s].

Public Static Attributes

static StateType TYPE = "RelCart6"