# Ingest to SVO2 vs Record ROS 2 bag

**URL:** <https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437>\
**Category:** C++\
**Tags:** svo, ros2\
**Created:** [March 24, 2025, 6:49pm UTC](https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437 "2025-03-24T18:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mat198](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mat198/32/1926_2.png) [@Mat198](https://community.stereolabs.com/u/Mat198)\
**Post date:** [March 24, 2025, 6:49pm UTC](https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437/1 "2025-03-24T18:49:43Z")

</div>

I have a robot arm with a Zed X camera attached to the tip. My goal is to develop a visual servoing application. I want to record the camera data synced with the joint state data to test my tracking algorithm. I can achieve that by recording a bag file with the joint states and an SVO with camera data or by ingesting the joint states into the SVO. Which approach is the best? Is there a recommended way to do that?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [March 25, 2025, 10:39am UTC](https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437/2 "2025-03-25T10:39:55Z")

</div>

Hi @Mat198  
The proposed solutions are valid.  
If you decide to record the SVO and the rosbag separately, you need a node using `message_filter` during the playback to guarantee that all the topics are synchronized.  
You must also set the new parameter [svo.use\_svo\_timestamp](https://github.com/stereolabs/zed-ros2-wrapper/blob/master/zed_wrapper/config/common_stereo.yaml#L15) to true to use the timestamps of the SVO instead of the system time.
