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

Is it possible to have memory mapped messages in ROS?

asked 2011-02-16 14:03:06 -0600

Yogi gravatar image

updated 2014-04-20 14:09:44 -0600

ngrennan gravatar image

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 merge delete

1 Answer

Sort by ยป oldest newest most voted
9

answered 2011-02-16 14:36:10 -0600

joq gravatar image

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 link more

Question Tools

Stats

Asked: 2011-02-16 14:03:06 -0600

Seen: 1,819 times

Last updated: Feb 16 '11