scenic.simulators.gta.interface

Python supporting code for the GTA model.

Summary of Module Members

Classes

CarModel

A model of car in GTA.

GTA

Map

Represents roads and obstacles in GTA, extracted from a map image.

MapWorkspace

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.

Parameters
  • imagePath (str) – path to image file

  • Ax (float) – width of one pixel in GTA coordinates

  • Ay (float) – height of one pixel in GTA coordinates

  • Bx (float) – GTA X-coordinate of bottom-left corner of image

  • By (float) – GTA Y-coordinate of bottom-left corner of image

class MapWorkspace(mappy, region)[source]

Bases: scenic.core.workspaces.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