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

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
1

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

Question Tools

Stats

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

Seen: 178 times

Last updated: Nov 27 '12