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

ROS topic structure?

asked 2011-12-15 09:25:55 -0500

abdullah gravatar image

What is the basic structure of any topic on ROS? My aim is to convert every topic to a binary data, that can be send on a network. And again publish each topic from its respective binary data.

I am getting help from rosbag and wifi_comm packages. I am not getting complete information of basic structure of topic.


edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-12-15 21:35:49 -0500

dornhege gravatar image

You should look at ROS' message serialization. It already does exactly what you want - convert it to binary and send it over a network.

edit flag offensive delete link more

answered 2011-12-16 00:41:25 -0500

raahlb gravatar image

You do not have to serialize the messages yourself when using wifi_com. You just create a new instance of the WifiComm class and tell it what topics to forward and it should just work. Try looking at the file examples/wifi_comm_example.cpp in the wifi_comm package. There doesn't seem to be much of a tutorial for it, sadly, but make sure to read it to find out about how to use olsrd also.

edit flag offensive delete link more

answered 2011-12-15 16:06:02 -0500

noonv gravatar image

updated 2011-12-15 16:06:20 -0500

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2011-12-15 09:25:55 -0500

Seen: 1,282 times

Last updated: Dec 16 '11