UW Vision Sensors (Camera-Sonar) Synchronization Best Practice and Driver

Hi everyone :sailboat::ocean: !

I’m currently working on opti-acoustic sensors calibration and fusion, especially for monocular camera + forward looking sonar (FLS).

I work with ROS2 Jazzy and my current sensor suite is a SONY IP camera and an oculus M3000d FLS (probably I will substitute the ip camera with a logitech brio 100 usb cam).

For the moment I’m using custom ROS2 drivers for both the camera and the sonar. I know that the sonar driver is reliable (at least at low frame rate), while I’m not sure about the ip camera one. When running the sonar driver alone, everything works, wile when the two drivers run simultaneously I lose many sonar image message frames.

(Not sure if the problem is at the communication level or something else in the camera driver blocking the sonar execution)

I never worked with multiple sensor suite and robust image message transmission, so probably my question may be trivial + not very specific to the underwater robotics domain…

I was wandering if you know about a reliable ROS2 ip camera driver, QoS set up that may cause my communication issue, or Middleware related solutions (like using Zenoh instead of the standard DDS). Also, best practice for synchronizing the sensors (+ possibly integrating other sensors such as an IMU + pressure in the suite).

Since I will have to test opti-acoustic fusion algorithms, I can’t finish my experiments stating “the frames have been more or less taken at the same time”.

I know that my questions are a bit broad and general, but I don’t find a good online reference or a related section on the group website (or maybe I didn’t search enough). I open this topic to open a discussion and to hear from those with field experience and everyone with interesting ideas or lessons learn from unluky data collection missions.

I want to be “99% sure” before any field testing that my sensor communication and data retrieval is reliable (100% definitely not a realistic objective in robotics ahaha). Even the things that you think may be super obvious can be usefull for me and anyone else reading this!

Thanks all,

Alessandro

Can you provide a part number for the Sony camera? The process of ingesting video to ROS can be a performance bottleneck, depending on the camera’s connectivity

I’m also curious about how you are assessing “dropping frames”. Not all of the data is in a rosbag? Or rostopic hz being inaccurate?

I have switched to the Zenoh middleware and found it much more reliable with less hand-tuning than DDS.

Also, what kind of processor are you running on (laptop, Jetson, etc)?

I maintain embodied-sync, an alpha project developed in collaboration with QUT Robotics for synchronization assurance across live and recorded multimodal sensor streams. It keeps acquisition time, host receive time, and clock domain separate; can estimate mappings between device clocks from shared events; and reports jitter, drops, stale observations, and alignment skew.

It won’t replace PTP/hardware triggering or solve a faulty camera driver/QoS configuration. It can help as the validation layer around those mechanisms: first establish trustworthy device-side acquisition timestamps, then verify over a long run that camera, sonar, IMU, and pressure observations remain within the required tolerance.

1 Like

Dear Professor Aaron Marburg, I’m sorry for my late answer to your follow-up on my requests…
I’ve been far from the lab and left the sonar to gather dust :')
I put it back in the test tank literally today…

Your specification requests and suggestions were definitely useful in analyzing the problem, I really appreciate it. I definitely didn’t give enough details (as my testing was not rigorous)…
To be honest, it was a very quick, unprepared, and disorganized multi-sensor test in the test tank.
The IP cam was in the pool of my lab, and I just installed a random IP camera driver and connected everything. I didn’t really check the Sony camera model, as it probably won’t even be the one I would deploy in my robot payload (still a work in progress).

Today I tried to connect the Sonar and a USB camera ( a Logitech BRIO 100, I hope not the one that we will integrate in the fieldwork payload) to my laptop (a Dell running ROS 2 Jazzy), and at first glance ( and checking the rqt_bag timeline), everything seems fine.
(Currently using the ros-jazzy-v4l2-camera package)

My previous “dropping frames” was a qualitative analysis of what I was viewing in RViz and experiencing in the bag file…when the IP camera was running, there were frequent package drop on the sonar side, experiencing evident jump in the stream and missing sonar data in the bag file. I don’t have this problem anymore with a USB camera. It may have been a bad setup on my side on the Ethernet hub connection at that time…

I’ll try to test Zenoh in my next experiments, and be sure to have proper information about the sensors and setup if I’m gonna ask for help!

P.S. Any suggestions on a good (not super expensive) Monocular RGB USB camera to integrate into an opti-acoustic inertial-pressure payload? Maybe the low-light BlueROV camera is enough?

Thanks for sharing your project!

It seems very interesting; I’ll definitely look at it soon.