cloud_tpc empty in OpenNI listener in RGBDSLAM
Hello, I was stepping through the RGBDSLAM code, and I found that even though I have a Kinect connected to my PC, noCloudCallback() is called instead of kinectCallback() because the cloud_tpc string is always empty.
ParameterServer* params = ParameterServer::instance();
...
std::string cloud_tpc = params->get<std::string>("topic_points");
...
//All information from Kinect
if(!visua_tpc.empty() && !depth_tpc.empty() && !cloud_tpc.empty())
{
...
kinect_sync_->registerCallback(boost::bind(&OpenNIListener::kinectCallback, this, _1, _2, _3));
...
}
//No cloud, but visual image and depth
else if(!visua_tpc.empty() && !depth_tpc.empty() && !cinfo_tpc.empty() && cloud_tpc.empty())
{
...
no_cloud_sync_->registerCallback(boost::bind(&OpenNIListener::noCloudCallback, this, _1, _2, _3));
...
}
Can anyone help me understand why this is the case and why I have to do to call the kinectCallback()?