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

connect node topic

asked 2018-10-07 16:33:57 -0500

Shaarkrat gravatar image

Hello!

I think the question was already asked, but I don't get the right answer.

I have a node, publishing a message of type sensor_msgs/Image to a topic. (was already created with the bebop_autonomy packages.) I'm trying to write a node using image_transport tutorial to subscribe to this topic and open the image (video stream) in opencv.

http://image.noelshack.com/fichiers/2...

first question: I've tried to connect my imahe_listener node to the bebop/image_raw topic but it doesn't work.

second question: what is the difference between the nodes who are "inside" tne bebop "box" and the one who is outside?

Thanks for your help Shaarkrat

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-07 19:08:24 -0500

For question 1, These ROS Wiki pages might help http://wiki.ros.org/image_transport/T... , http://wiki.ros.org/image_view

edit flag offensive delete link more

Comments

I used the transport tutorial, and change image_transport::Subscriber sub = it.subscribe("camera/image", 1, imageCallback); into image_transport::Subscriber sub = it.subscribe("/bebop/image_raw", 1, imageCallback);

but it still doesn't work. what did I missed?

Shaarkrat gravatar image Shaarkrat  ( 2018-10-09 05:36:59 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-10-07 16:33:57 -0500

Seen: 114 times

Last updated: Oct 07 '18