nh.subscribe<geometry_msgs::PoseStamped>(sub_topic_name.str(), 10, &KCL_rosplan::RPTutorialInterface::subCallback, this);
如上:回调函数要加上namespace,而且要有最后一个参数this,否则会报错
error: invalid use of non-static member function
nh.subscribe<geometry_msgs::PoseStamped>(sub_topic_name.str(), 10, &KCL_rosplan::RPTutorialInterface::subCallback, this);
如上:回调函数要加上namespace,而且要有最后一个参数this,否则会报错
error: invalid use of non-static member function