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

How to stream the /camera/rgb/image_color from Kinect to another workstation

asked 2013-04-30 08:45:24 -0600

mcculloughi gravatar image

updated 2014-04-20 14:09:26 -0600

ngrennan gravatar image


I have a laptop connected to a Turtlebot with a Kinect. I have been able to get the live video of the kinect through rviz. I also am able to connect from another machine to the laptop via ssh. However, I have not been able to get the video from the kinect displayed on the other machine. When i try this via ssh

rosrun image_view image_view image:=/camera/rgb/image_color

(image_color:10277): Gtk-WARNING **: cannot open display:

Is there anyway I can access the /camera/rgb/image_color using a vlc player or something of that sort?

Thanks, Ian

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-01 01:27:54 -0600

davinci gravatar image

updated 2013-05-01 01:28:13 -0600

The other computer should be able to connect on other ports, ssh only forwards one port. Are the two machines on the same network? You should create a listener that knows the other ros_master_uri. Perhaps vlc with the correct ip and port number also works. See also:

edit flag offensive delete link more

answered 2013-05-01 02:13:24 -0600

Philip gravatar image

updated 2013-05-01 02:16:41 -0600

Your machine which connects via SSH does not have ROS installed, correct? If in the long run you want to do more than just showing the Kinect video there, it's probably the best to just install ROS there. Use the tutorial linked by davinci for more information, the setup is really easy.

If you don't want to set up ROS there and assuming that both laptop A and the connecting machine B run linux, try using ssh -X LAPTOP_A_IP to connect from B to A. This should result in remotely started processes (running on A) popping up their windows (if any) on B. For more information about how screens are handled on ssh, an internet search for export DISPLAY=: +ssh should point you in the right direction.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-30 08:45:24 -0600

Seen: 2,231 times

Last updated: May 01 '13