scenic.domains.driving.simulators
Abstract interface to simulators supporting the driving domain.
Summary of Module Members
Classes
A |
|
A |
Member Details
- class DrivingSimulation(scene, *, maxSteps, name, timestep, replay=None, enableReplay=True, allowPickle=False, enableDivergenceCheck=False, divergenceTolerance=0, continueAfterDivergence=False, verbosity=0)[source]
Bases:
Simulation
A
Simulation
with a simulator supporting the driving domain.This subclass of
Simulation
provides no special behavior by itself; it just provides convenience methods for creating controllers to be used byFollowLaneBehavior
and related behaviors, so that the parameters of these controllers can be customized for different simulators.- getLaneFollowingControllers(agent)[source]
Get longitudinal and lateral controllers for lane following.
The default controllers are simple PID controllers with parameters that work reasonably well for cars in simulators with realistic physics. See the classes
PIDLongitudinalController
andPIDLateralController
for details, andNewtonianSimulation
for an example of how to override this function.- Returns:
A pair of controllers for throttle and steering respectively.