SpatialState#

class ansys.stk.core.stkobjects.SpatialState#

Represents a position and an attitude of an object.

Overview#

query_velocity_fixed

Return a velocity of the vehicle in central body fixed frame.

query_velocity_inertial

Return a velocity of the vehicle in central body inertial frame.

fixed_position

Return a position of the vehicle in central body fixed frame.

inertial_position

Return a position of the vehicle in central body inertial frame.

inertial_orientation

Return an attitude of the vehicle in central body inertial frame.

fixed_orientation

Return an attitude of the vehicle in central body fixed frame.

current_time

Return the current time.

central_body

Return a name of the central body.

start_time

Return the start time.

stop_time

Return the stop time.

is_available

Return whether the spatial state is valid.

Import detail#

from ansys.stk.core.stkobjects import SpatialState

Property detail#

property SpatialState.fixed_position: IPosition#

Return a position of the vehicle in central body fixed frame.

property SpatialState.inertial_position: IPosition#

Return a position of the vehicle in central body inertial frame.

property SpatialState.inertial_orientation: IOrientation#

Return an attitude of the vehicle in central body inertial frame.

property SpatialState.fixed_orientation: IOrientation#

Return an attitude of the vehicle in central body fixed frame.

property SpatialState.current_time: Any#

Return the current time.

property SpatialState.central_body: str#

Return a name of the central body.

property SpatialState.start_time: Any#

Return the start time.

property SpatialState.stop_time: Any#

Return the stop time.

property SpatialState.is_available: bool#

Return whether the spatial state is valid.

Method detail#

SpatialState.query_velocity_fixed(self) Tuple[float, float, float]#

Return a velocity of the vehicle in central body fixed frame.

Returns:

Tuple[float, float, float]

SpatialState.query_velocity_inertial(self) Tuple[float, float, float]#

Return a velocity of the vehicle in central body inertial frame.

Returns:

Tuple[float, float, float]