Ask Your Question
2

Is it possible to have memory mapped messages in ROS?

asked 2011-02-16 20:03:06 -0500

Yogi gravatar image Yogi
261 11 14 20

updated 2011-02-16 20:39:45 -0500

joq gravatar image joq
15394 89 165 292
http://www.austinrobot.co...

Sending huge messages like images over a pipe can slow things down a lot. Is there a way we can have memory mapped messages in ROS?

edit retag flag offensive close delete

1 Answer

Sort by ยป oldest newest most voted
8

answered 2011-02-16 20:36:10 -0500

joq gravatar image joq
15394 89 165 292
http://www.austinrobot.co...

This has been discussed several times. A partial implementation of shared memory message passing was implemented as an experiment.

It turns out that the main overhead is serializing and deserializing the data, not copying the bytes. The shared memory transport still incurs that, so the speed-up was disappointing.

A better solution for high throughput applications is using nodelets, which allow zero-copy transport within a single address space while still providing standard ROS message semantics to nodes in other processes or machines.

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-02-16 20:03:06 -0500

Seen: 392 times

Last updated: Feb 16 '11