Syncing/Merging camera and lidar data for a detected object
I would like to use a camera to detect and classify an object. Further, I would like to use a lidar to get the distance to the detected object. How can I ensure that the distance I am getting from the lidar is for the object of interest detected/classified by the camera. Meaning how do I do the time syncing of the data published by these two separate sensors.
Btw, I do have a working robot that has a camera and lidar attached to it and I can see the data being published correctly.
Any direction would be helpful.