scenic.simulators.gta.model

World model for GTA.

Summary of Module Members

Module Attributes

roadDirection

Vector field representing the nominal traffic direction at a point on the road

road

Region representing the roads in the GTA map.

curb

Region representing the curbs in the GTA map.

workspace

Workspace over the road Region.

Functions

createPlatoonAt

Create a platoon starting from the given car.

Classes

Bus

Convenience subclass for buses.

Car

Scenic class for cars.

Compact

Convenience subclass for compact cars.

EgoCar

Convenience subclass with defaults for ego cars.

Member Details

roadDirection

Vector field representing the nominal traffic direction at a point on the road

road

Region representing the roads in the GTA map.

curb

Region representing the curbs in the GTA map.

workspace

Workspace over the road Region.

class Car(<specifiers>)[source]

Bases: scenic.core.object_types.Object

Scenic class for cars.

Properties
  • position – The default position is uniformly random over the road.

  • heading – The default heading is aligned with roadDirection, plus an offset given by roadDeviation.

  • roadDeviation (float) – Relative heading with respect to the road direction at the Car’s position. Used by the default value for heading.

  • model (CarModel) – Model of the car.

  • color (Color or RGB tuple) – Color of the car.

class EgoCar(<specifiers>)[source]

Bases: scenic.simulators.gta.model.Car

Convenience subclass with defaults for ego cars.

class Bus(<specifiers>)[source]

Bases: scenic.simulators.gta.model.Car

Convenience subclass for buses.

class Compact(<specifiers>)[source]

Bases: scenic.simulators.gta.model.Car

Convenience subclass for compact cars.

createPlatoonAt(car, numCars, model=None, dist=<scenic.core.distributions.Range object>, shift=<scenic.core.distributions.Range object>, wiggle=0)[source]

Create a platoon starting from the given car.