lgsvl / simulator

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

AutowareAi Control Sensor is not working with a custom vehicle #1465

Open j-corvo opened 3 years ago

j-corvo commented 3 years ago

Hello,

I have imported a custom vehicle (scout2.0 from Agilex) into the simulator, after the setup needed on Unity3D. After that, I've created a simulation for the new vehicle. Almost all the sensors are working well with the rosbridge for ROS2, except the AutowareAi Control Sensor. When I introduced that sensor the simulation crash and don't run at all.

As it's an important sensor for my work, I was wondering what I can do to make it work with my custom vehicle.

Screenshots of the error and vehicle configuration are above.

CONFIGURATION: image

ERROR image

Thank you in advance for your help!

EricBoiseLGSVL commented 3 years ago

It says that ROS2 bridge doesn't understand the AutowareVehicleControlData. If you want to use ROS2 and this sensor, you will need to write the serialization code for the bridge. This sensor was written for ROS not ROS2