STK ObjectsSend comments on this topic.
IAgGroundVehicle Interface

Description

Interface for a ground vehicle object.

Public Properties

Public Property AtmosphereThis property is deprecated. The new RFEnvironment property can be used to configure atmospheric models.
Public Property ExportToolsReturns the IAgGvExportTools interface.
Public Property GetEOIRGet the EOIR properties of the gound vehicle.
Public Property GraphicsGet the ground vehicle's 2D Graphics properties.
Public Property LaserEnvironmentGets the laser environment.
Public Property LightingMaxStepCbShapeThe maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.
Public Property LightingMaxStepTerrainThe maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.
Public Property RadarClutterMapReturns the radar clutter map.
Public Property RadarCrossSectionReturns the radar cross sectoin.
Public Property RFEnvironmentGets the RF environment.
Public Property VOGet the ground vehicle's 3D Graphics properties.

Interfaces

CoClasses that Implement IAgGroundVehicle

Example

Create a ground vehicle (on current scenario central body)
[C#]
// Create the ground vehicle
IAgGroundVehicle launchVehicle = root.CurrentScenario.Children.New(AgESTKObjectType.eGroundVehicle,  "MyGroundVehicle") as IAgGroundVehicle;
Set ground vehicle to use Great Arc propagator
[C#]
// Set ground vehicle route to great arc
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc);

// Retrieve propagator interface if necessary
IAgVePropagatorGreatArc propagator = groundVehicle.Route as IAgVePropagatorGreatArc;
Set ground vehicle to use STK External propagator
[C#]
// Set groundVehicle route to STK External propagator
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal);

// Retrieve propagator interface if necessary
IAgVePropagatorStkExternal propagator = groundVehicle.Route as IAgVePropagatorStkExternal;
Set ground vehicle to use Realtime propagator
[C#]
// Set ground vehicle route to STK External propagator
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorRealtime);

// Retrieve propagator interface if necessary
IAgVePropagatorRealtime propagator = groundVehicle.Route as IAgVePropagatorRealtime;
Create a ground vehicle (on current scenario central body)
[Visual Basic .NET]
' Create the ground vehicle
Dim launchVehicle As IAgGroundVehicle = TryCast(root.CurrentScenario.Children.[New](AgESTKObjectType.eGroundVehicle, "MyGroundVehicle"), IAgGroundVehicle)
Set ground vehicle to use Great Arc propagator
[Visual Basic .NET]
' Set ground vehicle route to great arc
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)

' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorGreatArc = TryCast(groundVehicle.Route, IAgVePropagatorGreatArc)
Set ground vehicle to use STK External propagator
[Visual Basic .NET]
' Set groundVehicle route to STK External propagator
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal)

' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorStkExternal = TryCast(groundVehicle.Route, IAgVePropagatorStkExternal)
Set ground vehicle to use Realtime propagator
[Visual Basic .NET]
' Set ground vehicle route to STK External propagator
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorRealtime)

' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorRealtime = TryCast(groundVehicle.Route, IAgVePropagatorRealtime)
Create a New Ground Vehicle (on the current scenario central body)
[Python - STK API]
# IAgScenario scenario: Scenario object
grndVehicle = scenario.Children.New(AgESTKObjectType.eGroundVehicle, 'MyVehicle')
grndVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)

Set Great Arc Propagator and Add Individual Waypoints to Ground Vehicle
[Python - STK API]
# IAgGroundVehicle grndVehicle: Ground Vehicle object
# Set route to great arc, method and altitude reference
grndVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)
route = grndVehicle.Route
route.Method = AgEVeWayPtCompMethod.eDetermineTimeAccFromVel
route.SetAltitudeRefType(AgEVeAltitudeRef.eWayPtAltRefWGS84)
# Add first point
waypoint = route.Waypoints.Add()
waypoint.Latitude = 56.18
waypoint.Longitude = 40.91
waypoint.Altitude = 0  # km
waypoint.Speed = .026  # km/sec
# Add second point
waypoint2 = route.Waypoints.Add()
waypoint2.Latitude = 50.22
waypoint2.Longitude = 11.05
waypoint2.Altitude = 0  # km
waypoint2.Speed = .026  # km/sec
# Propagate the route
route.Propagate()

Add Array of Waypoints to Ground Vehicle and Interpolate over Terrain
[Python - STK API]
# IAgGroundVehicle grndVehicle: Ground Vehicle object
route = grndVehicle.Route
ptsArray = [[41.97766217, 21.44863761, 0, 0.026, .5], [41.97422351, 21.39956154, 0, 0.026, .5], [41.99173299, 21.40796942, 0, 0.026, .5]]
route.SetPointsSmoothRateAndPropagate(ptsArray)
route.SetAltitudeRefType(AgEVeAltitudeRef.eWayPtAltRefTerrain)
route.AltitudeRef.Granularity = .001
route.AltitudeRef.InterpMethod = AgEVeWayPtInterpMethod.eWayPtTerrainHeight
# Propagate the route
route.Propagate()

Create a New Ground Vehicle (on the current scenario central body)
[MATLAB]
% IAgScenario scenario: Scenario object
grndVehicle = scenario.Children.New('eGroundVehicle', 'MyVehicle');
grndVehicle.SetRouteType('ePropagatorGreatArc');


        
Set Great Arc Propagator and Add Individual Waypoints to Ground Vehicle
[MATLAB]
% IAgGroundVehicle grndVehicle: Ground Vehicle object
% Set route to great arc, method and altitude reference
grndVehicle.SetRouteType('ePropagatorGreatArc');
route = grndVehicle.Route;
route.Method = 'eDetermineTimeAccFromVel';
route.SetAltitudeRefType('eWayPtAltRefWGS84');
% Add first point
waypoint = route.Waypoints.Add();
waypoint.Latitude = 56.18;
waypoint.Longitude = 40.91;
waypoint.Altitude = 0;  % km
waypoint.Speed = .026;    % km/sec
% Add second point
waypoint2 = route.Waypoints.Add();
waypoint2.Latitude = 50.22;
waypoint2.Longitude = 11.05;
waypoint2.Altitude = 0; % km
waypoint2.Speed = .026;    % km/sec
% Propagate the route
route.Propagate();


        
Add Array of Waypoints to Ground Vehicle and Interpolate over Terrain
[MATLAB]
% IAgGroundVehicle grndVehicle: Ground Vehicle object
route = grndVehicle.Route;
ptsArray = {41.97766217, 21.44863761, 0, 0.026, .5;
            41.97422351, 21.39956154, 0, 0.026, .5;
            41.99173299, 21.40796942, 0, 0.026, .5};
route.SetPointsSmoothRateAndPropagate(ptsArray);
route.SetAltitudeRefType('eWayPtAltRefTerrain');
route.AltitudeRef.Granularity = .001;
route.AltitudeRef.InterpMethod = 'eWayPtTerrainHeight';
% Propagate the route
route.Propagate();


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.