Ask Your Question

Find Rostopic dataType cpp

asked 2012-11-27 04:54:03 -0500

siddahuja gravatar image

Hi I am writing a publisher/subscriber for a ros topic, but i would like to find the dataType of the topic programatically (instead of from rostopic info) in the code. Is there a way to query the topic info in c++? A sample code would be much appreciated. thanks sid

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-27 05:21:12 -0500

dornhege gravatar image

Yes, the Master/Slave using xmlrpc is used for that. There is some python sample code. You should be able to use that same functionality in C++.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-11-27 04:54:03 -0500

Seen: 154 times

Last updated: Nov 27 '12