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

video stream in ros

asked 2011-03-11 18:13:18 -0600

rinosh1989 gravatar image

i started to stream video using ros by using ssh to connect to the target system where i have attached the camera. I launched a gscam node there and it is working. then in the other system i exported ros_master_uri. When i rostopic list the nodes. I shows /gscam/image_raw publishing. But when i run rosrun image_view image_view image:=/gscam/image_raw the window opens but no video. I did try compressed transport also. Could you please help me?

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2011-03-12 06:33:52 -0600

KoenBuys gravatar image

Did you export your ROS_IP or ROS_HOSTNAME on the other machine also? Otherwise could you post:

$env | grep ROS

And a image of rxgraph with all topics listed could solve the problem. Is there something published on the topic?

rostopic hz /gscam/image_raw
edit flag offensive delete link more
0

answered 2011-03-12 21:16:29 -0600

rinosh1989 gravatar image

this what i did on the robot

i set my export ROS_MASTER_URI=http://ip of robot:11311 and launched roscore then i ran rosrun gscam gscam in my laptop i ran export ROS_MASTER_URI=http://ip of robot:11311 then rosrun image_view image_view image:=/gscam/image_raw

I ran rostopic hz /gscam/image_raw and got subscribed to [/gscam/image_raw]

edit flag offensive delete link more
0

answered 2011-03-13 07:49:43 -0600

KoenBuys gravatar image

Did you export ROS_IP=<your laptops="" ip=""> on your laptop? What's the output of the rostopic hz? Do you get the see the feed if you do rostopic echo? (Ctrl-C quite fast is advised)

edit flag offensive delete link more
-1

answered 2011-03-13 19:36:50 -0600

Yongqiang Gao gravatar image

Did you have try $ rxgraph with connection between "gscam" node and "image_view" node? If yes, please check your ROS_MASTER_URI.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-11 18:13:18 -0600

Seen: 1,873 times

Last updated: Mar 13 '11