scenic.simulators.gta.interface
Python supporting code for the GTA model.
Summary of Module Members
Classes
A model of car in GTA. |
|
|
|
Represents roads and obstacles in GTA, extracted from a map image. |
|
Workspace whose rendering is handled by a Map |
Member Details
- class Map(imagePath, Ax, Ay, Bx, By)[source]
Represents roads and obstacles in GTA, extracted from a map image.
This code handles images from the GTA V Interactive Map, rendered with the “Road” setting.
- class MapWorkspace(mappy, region)[source]
Bases:
Workspace
Workspace whose rendering is handled by a Map
- class CarModel(name, width, length, viewAngle=1.5707963267948966)[source]
A model of car in GTA.
- Attributes:
name (str) – name of model in GTA
width (float) – width of this model of car
length (float) – length of this model of car
viewAngle (float) – view angle in radians (default is 90 degrees)
- Class Attributes:
models – dict mapping model names to the corresponding
CarModel
- Parameters: