lgsvl / simulator

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

fuse RGB and Lidar at identical timestamp but failed #1569

Open bittuh opened 3 years ago

bittuh commented 3 years ago

Hi LGSVL team,

I'm trying to fuse RGB image and Lidar output from cyber_recorder, with 60/30 FPS respectively, in order to get RGBD-like data (i.e. colorize point cloud according to camera image). However the same (moving) objects in RGB and Lidar appears differently even the timestamp is identical (in ms). I had ensured timestamp coming from simulator by setting MODE_MOCK as doc suggested.

Is there any way to get the correct RGB & Lidar mapping ITO time?

EricBoiseLGSVL commented 3 years ago

Is the issue in the speed of bridge transmission? Any ideas @kamkolak-lge ?

kamkolak-lge commented 3 years ago

There are multiple things that might be wrong here, so I'll ask a few questions to narrow it down:

bittuh commented 3 years ago

Thanks for your help @kamkolak-lge

kamkolak-lge commented 3 years ago

@bittuh You can clone the lidar repository and follow the asset build instructions to build the bundle and upload it through the web interface.

As for the compatibility - the change I mentioned was done after the 2021.1 tag, which means it might not be possible to build it using that particular version. It should be compatible with Simulator version 2021.2.

Edit: regarding inconsistency between simulator and web interface: all bundles include information about version of the simulator they were built in (more specifically, asset format version). When you build the bundle yourself, it should be compatible with the version of the simulator it was built in.

Edit 2: It seems that public lidar bundle for version 2021.2 already includes the change you need. It should be used when you move to Simulator version 2021.2 - you shouldn't have to build anything yourself. Cubemap Size parameter might not visible, but it seems to be a bug. Let me know if moving to version 2021.2 fixed the issue with moving objects.