time synchronization
I write the following launch code in order to record synchronized data from 4 topics (color image, depth image, joy command, and IMU)
<launch>
<arg name="approx_sync" default="true"/>
<!-- Putting the time back to real time-->
<rosparam>
/use_sim_time : false
</rosparam>
<node pkg="rosbag" type="record" name="record_Test" output="screen"
args="record -o record_Test /camera/depth/image_raw /camera/rgb/image_raw /joy /mobile_base/sensors/imu_data_raw"/>
<param name="approx_sync" type="bool" value="$(arg approx_sync)"/>
</launch>
I use ApproximateTime Synchronizer but it does not work! still, I got a bag file with a different number of messages from each topic.
what I doing wrong?!
any help appriciated