ostk.astrodynamics.Trajectory¶
- class Trajectory(*args, **kwargs)¶
Bases:
pybind11_objectPath followed by an object through space as a function of time.
Overloaded function.
__init__(self: ostk.astrodynamics.Trajectory, model: ostk::astrodynamics::trajectory::Model) -> None
Construct a Trajectory object from a model.
- Args:
model (trajectory.Model): The model of the trajectory.
- Returns:
Trajectory: The Trajectory object.
__init__(self: ostk.astrodynamics.Trajectory, states: list[ostk::astrodynamics::trajectory::State]) -> None
Construct a Trajectory object from an array of states.
- Args:
states (list[State]): The states of the trajectory.
- Returns:
Trajectory: The Trajectory object.
Methods
Access the model of the trajectory.
Get the state of the trajectory at a given instant.
Get the states of the trajectory at a given set of instants.
Check if the trajectory is defined.
Create a Trajectory object representing a position.
Create an undefined Trajectory object.
- access_model( ) ostk::astrodynamics::trajectory::Model¶
Access the model of the trajectory.
- Returns:
The model of the trajectory.
- Return type:
- get_state_at(
- self: ostk.astrodynamics.Trajectory,
- instant: ostk.physics.time.Instant,
Get the state of the trajectory at a given instant.
- Parameters:
instant (Instant) -- The instant.
- Returns:
The state of the trajectory at the given instant.
- Return type:
- get_states_at(
- self: ostk.astrodynamics.Trajectory,
- instants: list[ostk.physics.time.Instant],
Get the states of the trajectory at a given set of instants. It can be more performant than looping calculate_state_at for multiple instants.
- is_defined(self: ostk.astrodynamics.Trajectory) bool¶
Check if the trajectory is defined.
- Returns:
True if the trajectory is defined, False otherwise.
- Return type:
- static position(
- position: ostk.physics.coordinate.Position,
Create a Trajectory object representing a position.
- Parameters:
position (Position) -- The position. Must be in the ITRF frame.
- Returns:
The Trajectory object representing the position.
- Return type:
- static undefined() ostk.astrodynamics.Trajectory¶
Create an undefined Trajectory object.
- Returns:
The undefined Trajectory object.
- Return type: