Ask Your Question

Manually set a node to subscribe to a topic [closed]

asked 2015-07-12 22:05:50 -0600

psprox96 gravatar image

Hi there!

I was wondering is there any way I can manually make a node to subscribe to a topic?

By checking rqt_graph, the node didn't subscribe to the topic (which I need to set) automatically.


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by psprox96
close date 2015-07-13 23:16:51.478483

2 Answers

Sort by » oldest newest most voted

answered 2015-07-13 02:40:01 -0600

Maybe you should look at this: link text

Go to the line 75 of the subscriber node code, and that's what you have to add to the code of your node to subscribe to a specific topic.

edit flag offensive delete link more


Oh thanks a lot!

psprox96 gravatar imagepsprox96 ( 2015-07-13 23:16:25 -0600 )edit

answered 2015-07-12 22:38:04 -0600

vinjk gravatar image

i think you can try:

$  rostopic echo /topic_name
edit flag offensive delete link more


I tried. It displays only the message. I can't set by doing that. Thanks for your input!

psprox96 gravatar imagepsprox96 ( 2015-07-13 01:24:58 -0600 )edit

Question Tools



Asked: 2015-07-12 22:05:50 -0600

Seen: 103 times

Last updated: Jul 12 '15