stereolabs / zed-ros-wrapper

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

Zed in Ros #804

Closed kankanzheli closed 2 years ago

kankanzheli commented 2 years ago

Preliminary Checks

Proposal

How to use zed camera with Instance segmentation method like mmdetection? Besides, can the zed camera run in the gazebo virtual environment now?

Use-Case

No response

Anything else?

No response

Myzhar commented 2 years ago

@kankanzheli I transferred the issue to the correct repository. The ZED ROS wrapper only supports bounding box extraction, with no segmentation. There is no support for Gazebo yet because the ZED SDK does not support image frame injection from external sources.

kankanzheli commented 2 years ago

So the zed ROS can't output the left image to the image processing tool like zed pytorch?

Myzhar commented 2 years ago

The ROS wrapper publishes the left image and many other topics with all the information provided by the ZED SDK. There is no support for the image segmentation feature provided by the object detection module.

kankanzheli commented 2 years ago

That's not my problem. What I want to know is how zed ROS publishes image information and submits it to the image detection tool.

Myzhar commented 2 years ago

The ROS wrapper publishes images, but you must write your own ROS node that subscribes to image topics and use them with the image detection toll that you are speaking about. You need a ROS node that executes the tasks that you need

kankanzheli commented 2 years ago

Is there no relevant code to refer to? Which is to use the zed ROS node to subscribe to image topics and provide them to image detection tools.

Myzhar commented 2 years ago

What knowledge do you have of ROS? You can start from our online documentation: https://www.stereolabs.com/docs/ros/

kankanzheli commented 2 years ago

As you said, We need Creating a Stereo Camera in Gazebo instead of Zed Camera. I want to use zed mini camera. What camera parameters need to be specified?

kankanzheli commented 2 years ago

??

Myzhar commented 2 years ago

You must retrieve the camera parameters by using the ZED SDK, for example with a Python script. Each camera has its own parameters: https://www.stereolabs.com/docs/api/python/classpyzed_1_1sl_1_1CalibrationParameters.html

kankanzheli commented 2 years ago

I'm going to make a camera similar to zed Mini in gazebo. For example, there are the same model and the same camera parameters (such as the distance between camera lenses).

Not unique to my zed mini camera.