onInit() hangs on getParam and doesn't return in my nodelet
Used gdb to step into my onInit() function. Everything was fine till reaching getParam, after which the process hangs there.
void MyNodelet::onInit()
{
bool rv = true ;
ros::NodeHandle n(getNodeHandle()) ;
ros::NodeHandle pn(getPrivateNodeHandle()) ;
pn.getParam("Left Image Id", leftImgId_str_) ;
}