stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
447 stars 391 forks source link

zed2i framerate drops when long time recording [using rosbag record] #843

Closed arenas7307979 closed 2 years ago

arenas7307979 commented 2 years ago

Preliminary Checks

Description

device : zed2i

env : disable all depth and slam topic, only record stereo image and imu data

problem : missing topic data (drop frame or imu data) when rosbag record image 60hz and imu 400hz 1hour

image

zoom_in for check fps: biggest difference :60hz --> 10hz / 5hz image image

Steps to Reproduce

1.roslaunch zed_wrapper zed2i.launch 2.rosbag record -b 4096 /zed2i/zed_node/left_raw/image_raw_gray /zed2i/zed_node/right_raw/image_raw_gray /zed2i/zed_node/imu/mag /zed2i/zed_node/imu/data_raw /zed2i/zed_node/imu/data

Expected Result

images 40hz ~ 60hz imu ~ 400hz

Actual Result

zoom_in for check fps: biggest difference :60hz --> 10hz / 5hz image image

ZED Camera model

ZED2i

Environment

cpu:intel i7 11gen
ram:32g

Anything else?

No response

Myzhar commented 2 years ago

Hi @arenas7307979 this is not a ZED ROS Wrapper bug, but it's a problem with rosbag recording. While rosbag records data the internal rosbag buffer increases if the disk is not fast enough to save all the information while it's made available and the system slows down. Have you tried to perform the recording on a remote machine?

arenas7307979 commented 2 years ago

Hi, @Myzhar I only tried to record data on the local PC Is there any way to reduce this problem?

Myzhar commented 2 years ago

Many ways:

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days