Skip to content
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

[BUG] problem synchronizing cameras, with depth and imu #638

Open
DanielCyberbee opened this issue Dec 3, 2024 · 5 comments
Open

[BUG] problem synchronizing cameras, with depth and imu #638

DanielCyberbee opened this issue Dec 3, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@DanielCyberbee
Copy link

I can't synchronize the cameras, depth and imu with "message_filters::TimeSynchronizer" but I can synchronize them with "message_filters::sync_policies::ApproximateTime".
It happens because the time stamps are not exactly alien and I do need them to be properly alien.
I'm using the depthai_examples stereo_node node
Any help?

@DanielCyberbee DanielCyberbee added the bug Something isn't working label Dec 3, 2024
@DanielCyberbee
Copy link
Author

DanielCyberbee commented Dec 3, 2024

to be exact. the right and depth are synchronized but the left and imu are the problematic ones. here is a image representing it
image

@Serafadam
Copy link
Collaborator

Hi, each sensors reports its own timestamp of when the data was captured. In DepthAI C++/Python library we can use Sync node to sync between those different sensors although then all data is being output at the frequency of the lowest sensor. For image publishers this mechanism is actually implemented in depthai_ros_driver, you can check out documentation on how it works, it's just a matter of enabling few parameters in a config file. To enable that in stereo_node you would need to edit the source code to add that functionality, although that might be a bit more complex. When it comes to IMU data, the resulting plot looks that way due to how IMU driver outputs the data from the device, this might change when we release V3 version of DepthAI in the future

@DanielCyberbee
Copy link
Author

Is there a simple way to synchronize the stereo cameras? Maybe even a hard code approach to go along the stereo_node.
If so, what do I need to change?

@DanielCyberbee
Copy link
Author

what functionalities do i need to add to the stereo_node?
I'm having a hard time implementing it.

@Serafadam
Copy link
Collaborator

Hi, you can refer to exampled in depthai-core on pipeline setup, with a sync node it's unfortunately more complicated when it comes to DAI_ROS bridge as is since it's designed for single input queues. In short, you would need to create a separate ROS node with publishers and for each message publish that message, similarly to how it's done in depthai_ros_driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants