[ros-users] [PATCH][camera1394] Adding diagnostics support to camera1394

Tully Foote tfoote at willowgarage.com
Sun Feb 5 03:08:42 UTC 2012


>
>
>
> > Multi-threading is tricky in this driver, see the comments in
> > Camera1394Driver::poll(). I am wondering if we could just call the
> > updater there in the poll() thread, instead of creating another
> > thread. Is there any large overhead in calling the updater?
>
> The updater is publishing in /diagnostics at a fixed rate so no it is
> probably
> not that time consumming. However, it is still a shame to slow down the
> whole node.
>

Publishing won't slow down the node besides the effort to build the
message(and one memcopy if you don't use a boost_shared pointer).  When you
call publish, the actual network activity will be handled by the ROS
thread.

Tully
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20120204/828532f3/attachment-0004.html>


More information about the ros-users mailing list