lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.29k stars 780 forks source link

Question about NPC vehicle type #1145

Closed yanjiren closed 3 years ago

yanjiren commented 3 years ago
  1. Will new NPC types be released in the next version, such as bicycles and motorcycles ,etc?
  2. How to add a new vehicle type like motocycle? I see there is a tutorial about creating a new vehicle but four wheel nodes.
EricBoiseLGSVL commented 3 years ago

@yanjiren 1) sorry, not yet. We are implementing a way to be able to select and use specific NPCs through the WebUI. It's almost done and will be available in a future release. 2) We will have an example of a motorcycle as an NPC. We do not support a motorcycle as an EGO vehicle. You would need to create a new IVehicleDynamics class. It can be very similar to VehicleSMI.cs just supporting 2 wheels. Build the simulator with the new dynamics class and then create a motorcycle asset bundle with the new dynamics class attached.

Here is our motorcycle example. MotorcycleExample00