sf-grid
package, you can start configuring the GRID Enterprise by creating and modifying the necessary JSON configuration files.
session_config.json
file defines the simulation and environmental settings for AirGen and GRID. This file includes everything from selecting the environment to configuring vehicles and camera setups.
Here is a baseline session configuration JSON:
env_name
in the session configuration JSON. The following environments are currently available:
Environment Name | File Name (without .tar.gz ) |
---|---|
Abandoned Factory | abandoned_factory |
City Block | city_block |
Construction Site | construction_site |
Electric Central | electric_central |
Factory District | factory_district |
Night City | night_city |
Office Building | office_building |
Parking Garage | parking_garage |
Neighborhood | neighborhood |
.tar.gz
extension when specifying the environment name in your JSON configuration.settings
object, you define the mode of simulation and specific parameters for vehicles, cameras, and other simulation elements.
"Multirotor"
for drone simulations or "Car"
for vehicle simulations.
VehicleType
and VehicleModel
settings.
"SimpleFlight"
; for cars, use "Chaos."
Vehicle Name | VehicleType | VehicleModel |
---|---|---|
Default | SimpleFlight | Default |
Industrial Drone | SimpleFlight | Matrice300RTK |
eVTOL | SimpleFlight | eVTOL |
Freefly Alta X | SimpleFlight | AltaX |
Freefly Astro | SimpleFlight | Astro |
Agricultural Drone | SimpleFlight | IndustrialX4 |
Holybro S500 | SimpleFlight | HolybroS500 |
ModalAI Starling 2 Max | SimpleFlight | Starling2Max |
Vehicles
category:
(X, Y, Z)
locations.
geo
is set to true
, this setting specifies the starting geographic coordinates for the robot, critical for geospatial simulations.
true
, recording starts only when the vehicle or robot is moving.CameraDefaults
, allowing for multiple viewpoints within the simulation.PhysX
.FastPhysicsEngine
and ExternalPhysicsEngine
.setVehiclePose()
, useful for integration with external simulators or pre-defined paths.ImageType
is -1.
0
, meaning no gimbal (i.e., the camera orientation changes with the body orientation on all axes). A value of 1
means full stabilization. Any value between 0
and 1
acts as a weight for the fixed angles specified (in degrees, in the world frame) in the Pitch
, Roll
, and Yaw
elements, along with the orientation of the vehicle body. If any of the angles is omitted from the JSON or set to NaN, that angle is not stabilized (i.e., it moves with the vehicle body).OriginGeopoint
for the date specified in StartDateTime
.
StartDateTime: String format %Y-%m-%d %H:%M:%S
. If empty, current date and time are used. Example: 2018-02-12 15:20:00
.
StartDateTimeDst: Adjusts for daylight savings time if true.
UpdateIntervalSecs: Sets how frequently the Sun’s position is updated.
CelestialClockSpeed: Controls how fast the Sun moves in the sky relative to simulation time. Example: 100
means the Sun advances 100 seconds for every 1 second of simulation time.
Once we have all the configurations set up, we can start the GRID session through our terminal which is covered in the next section.