Class Cart6¶
Defined in File state.h
Inheritance Relationships¶
Base Type¶
public lupnt::State(Class State)
Class Documentation¶
-
class Cart6 : public lupnt::State¶
Public Functions
-
inline Cart6(const State &x)¶
Reinterpret a generic
Stateas aCart6(Cartesian position+velocity), checking its size and type tag.Used wherever dynamics/conversion code receives a
Stateand needs to access it asr()/v()(e.g. force-model accelerations, frame conversions viaConvertState).- Parameters:
x – 6-element state of type
Cart6::TYPE.
-
inline Cart6(const Vec3 &r, const Vec3 &v, const Frame frame = Frame::MOON_CI)¶
Construct a
Cart6from separate position and velocity vectors.- Parameters:
r – Position [m] in
frame.v – Velocity [m/s] in
frame.frame – Reference frame (default MOON_CI).
-
inline Cart6(const Vec6 &x = Vec6::Zero(), const Frame frame = Frame::MOON_CI)¶
Construct a
Cart6from a stacked 6-element [position; velocity] vector.- Parameters:
x – [r_x, r_y, r_z, v_x, v_y, v_z] in [m, m, m, m/s, m/s, m/s].
frame – Reference frame (default MOON_CI).
-
inline Eigen::Ref<Vec3> r()¶
Mutable view of the position sub-vector.
- Returns:
Position [m] in this state’s frame.
-
inline Cart6(const State &x)¶