AGI STK Objects 11 Send comments on this topic.
IAgGroundVehicle Interface





Description

Interface for a ground vehicle object.

Object Model







Public Properties

Public Property Atmosphere The local atmosphere.
Public Property ExportTools Returns the IAgGvExportTools interface.
Public Property Graphics Get the ground vehicle's 2D Graphics properties.
Public Property RadarClutterMap Returns the radar clutter map.
Public Property RadarCrossSection Returns the radar cross sectoin.
Public Property VO Get the ground vehicle's 3D Graphics properties.

Interfaces

Implemented Interface
IAgGreatArcVehicle

Example

Create a ground vehicle (on current scenario central body)
[C#] Copy Code
// Create the ground vehicle 
IAgGroundVehicle launchVehicle = root.CurrentScenario.Children.New(AgESTKObjectType.eGroundVehicle,  "MyGroundVehicle"as IAgGroundVehicle; 
 

Set ground vehicle to use Great Arc propagator
[C#] Copy Code
// 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#] Copy Code
// 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#] Copy Code
// 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] Copy Code
' 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] Copy Code
' 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] Copy Code
' 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] Copy Code
' 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)
[MATLAB] Copy Code
% 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] Copy Code
% 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] Copy Code
% 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; 
 
 

CoClasses that Implement IAgGroundVehicle

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1