GroundVehicle#

class ansys.stk.core.stkobjects.GroundVehicle#

Bases: ISTKObject, ILifetimeInformation, IGreatArcVehicle, IProvideSpatialInfo

Ground vehicle object.

Overview#

graphics

Get the ground vehicle’s 2D Graphics properties.

graphics_3d

Get the ground vehicle’s 3D Graphics properties.

export_tools

Return the GroundVehicleExportTools interface.

atmosphere

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

radar_clutter_map

Return the radar clutter map.

radar_cross_section

Return the radar cross sectoin.

laser_environment

Get the laser environment.

rf_environment

Get the RF environment.

lighting_maximum_step_terrain

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

lighting_maximum_step_central_body_shape

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

get_eoir_settings

Get the EOIR properties of the gound vehicle.

Examples#

Add Array of Waypoints to a Ground Vehicle and Interpolate over Terrain

# GroundVehicle grndVehicle: Ground Vehicle object
route = grndVehicle.route
ptsArray = [
    [41.97766217, 21.44863761, 0, 0.026, 0.5],
    [41.97422351, 21.39956154, 0, 0.026, 0.5],
    [41.99173299, 21.40796942, 0, 0.026, 0.5],
]
route.set_points_smooth_rate_and_propagate(ptsArray)
route.set_altitude_reference_type(VehicleAltitudeReference.TERRAIN)
route.altitude_reference.granularity = 0.001
route.altitude_reference.interpolation_method = VehicleWaypointInterpolationMethod.TERRAIN_HEIGHT
# Propagate the route
route.propagate()

Set the Great Arc Propagator and Add Individual Waypoints to a Ground Vehicle

# GroundVehicle grndVehicle: Ground Vehicle object
# Set route to great arc, method and altitude reference
groundVehicle.set_route_type(PropagatorType.GREAT_ARC)
route = groundVehicle.route
route.method = VehicleWaypointComputationMethod.DETERMINE_TIME_ACCELERATION_FROM_VELOCITY
route.set_altitude_reference_type(VehicleAltitudeReference.WGS84)
# Add first point
waypoint = route.waypoints.add()
waypoint.latitude = 56.18
waypoint.longitude = 40.91
waypoint.altitude = 0  # km
waypoint.speed = 0.026  # km/sec
# Add second point
waypoint2 = route.waypoints.add()
waypoint2.latitude = 50.22
waypoint2.longitude = 11.05
waypoint2.altitude = 0  # km
waypoint2.speed = 0.026  # km/sec
# Propagate the route
route.propagate()

Create a New Ground Vehicle (on the current scenario central body)

# Scenario scenario: Scenario object
grndVehicle = scenario.children.new(STKObjectType.GROUND_VEHICLE, "MyVehicle")
grndVehicle.set_route_type(PropagatorType.GREAT_ARC)

Import detail#

from ansys.stk.core.stkobjects import GroundVehicle

Property detail#

property GroundVehicle.graphics: GroundVehicleGraphics#

Get the ground vehicle’s 2D Graphics properties.

property GroundVehicle.graphics_3d: GroundVehicleGraphics3D#

Get the ground vehicle’s 3D Graphics properties.

property GroundVehicle.export_tools: GroundVehicleExportTools#

Return the GroundVehicleExportTools interface.

property GroundVehicle.atmosphere: Atmosphere#

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

property GroundVehicle.radar_clutter_map: IRadarClutterMapInheritable#

Return the radar clutter map.

property GroundVehicle.radar_cross_section: RadarCrossSectionInheritable#

Return the radar cross sectoin.

property GroundVehicle.laser_environment: PlatformLaserEnvironment#

Get the laser environment.

property GroundVehicle.rf_environment: IPlatformRFEnvironment#

Get the RF environment.

property GroundVehicle.lighting_maximum_step_terrain: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

property GroundVehicle.lighting_maximum_step_central_body_shape: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

property GroundVehicle.get_eoir_settings: IEOIR#

Get the EOIR properties of the gound vehicle.