OrbitTrajectory¶
OrbitTrajectory is a specialized trajectory container for orbital mechanics that stores states in a specific reference frame (ECI or ECEF) and can automatically transform between frames when querying.
OrbitTrajectory has the same API as Trajectory, plus frame awareness.
OrbitTrajectory ¶
OrbitTrajectory(dimension: int, frame: OrbitFrame, representation: OrbitRepresentation, angle_format: Union[AngleFormat, None] = None)
Orbital trajectory with frame and representation awareness.
Stores a sequence of orbital states at specific epochs with support for interpolation, frame conversions, and representation transformations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension | int | State dimension (minimum 6 for position + velocity) | required |
frame | OrbitFrame | Reference frame for the trajectory | required |
representation | OrbitRepresentation | State representation format | required |
angle_format | AngleFormat or None | Angle format for Keplerian states, must be None for Cartesian representation | None |
Attributes:
| Name | Type | Description |
|---|---|---|
dimension | int | State vector dimension |
frame | OrbitFrame | Reference frame |
representation | OrbitRepresentation | State representation format |
angle_format | AngleFormat or None | Angle format for Keplerian representation |
interpolation_method | InterpolationMethod | Current interpolation method |
Example
Initialize instance.
angle_format property ¶
angle_format: AngleFormat
Get trajectory angle format for Keplerian states.
Returns:
| Type | Description |
|---|---|
AngleFormat | AngleFormat or None: Angle format for Keplerian representation, None for Cartesian |
frame property ¶
frame: OrbitFrame
Get trajectory reference frame.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitFrame | OrbitFrame | Reference frame of the trajectory |
length property ¶
length: int
Get the number of states in the trajectory.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Number of states in the trajectory |
representation property ¶
representation: OrbitRepresentation
Get trajectory state representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitRepresentation | OrbitRepresentation | State representation format of the trajectory |
acceleration_at_idx method descriptor ¶
Get the acceleration vector at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index of the state point | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray | None: Acceleration vector if stored, None if acceleration storage is not enabled |
Raises:
| Type | Description |
|---|---|
IndexError | If index is out of bounds |
Example
add method descriptor ¶
Add a state to the trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time of the state | required |
state | ndarray | State vector with dimension matching trajectory's dimension | required |
Example
add_state_and_covariance method descriptor ¶
Add a state vector and associated covariance matrix to the trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time of the state and covariance | required |
state | ndarray | 6-element state vector [x, y, z, vx, vy, vz] in meters and m/s | required |
covariance | ndarray | 6x6 covariance matrix in the same units | required |
Raises:
| Type | Description |
|---|---|
RuntimeError | If the trajectory was not initialized with covariances enabled |
Example
add_with_acceleration method descriptor ¶
Add a state with its corresponding acceleration to the trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Epoch for the state | required |
state | ndarray | State vector | required |
acceleration | ndarray | Acceleration vector | required |
Raises:
| Type | Description |
|---|---|
ValueError | If acceleration storage is not enabled or dimension mismatch |
Example
additional_dimension method descriptor ¶
additional_dimension() -> int
Get the number of additional state elements beyond the orbital state.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Number of additional states (dimension - 6) |
clear method descriptor ¶
clear() -> Any
Clear all states from the trajectory.
Example
covariance method descriptor ¶
Get the covariance matrix at a specific epoch in the trajectory's native frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time at which to retrieve the covariance | required |
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray | None: 6x6 covariance matrix, or None if no covariances are available |
Example
covariance_eci method descriptor ¶
Get the covariance matrix at a specific epoch in the ECI frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time at which to retrieve the covariance | required |
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray | None: 6x6 covariance matrix in ECI frame, or None if no covariances are available |
Example
covariance_gcrf method descriptor ¶
Get the covariance matrix at a specific epoch in the GCRF frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time at which to retrieve the covariance | required |
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray | None: 6x6 covariance matrix in GCRF frame, or None if no covariances are available |
Example
covariance_rtn method descriptor ¶
Get the covariance matrix at a specific epoch in the RTN (Radial, Along-Track, Normal) frame.
The RTN frame is defined as: - R (Radial): Along the position vector (away from Earth center) - T (Along-track): Completes right-handed system (N × R) - N (Normal): Perpendicular to the orbital plane (along angular momentum)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time at which to retrieve the covariance | required |
Returns:
| Type | Description |
|---|---|
ndarray | np.ndarray | None: 6x6 covariance matrix in RTN frame, or None if no covariances are available |
Example
default builtin ¶
default() -> OrbitTrajectory
Create a default empty orbital trajectory (ECI Cartesian).
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | New trajectory with ECI frame and Cartesian representation |
dimension method descriptor ¶
dimension() -> int
Get trajectory dimension (always 6 for orbital trajectories).
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Dimension of the trajectory (always 6) |
enable_acceleration_storage method descriptor ¶
enable_acceleration_storage(dimension: int) -> OrbitTrajectory
Enable storage of acceleration data for this trajectory.
When enabled, accelerations can be stored alongside state data. This is useful for HermiteQuintic interpolation which uses acceleration information for smoother C2-continuous interpolation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension | int | Dimension of acceleration vectors (typically 3 for 3D acceleration) | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with acceleration storage enabled |
Example
end_epoch method descriptor ¶
end_epoch() -> Epoch
Get end epoch of trajectory.
Returns:
| Type | Description |
|---|---|
Epoch | Epoch or None: Last epoch if trajectory is not empty, None otherwise |
Example
epoch_at_idx method descriptor ¶
Get the epoch at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index of the epoch to retrieve | required |
Returns:
| Name | Type | Description |
|---|---|---|
Epoch | Epoch | Epoch at the specified index |
Example
epochs method descriptor ¶
Get all epochs as a list of Epoch objects.
Returns:
| Type | Description |
|---|---|
list[Epoch] | list[Epoch]: List of Epoch objects for all trajectory points |
Example
first method descriptor ¶
first() -> Tuple
Get the first (epoch, state) tuple in the trajectory, if any exists.
Returns:
| Type | Description |
|---|---|
Tuple | tuple or None: Tuple of (Epoch, numpy.ndarray) for first state, or None if empty |
Example
from_orbital_data builtin ¶
from_orbital_data(epochs: list[Epoch], states: ndarray, frame: OrbitFrame, representation: OrbitRepresentation, angle_format: Union[AngleFormat, None] = None, covariances: Union[ndarray, None] = None) -> OrbitTrajectory
Create orbital trajectory from existing data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epochs | list[Epoch] | List of time epochs for each state | required |
states | ndarray | 2D array of 6-element state vectors with shape (N, 6) where N is the number of epochs. Each row is one state vector. | required |
frame | OrbitFrame | Reference frame for the states | required |
representation | OrbitRepresentation | State representation format | required |
angle_format | AngleFormat or None | Angle format for Keplerian states, must be None for Cartesian representation | None |
covariances | ndarray or None | Optional 3D array of 6x6 covariance matrices with shape (N, 6, 6) where N is the number of epochs. Only supported for ECI and GCRF frames. | None |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | New trajectory instance populated with data |
Example
get method descriptor ¶
Get both epoch and state at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index to retrieve | required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple | Tuple | Tuple of (Epoch, numpy.ndarray) for epoch and state at the index |
Example
get_covariance_interpolation_method method descriptor ¶
Get the current covariance interpolation method.
Returns:
| Name | Type | Description |
|---|---|---|
CovarianceInterpolationMethod | CovarianceInterpolationMethod | Current covariance interpolation method |
get_interpolation_method method descriptor ¶
get_interpolation_method() -> InterpolationMethod
Get the current interpolation method.
Returns:
| Name | Type | Description |
|---|---|---|
InterpolationMethod | InterpolationMethod | Current interpolation method |
get_name method descriptor ¶
get_name() -> str
Get the trajectory name.
Returns:
| Type | Description |
|---|---|
str | str | None: The trajectory name, or None if not set |
get_uuid method descriptor ¶
get_uuid() -> str
Get the trajectory UUID.
Returns:
| Type | Description |
|---|---|
str | str | None: The trajectory UUID as a string, or None if not set |
has_accelerations method descriptor ¶
has_accelerations() -> bool
Check if this trajectory has acceleration storage enabled.
Returns:
| Name | Type | Description |
|---|---|---|
bool | bool | True if acceleration storage is enabled, False otherwise |
index_after_epoch method descriptor ¶
Get the index of the state at or after the given epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Index of the state at or after the target epoch |
Example
index_before_epoch method descriptor ¶
Get the index of the state at or before the given epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Index of the state at or before the target epoch |
Example
interpolate method descriptor ¶
Interpolate state at a given epoch using the configured interpolation method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Interpolated state vector |
Example
interpolate_linear method descriptor ¶
Interpolate state at a given epoch using linear interpolation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Linearly interpolated state vector |
Example
last method descriptor ¶
last() -> Tuple
Get the last (epoch, state) tuple in the trajectory, if any exists.
Returns:
| Type | Description |
|---|---|
Tuple | tuple or None: Tuple of (Epoch, numpy.ndarray) for last state, or None if empty |
Example
len method descriptor ¶
len() -> int
Get the number of states in the trajectory (alias for length).
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Number of states in the trajectory |
nearest_state method descriptor ¶
Get the nearest state to a given epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple | Tuple | Tuple of (Epoch, numpy.ndarray) containing the nearest state |
Example
orbital_dimension method descriptor ¶
orbital_dimension() -> int
Get the orbital state dimension (always 6).
The orbital state consists of position (3) and velocity (3) components.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Always returns 6 |
remove method descriptor ¶
Remove a state at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index of the state to remove | required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple | Tuple | Tuple of (Epoch, numpy.ndarray) for the removed epoch and state |
Example
remove_epoch method descriptor ¶
Remove a state at a specific epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Epoch of the state to remove | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: The removed state vector |
Example
set_acceleration_at method descriptor ¶
Set the acceleration vector at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index of the state point | required |
acceleration | ndarray | Acceleration vector to set | required |
Raises:
| Type | Description |
|---|---|
IndexError | If index is out of bounds |
ValueError | If acceleration storage is not enabled or dimension mismatch |
Example
set_covariance_interpolation_method method descriptor ¶
set_covariance_interpolation_method(method: CovarianceInterpolationMethod) -> Any
Set the covariance interpolation method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method | CovarianceInterpolationMethod | Covariance interpolation method to use | required |
set_eviction_policy_max_age method descriptor ¶
Set eviction policy to keep states within maximum age.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_age | float | Maximum age in seconds relative to most recent state | required |
set_eviction_policy_max_size method descriptor ¶
Set eviction policy to keep maximum number of states.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_size | int | Maximum number of states to retain | required |
set_interpolation_method method descriptor ¶
set_interpolation_method(method: InterpolationMethod) -> Any
Set the interpolation method for the trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method | InterpolationMethod | New interpolation method | required |
start_epoch method descriptor ¶
start_epoch() -> Epoch
Get start epoch of trajectory.
Returns:
| Type | Description |
|---|---|
Epoch | Epoch or None: First epoch if trajectory is not empty, None otherwise |
Example
state method descriptor ¶
Get state at specified epoch (in native frame/representation).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in trajectory's native frame and representation |
Example
state_after_epoch method descriptor ¶
Get the state at or after the given epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple | Tuple | Tuple of (Epoch, numpy.ndarray) containing state at or after the target epoch |
Example
state_at_idx method descriptor ¶
Get the state vector at a specific index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index | int | Index of the state to retrieve | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector at the specified index |
Example
state_before_epoch method descriptor ¶
Get the state at or before the given epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Target epoch | required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple | Tuple | Tuple of (Epoch, numpy.ndarray) containing state at or before the target epoch |
Example
state_ecef method descriptor ¶
Get state in ECEF Cartesian frame at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in ECEF Cartesian [x, y, z, vx, vy, vz] (meters, m/s) |
Example
state_eci method descriptor ¶
Get state in ECI Cartesian frame at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in ECI Cartesian [x, y, z, vx, vy, vz] (meters, m/s) |
Example
state_eme2000 method descriptor ¶
Get state in EME2000 Cartesian frame at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in EME2000 Cartesian [x, y, z, vx, vy, vz] (meters, m/s) |
Example
state_gcrf method descriptor ¶
Get state in GCRF Cartesian frame at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in GCRF Cartesian [x, y, z, vx, vy, vz] (meters, m/s) |
Example
state_itrf method descriptor ¶
Get state in ITRF Cartesian frame at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: State vector in ITRF Cartesian [x, y, z, vx, vy, vz] (meters, m/s) |
Example
state_koe_mean method descriptor ¶
state_koe_mean(epoch: Epoch, angle_format: AngleFormat) -> ndarray
Get mean Keplerian elements at a given epoch.
Mean elements are orbit-averaged elements that remove short-period and long-period J2 perturbations using first-order Brouwer-Lyddane theory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | The epoch to get elements at. | required |
angle_format | AngleFormat | If AngleFormat.DEGREES, angular elements are returned in degrees, otherwise in radians. | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Mean Keplerian elements [a, e, i, raan, argp, M] |
Example
state_koe_osc method descriptor ¶
state_koe_osc(epoch: Epoch, angle_format: AngleFormat) -> ndarray
Get state as osculating Keplerian elements at specified epoch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Time for state query | required |
angle_format | AngleFormat | Desired angle format for output | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Osculating Keplerian elements [a, e, i, raan, argp, M] |
Example
states method descriptor ¶
states() -> ndarray
Get all states as a numpy array.
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 2D array of states with shape (N, 6) where N is the number of states |
Example
states_koe_mean method descriptor ¶
states_koe_mean(epochs: list[Epoch], angle_format: AngleFormat) -> List
Get mean Keplerian elements at multiple epochs.
Mean elements are orbit-averaged elements that remove short-period and long-period J2 perturbations using first-order Brouwer-Lyddane theory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epochs | list[Epoch] | List of epochs to query. | required |
angle_format | AngleFormat | Desired angle format for output. | required |
Returns:
| Type | Description |
|---|---|
List | list[numpy.ndarray]: List of mean Keplerian elements [a, e, i, raan, argp, M]. |
states_koe_osc method descriptor ¶
states_koe_osc(epochs: list[Epoch], angle_format: AngleFormat) -> List
Get osculating Keplerian elements at multiple epochs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epochs | list[Epoch] | List of epochs to query. | required |
angle_format | AngleFormat | Desired angle format for output. | required |
Returns:
| Type | Description |
|---|---|
List | list[numpy.ndarray]: List of osculating Keplerian elements [a, e, i, raan, argp, M]. |
timespan method descriptor ¶
timespan() -> float
Get time span of trajectory in seconds.
Returns:
| Type | Description |
|---|---|
float | float or None: Time span between first and last epochs, or None if less than 2 states |
Example
to_ecef method descriptor ¶
to_ecef() -> OrbitTrajectory
Convert to ECEF (Earth-Centered Earth-Fixed) frame in Cartesian representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in ECEF Cartesian frame |
Example
to_eci method descriptor ¶
to_eci() -> OrbitTrajectory
Convert to ECI (Earth-Centered Inertial) frame in Cartesian representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in ECI Cartesian frame |
Example
to_eme2000 method descriptor ¶
to_eme2000() -> OrbitTrajectory
Convert to EME2000 (Earth Mean Equator and Equinox of J2000.0) frame in Cartesian representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in EME2000 Cartesian frame |
Example
to_gcrf method descriptor ¶
to_gcrf() -> OrbitTrajectory
Convert to GCRF (Geocentric Celestial Reference Frame) frame in Cartesian representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in GCRF Cartesian frame |
Example
to_itrf method descriptor ¶
to_itrf() -> OrbitTrajectory
Convert to ITRF (International Terrestrial Reference Frame) frame in Cartesian representation.
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in ITRF Cartesian frame |
Example
to_keplerian method descriptor ¶
to_keplerian(angle_format: AngleFormat) -> OrbitTrajectory
Convert to Keplerian representation in ECI frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
angle_format | AngleFormat | Angle format for the result (Radians or Degrees) | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Trajectory in ECI Keplerian representation |
Example
to_matrix method descriptor ¶
to_matrix() -> ndarray
Convert trajectory to matrix representation.
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 2D array with shape (6, N) where N is number of states |
Example
with_covariance_interpolation_method method descriptor ¶
with_covariance_interpolation_method(method: CovarianceInterpolationMethod) -> OrbitTrajectory
Set covariance interpolation method using builder pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method | CovarianceInterpolationMethod | Covariance interpolation method to use | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with updated covariance interpolation method |
with_eviction_policy_max_age method descriptor ¶
with_eviction_policy_max_age(max_age: float) -> OrbitTrajectory
Set eviction policy to keep states within maximum age using builder pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_age | float | Maximum age of states in seconds | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with updated eviction policy |
with_eviction_policy_max_size method descriptor ¶
with_eviction_policy_max_size(max_size: int) -> OrbitTrajectory
Set eviction policy to keep maximum number of states using builder pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_size | int | Maximum number of states to retain | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with updated eviction policy |
with_id method descriptor ¶
with_id(id: int) -> OrbitTrajectory
Set the trajectory numeric ID and return self (builder pattern).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id | int | Numeric ID to assign to the trajectory | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with ID set |
with_interpolation_method method descriptor ¶
with_interpolation_method(interpolation_method: InterpolationMethod) -> OrbitTrajectory
Set interpolation method using builder pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interpolation_method | InterpolationMethod | Interpolation method to use | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with updated interpolation method |
with_name method descriptor ¶
with_name(name: str) -> OrbitTrajectory
Set the trajectory name and return self (builder pattern).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | str | Name to assign to the trajectory | required |
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with name set |
with_new_uuid method descriptor ¶
with_new_uuid() -> OrbitTrajectory
Generate a new UUID and set it on the trajectory (builder pattern).
Returns:
| Name | Type | Description |
|---|---|---|
OrbitTrajectory | OrbitTrajectory | Self with new UUID set |
See Also¶
- Trajectory - Dynamic-dimension trajectory
- OrbitFrame - Frame specifications