[ros-users] Generic message transport infrastructure

Josh Faust jfaust at willowgarage.com
Fri Dec 3 07:14:59 UTC 2010


>
> I don't think common use will likely crash it: e.g. images and point cloud
> are not always changing size. And the nodes should not crash if the object
> size stays constant.
>

Common use for a "generic message transport" is more than just fixed-size
images and point clouds (and point clouds often change size, at least if
they're from something like a stereo camera).  There is nothing in the
documentation stating that the shared memory plugin will only work in this
one very specific use case, and if you use it for anything else you may get
invalid data (like, say, half one image and half another, or two of the same
image in a row) or cause a crash.

In fact, even in the case of a fixed size image it can cause a crash, since
the publisher deletes its shared memory when it destructs, meaning any
subscriber that hasn't already processed all of its messages will crash.

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20101202/d4cb7915/attachment-0003.html>


More information about the ros-users mailing list