-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROS stereo image syncronisation #2784
Comments
So are the images fetched using the Python API same? |
Yes, that seems related. Faster image capture or slower clockspeed will solve this to an extend, but they still do not fix the underlying issue that the images are taken at different points in time. In my case the problem is worse because the image resolution is bigger. It seems that the images are captured sequentially. When working with https://github.com/code-iai/ROSIntegrationVision/ it seemed that each camera was triggered in parallel, and then the readout happened sequentially. |
this is a pretty old bug. has anyone found a workaround for this? I am looking to use SLAM in real time. as in, have the stereo camera images fed into the SLAM algorithm and use the estimated state from the SLAM algorithm to control the drone |
Did someone able to fix the issue ? I tried pause sim, which some people suggested in other threads, but it didn't work. Its very annoying, AirSim team didn't provide update on this bug till now. I tried Carla simulator, which is also based on UE, where it is able to sync correctly across multiple images without any issue !!! code snippet
output:
Settings.json
|
@suresh-guttikonda it should work if you pause and un-pause. I tried it that way and it worked. |
yes, i tried with both ways with and without pause/unpause. But still didn't work. Complete code to reproduce
|
@NickPerezCarletonUniversity could you please tell me are you doing something differently ?? i tried both c++ and python api |
@suresh-guttikonda check out this thread: |
I'm recording my data, and then performing SLAM on the data afterwards. Instead of controlling the drone manually, I am programming ahead of time (before the simulation starts) where it needs to go, that is why continuously pausing and unpausing the simulation does not give me any issues. |
@suresh-guttikonda Have you found a way to get the stereo synchronized images? Until now, with the updated code of the ROS wrapper, I still could not make them synced. |
@hoangvietdo I was not able to find any fix and I have moved to alternative Unreal based simulator. |
@suresh-guttikonda Thanks for your reply. It seems like they will keep ignoring this old issue until someone makes a PR. |
Hi, I am having issues with the ROS interface and the image syncronisation. It seems that the sync issue has been addressed and solved before:
#2282
But for some reason this is not the case for the ROS images. (these are also published with a slight delay, but this is less of an issue)
Below are two images taking at the same time by two cameras that have been positioned at the exact same point ins pace:
"Cameras": { "front_left_custom": { "CaptureSettings": [ { "PublishToRos": 1, "ImageType": 0, "Width": 1920, "Height": 1080, "FOV_Degrees": 90, "TargetGamma": 1.8 } ], "X": 1.75, "Y": -0.06, "Z": -1.25, "Pitch": 0.0, "Roll": 0.0, "Yaw": 0.0 }, "front_right_custom": { "CaptureSettings": [ { "PublishToRos": 1, "ImageType": 0, "Width": 1920, "Height": 1080, "FOV_Degrees": 90, "TargetGamma": 1.8 } ], "X": 1.75, "Y": 0.06, "Z": -1.25, "Pitch": 0.0, "Roll": 0.0, "Yaw": 0.0 } },
The text was updated successfully, but these errors were encountered: