First time here? Check out the FAQ!


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

ROS topic structure?

asked Dec 15 '11

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.

Thanks

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
3

answered Dec 16 '11

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.

Preview: (hide)
1

answered Dec 16 '11

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.

Preview: (hide)
0

answered Dec 15 '11

noonv gravatar image

updated Dec 15 '11

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Dec 15 '11

Seen: 1,316 times

Last updated: Dec 16 '11