removed the boost::scoped_ptr<KDL::ChainIdSolver_RNE> declaration and commented out the ->CartToJoint because I was getting segmentation fault (core dumped) error