stereolabs / zed-ros-wrapper

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

Incompatible with leggedrobotics/darknet_ros on Ubuntu20.04 and Noetic #851

Closed RustSon closed 2 years ago

RustSon commented 2 years ago

Preliminary Checks

Description

when I run zed wrapper and darknet_ros at the same time, a few minutes later, zed wrapper node would crash. And if I don't plug and unplug the zed camera again,zed wrapper couldn't work.

Steps to Reproduce

  1. roslaunch zed_wrapper zed.launch
  2. roslaunch darknet_ros darknet_ros.launch

Expected Result

zed wrapper and darknet_ros can work stably

Actual Result

a few minutes later, zed wrapper crash

ZED Camera model

ZED

Environment

Ubuntu20.04
i7-11700K
memory:64G
RTX3070
ZED SDK: 3.7.4
ROS: Noetic
CUDA:11.3

Anything else?

darknet_ros : https://github.com/leggedrobotics/darknet_ros/tree/master

Myzhar commented 2 years ago

Hi @RustSon what is the error generated when the ROS node crashes?

Myzhar commented 2 years ago

I could run the nodes correctly.

In one terminal (I'm using a ZED2i now): $ roslaunch zed_wrapper zed2i.launch

In a second terminal: $ roslaunch darknet_ros darknet_ros.launch image:=/zed2i/zed_node/rgb/image_rect_color

Result: Screenshot from 2022-07-26 17-07-27

There are surely many parameters to tune (e.g. red and blue channels must be flipped), but it worked with no issues for long time.

RustSon commented 2 years ago

Sorry! I found that there was a problem with the USB3.0 port of my computer, which led to this bug. Thank you again for your help!