Class Agent¶
Defined in File agent.h
Inheritance Relationships¶
Derived Types¶
public lupnt::GroundStation
(Class GroundStation)public lupnt::Rover
(Class Rover)public lupnt::Spacecraft
(Class Spacecraft)
Class Documentation¶
-
class Agent¶
Agent base class.
Subclassed by lupnt::GroundStation, lupnt::Rover, lupnt::Spacecraft
Public Functions
-
inline Agent()¶
-
inline bool IsBodyFixed() const¶
-
inline Ptr<AttitudeState> GetAttitudeState() const¶
-
inline ClockState GetClockState() const¶
-
inline void SetIsBodyFixed(bool is_bodyfixed)¶
-
inline void SetClock(ClockState clk)¶
-
inline void SetClockDynamics(ClockDynamics &clock_dyn)¶
-
inline void AddDevice(Ptr<ICommDevice> device)¶
-
inline Ptr<Transmitter> GetTransmitter()¶
-
virtual CartesianOrbitState GetCartesianGCRFStateAtEpoch(Real epoch) = 0¶
-
void Propagate(const Real epoch)¶
Propagate the agent’s state to the given epoch.
- Parameters:
epoch – Epoch to propagate to
-
VecX GetRvStateAtEpoch(const Real epoch)¶
Get the Rv State at epoch, wihtout changing the agent’s epoch and state.
- Parameters:
epoch – Epoch to get the state at
- Returns:
VecX
-
ClockState GetClockStateAtEpoch(const Real epoch, bool with_noise = true)¶
Get the Clock State at epoch, wihtout changing the agent’s epoch and state.
- Parameters:
epoch – Epoch to get the state at
with_noise – Propagate with noise
- Returns:
Protected Attributes
-
const int id_¶
-
std::string name_¶
-
bool is_bodyfixed_¶
-
Ptr<AttitudeState> attitude_¶
-
std::vector<Ptr<ICommDevice>> devices_¶
-
ClockState clock_¶
-
std::unique_ptr<ClockDynamics> clock_dynamics_¶
Protected Static Attributes
-
static int id_counter_¶
-
inline Agent()¶