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






Windows & Linux

Description

Interface for a ground vehicle object.

Object Model







Public Properties

Public Property AtmosphereThe local atmosphere.
Public Property ExportToolsReturns the IAgGvExportTools interface.
Public Property GraphicsGet the ground vehicle's 2D Graphics properties.
Public Property RadarClutterMapReturns the radar clutter map.
Public Property RadarCrossSectionReturns the radar cross sectoin.
Public Property VOGet 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; 
 
 
Create a New Ground Vehicle (on the current scenario central body)
[Python]Copy Code
# IAgScenario scenario: Scenario object 
grndVehicle = scenario.Children.New(9,'MyVehicle') # eGroundVehicle 
grndVehicle.SetRouteType(9) # ePropagatorGreatArc 
 
 
Set Great Arc Propagator and Add Individual Waypoints to Ground Vehicle
[Python]Copy Code
# IAgGroundVehicle grndVehicle: Ground Vehicle object 
# Set route to great arc, method and altitude reference 
grndVehicle.SetRouteType(9) # ePropagatorGreatArc 
route = grndVehicle.Route 
route.Method = 0 # eDetermineTimeAccFromVel 
route.SetAltitudeRefType(2) # 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]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(1) # eWayPtAltRefTerrain 
route.AltitudeRef.Granularity = .001 
route.altitudeRef.InterpMethod = 1 # eWayPtTerrainHeight 
#Propagate the route 
route.Propagate() 
 
 

CoClasses that Implement IAgGroundVehicle

© 2018 Analytical Graphics, Inc. All Rights Reserved.