编译
actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> *ac_client = new actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction>(nh_,"move_base");
报错:
undefined reference to `actionlib::ConnectionMonitor::processStatus(boost::shared_ptr<actionlib_msgs::GoalStatusArray_<std::allocator<void> > const> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
cmaklist.txt 加 tf :
find_package(catkin REQUIRED COMPONENTS
roscpp
rosmsg
rospy
tf
)
package.xml 加:
<build_depend>tf</build_depend>
<build_export_depend>tf</build_export_depend>
<exec_depend>tf</exec_depend>
就解决问题