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

Is it better/prefered to combine nodelets programmatically or in a launch file?

asked 2011-05-04 15:38:09 -0600

updated 2011-05-05 07:27:33 -0600

Is there an advantage to combining nodelets programmatically? I noticed that stereo_image_proc does this and was surprised.

I'm attempting to chain image processing using nodelets to avoid the serialization overhead, and want to combine with stereo_image_proc, but was confused as to whether there was any reason I shouldn't just load up all of the constituent nodelets in a launch file.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-05-05 07:22:59 -0600

tfoote gravatar image

updated 2011-05-05 07:24:13 -0600

@kwc is right, there's no advantage, infact if you do it in code you have to rewrite all of the remapping logic done by roslaunch, thus it's actually noteably not recommended.

The image processing work was done to work around ros ticket 3470 It's been fixed on trunk and should be out in the next release, allowing the image pipeline work to be simplified.

edit flag offensive delete link more

Comments

Does this imply that building the stereo_image_proc stack is not possible from a launch file in diamondback?
Asomerville gravatar image Asomerville  ( 2011-05-05 12:35:53 -0600 )edit
stereo_image_proc only does this for backwards compatibility. The stereo_image_proc node predates nodelets, so I couldn't just replace it with a launch file. Certainly in Electric it's possible to write a simple launch file that replicates the stereo_image_proc node.
Patrick Mihelich gravatar image Patrick Mihelich  ( 2011-09-21 16:57:48 -0600 )edit
2

answered 2011-05-05 04:14:00 -0600

kwc gravatar image

There's no advantage that I'm aware of in terms of performance. Combining via launch files is definitely part of the power and flexibility that nodelets provide.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-05-04 15:38:09 -0600

Seen: 821 times

Last updated: May 05 '11