I am working on an application where I want to use synchronized frames from an OAK-D PoE camera with data from other sensors, and I want to do so using the ApproximateTimeSynchronizer from ROS2.
In order to get the camera frames, I am running the camera.launch.py file from the depthai_ros_driver package as described here: https://github.com/luxonis/depthai-ros, using the following command:
$ ros2 launch depthai_ros_driver camera.launch.py
However, it seems like the obtained timestamps from the OAK-D W Pro PoE camera are way off (around 3 hours off), and thus I am unable to synchronize its data with my other sensors. For example, I was running my script at 05/15/2023, 6:05 PM EST, and was getting the following timestamps shown in the terminal output attached below (timestamps from camera correspond to 5/15/2023, 3:08:12 PM EST):
I am working on an application where I want to use synchronized frames from an OAK-D PoE camera with data from other sensors, and I want to do so using the
ApproximateTimeSynchronizer
from ROS2.In order to get the camera frames, I am running the
camera.launch.py
file from thedepthai_ros_driver
package as described here: https://github.com/luxonis/depthai-ros, using the following command:$ ros2 launch depthai_ros_driver camera.launch.py
I have a ROS2 subscriber that subscribes to the
/oak/rgb/image_raw
as well as my other component's topics and tries to synchronize their data using theApproximateTimeSynchronizer
function (http://docs.ros.org/en/lunar/api/message_filters/html/python/index.html).However, it seems like the obtained timestamps from the OAK-D W Pro PoE camera are way off (around 3 hours off), and thus I am unable to synchronize its data with my other sensors. For example, I was running my script at 05/15/2023, 6:05 PM EST, and was getting the following timestamps shown in the terminal output attached below (timestamps from camera correspond to 5/15/2023, 3:08:12 PM EST):
Is there any configuration I need to do to the OAK-D W Pro PoE camera so that I get my local timestamps? Thanks.