Ask Your Question
0

how to make a predefined pakage to subscribe a topic? [closed]

asked 2014-10-10 15:02:24 -0500

Aarif gravatar image

updated 2014-10-11 12:15:01 -0500

hello, 
        I want to know that how can i force a predefined package to subscribe a particular topic, for an instance, i have a package named "executive_usarsim" by makokal which acts as an interface between usarsim and ROS and currently it is not subscribing to cmd_vel topic, i want this package to subscribe to "cmd_vel" topic.
Thank you.
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Aarif
close date 2014-12-21 10:50:21.944192

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-13 02:35:55 -0500

Andromeda gravatar image

I suppose you have no access to the code of the package "executive_usarsim". (in that case it would be really strightforward)

If you have no access then you could remap the output of a specific topic to your desired topic (/cmd_vel) in your launch file. Here is an example which coudl be helpful to you. Your keyword shuld be "remap". Since the documentatin in ROS is not so good I suggest to look in existing codes in the Q&A. Regards

edit flag offensive delete link more

Comments

Thank you very much @Andromeda :)

Aarif gravatar image Aarif  ( 2014-10-14 12:48:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-10-10 15:02:24 -0500

Seen: 98 times

Last updated: Oct 13 '14