pylupnt.Agent¶
- class pylupnt.Agent¶
Polymorphic base for a physical platform (spacecraft, rover, lander) that hosts Applications. Subclass in Python and implement get_state_at(self, t) for a truth trajectory.
- get_application(self: pylupnt._pylupnt.Agent) pylupnt._pylupnt.Application¶
The primary Application hosted by this agent (the first one; downcasts to the concrete app type)
- get_application_by_name(self: pylupnt._pylupnt.Agent, name: str) pylupnt._pylupnt.Application¶
The hosted Application whose name ends with name (e.g. “LanderNavApp”), or None
- get_applications(self: pylupnt._pylupnt.Agent) list[pylupnt._pylupnt.Application]¶
All Applications hosted by this agent, in order (for multi-application agents)
- get_name(self: pylupnt._pylupnt.Agent) str¶
This agent’s name
- get_state_at(self: pylupnt._pylupnt.Agent, t: SupportsFloat | SupportsIndex) Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']¶
Cartesian state [r; v] of this agent at simulation time t [s]
- get_world(self: pylupnt._pylupnt.Agent) pylupnt._pylupnt.World¶
The shared World environment (use world.get_state_at(name, t) to read any agent’s truth state).
- set_name(self: pylupnt._pylupnt.Agent, name: str) None¶
Set this agent’s name