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

Transfer octomap w/out ROS Message

asked 2017-06-01 05:38:45 -0500

SirJ gravatar image

Hey guys,

is there a way to transfer a octomap between two nodes without using ROS messages?

Due to high processing time I sourced out the octomap creating - and need the processed octomap in my main node. Using the octomap_msgs takes too long for high frequency use to publish it.

Thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-06-25 09:31:10 -0500

To answer your question literally: There are plenty of message-passing protocols around that you could use to transfer the octomap between processes: zeroMQ, MQTT, gRPC, etc.; however, I would be surprised if those would give you much better results than using ROS with octomap_msgs. The reason is that the message from octomap_msgs simply wraps a binary .bt/.ot file, which is exactly what you would pass around using any other protocol, so there shouldn't be any significant overhead there.

A much better idea would probably be to use nodelets, so that you don't need any inter-process communication there. Two nodelets running in the same process don't even serialize/deserialize messages, they simply pass shared pointers around.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-01 05:38:45 -0500

Seen: 198 times

Last updated: Jun 25 '17