Description
Interface for a ground vehicle object.
Object Model
Public Properties
Interfaces
Example
Create a ground vehicle (on current scenario central body)
[C#] | Copy Code |
---|
IAgGroundVehicle launchVehicle = root.CurrentScenario.Children.New(AgESTKObjectType.eGroundVehicle, "MyGroundVehicle") as IAgGroundVehicle;
|
|
Set ground vehicle to use Great Arc propagator
[C#] | Copy Code |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc);
IAgVePropagatorGreatArc propagator = groundVehicle.Route as IAgVePropagatorGreatArc;
|
|
Set ground vehicle to use STK External propagator
[C#] | Copy Code |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal);
IAgVePropagatorStkExternal propagator = groundVehicle.Route as IAgVePropagatorStkExternal;
|
|
Set ground vehicle to use Realtime propagator
[C#] | Copy Code |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorRealtime);
IAgVePropagatorRealtime propagator = groundVehicle.Route as IAgVePropagatorRealtime;
|
|
Create a ground vehicle (on current scenario central body)
[Visual Basic .NET] | Copy Code |
---|
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 |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)
Dim propagator As IAgVePropagatorGreatArc = TryCast(groundVehicle.Route, IAgVePropagatorGreatArc)
|
|
Set ground vehicle to use STK External propagator
[Visual Basic .NET] | Copy Code |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal)
Dim propagator As IAgVePropagatorStkExternal = TryCast(groundVehicle.Route, IAgVePropagatorStkExternal)
|
|
Set ground vehicle to use Realtime propagator
[Visual Basic .NET] | Copy Code |
---|
groundVehicle.SetRouteType(AgEVePropagatorType.ePropagatorRealtime)
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