carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
513 stars 414 forks source link

ROS2 spawn custom vehicle #606

Closed CharlesXu1124 closed 2 years ago

CharlesXu1124 commented 2 years ago

I wanted to spawn a custom made vehicle in the simulator, how should I properly modify objects.json file? I noticed that the default one is set to "vehicle.tesla.model3", should I change it to "vehicle.VEHICLE_TYPE"? (The vehicle model has already been imported into CARLA UE4 editor and I can definitely use it in Python API manual control script, but simply returns not found error in ROS bridge)

CharlesXu1124 commented 2 years ago

nvm figured out the issue, name mismatch with that added vehicle in VehicleFactory blueprint