Skip to content

Add driving actions for the MetaDrive simulator #386

@kevinchang73

Description

@kevinchang73

Describe the feature and motivation

Several driving actions (e.g., SetReverseAction, SetSpeedAction, SetVelocityAction, etc.) are not implemented for the MetaDrive simulator.

Additional context

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()

Issue Submission Checklist

  • I checked the open and closed issues, forum, etc. and have not found any solution

Metadata

Metadata

Assignees

Labels

domain: drivingRelated to driving domainstatus: validIssue is valid and will be worked ontype: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions