Several driving actions (e.g., SetReverseAction
, SetSpeedAction
, SetVelocityAction
, etc.) are not implemented for the MetaDrive simulator.
Here’s a sample code snippet: using the MetaDrive model results in a NotImplementedError
, whereas the Newtonian model works as expected.
param map = localPath('../maps/Town05.xodr')
model scenic.simulators.metadrive.model
#model scenic.simulators.newtonian.driving_model
EGO_MODEL = "vehicle.toyota.prius"
behavior EgoBehavior():
take SetSpeedAction(1)
ego = new Car at (0, 0),
with blueprint EGO_MODEL,
with behavior EgoBehavior()