Description
Interface for a ground vehicle object.
Public 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] |
---|
# 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] |
---|
# 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] |
---|
# 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()
|
|
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;
|
|