ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to publish left and right images of MY stereo camera over ROS?

asked 2018-11-20 04:13:44 -0500

czlin gravatar image

In the toturial Calibrate a Stereo Camera Before calibrating , "Make sure that your stereo camera is publishing left and right images over ROS. " How can i do this step?

edit retag flag offensive close merge delete

Comments

This really depends what type of stereo camera you're using. Can you give us a bit more information about your setup.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-20 08:01:18 -0500 )edit

usb stereo camera that I was using , and I try to launch it by usb_cam driver but failed. it seems that usb_cam driver only designed to drive monocular cam? so How to publish left and right images of my stereo usb cam?@PeteBlackerThe3rd

czlin gravatar image czlin  ( 2018-11-20 21:21:36 -0500 )edit

can you tell us your camera name?

Hamid Didari gravatar image Hamid Didari  ( 2018-11-20 23:06:54 -0500 )edit

ksia-528

czlin gravatar image czlin  ( 2018-11-21 00:28:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-21 18:57:03 -0500

RDaneelOlivaw gravatar image

updated 2018-11-21 18:57:44 -0500

Hi,

I think the first steps to know how to publish images in ROS is through rostopics of type sensor_msgs/Image.

A very good example is how the gazebo_ros_camera plugin does it.

Check the git of how this is implemented to have a good example on how to publish camera info in ROS : camera plugin

You then have to check if its working. Here are several options, each one more complete: 1) rostopic hz /camera_topic_name: This is the simplest. It states if its publishing and at what rate. Good to know if its alive at least 2) rostopic echo /camera_topic: To gete a stream of data. Not very practical with big image files 3) RVIZ: add an image element. It will show you the images registered by your camera. 4) RVIZ: add a camera element. This element is the best because it needs TFs to be published correctly, which is vital for working with cameras in ROS.

image description

5) You can use the stereo_image_proc to see if your stereo cam can be used for stereo vision point cloud generation. This is the final test, if it works, you are ready to go.

image description

I also created a small video tutorial that explains all this in a demo VIDEO

Here is the code for the practical example GIT

And here the ROSject , which you can use plug and play.

Hope it helped.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-11-20 04:13:44 -0500

Seen: 1,233 times

Last updated: Nov 21 '18