CCNYRoboticsLab / ccny_rgbd_tools

ccny_rgbd_tools
GNU Lesser General Public License v3.0
125 stars 76 forks source link

Multiple cameras launching multiple instances of the nodes? #33

Open carlosgalvezp opened 10 years ago

carlosgalvezp commented 10 years ago

Hi,

I can get the package working for one single camera. I would like to have multiple cameras creating their own map. I have tried launching multiple instances of the required nodes (under different namespaces). Launching multiple Openni nodes works fine, and I get separate RGB and Depth image topics for each of them. However, when I launch the second camera, the RGBD_Proc node crashes for some reason (no error, just freezes).

I believe it may have to do with boost::sharedptr sync, since the program freezes just after calling sync_->registerCallback(boost::bind(&RGBDImageProc::RGBDCallback, this, _1, _2, _3, _4));

on the second camera. However I cannot find the error since that code is quite advanced for me.

Do you know what can be happening when trying to run several instances of the RGBD_Proc node?

Thanks in advance.