Ask Your Question
0

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

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

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.

Thanks!

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
2

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

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

Comments

Oh thanks a lot!

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

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

vinjk gravatar image

i think you can try:

$  rostopic echo /topic_name
edit flag offensive delete link more

Comments

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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 99 times

Last updated: Jul 12 '15