Ask Your Question
1

How can additional nodelets be attached to the stereo_image_proc's nodelet manager in Diamondback?

asked 2011-05-05 14:01:11 -0600

updated 2011-05-12 08:51:47 -0600

I'd like to add in image processing attached to the points2 and disparity output of stereo_image_proc, but can't figure out how to either get the stereo_image_proc stack nodelets to attach to my nodelet manager or attach to theirs.

Attempting to load nodelets using stereo_image_proc fails.

And the configuration done inside of stereo_image_proc is complex and done programmatically as work around to a topic remapping problem, and so I was unable to rebuild stereo_image_proc's elements:

  • image_proc/rect
  • stereo_image/disparity
  • stereo_image_proc/point_cloud2

... into the same functionality using simply a launch file which had a nodelet manager I could attach to.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-05-05 14:07:18 -0600

It appears the stereo_image_proc's nodelet manager is created with the nodelet manager API turned off which prevents other nodelets from being attached to it.

My work around was to copy stereo_image_proc.cpp to my own package, and modifying the constructor call to enable the nodelet manager API:

nodelet::Loader manager(true); // was false

It's then possible to attach additional nodelets to this modified stereo_image_proc though be careful not to try to name the resulting node executable as stereo_image_proc as this will collide since stereo_image_proc will need to be a dependency of your package.

edit flag offensive delete link more

Comments

Yeah, I'd file a ticket, but I've heard that it won't be done programmatically in the next release so it won't matter any more. Not sure why anyone ever sets that to false; perceived cleanliness I suppose.
Asomerville gravatar imageAsomerville ( 2011-05-05 15:58:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-05-05 14:01:11 -0600

Seen: 1,466 times

Last updated: May 12 '11