carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.37k stars 3.69k forks source link

fix the non-sync of GPU data and CPU data #2069

Closed noahcao closed 4 years ago

noahcao commented 5 years ago

Thanks for the great simulator but I'm facing an issue in the sync mode. In the introduction in the sync mode, you mention:

Note that data coming from GPU-based sensors (cameras) is usually generated with a delay of a couple of frames respect to data coming from CPU-based sensors.

So when I'm trying to do some real-time work on it, the semantic segmentation information and the 3D bounding box are not synced. For example, the red bounding box is the edge of segmentation and the blue bounding box is the 2d projection of the current 3d-bounding box. The 3d-bbox is about 2 frames ahead of the segmentation information which is synced with the rgb camera information.

image

This issue is very tough for me. Is there some solution to fix it or to work around it? Thank you.

soulslicer commented 5 years ago

I have the same issue, and from what I've read it doesn't seem like there is any fix.

I ended up just "extracting" the bounding box from the semantic segmentation and depth map information by doing contour analysis. Granted its slow

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

noahcao commented 4 years ago

Still haven't fixed this issue. Anyone has any suggestions on any version of CARLA?