Some errors occurred when package was compiling.(LINK ERROR
Hey guys, i just copy the codes , in the Chapter 10 of book,' Mastering ROS for Robotics Programming', to my ros. The cmakelists file is written as followed,
#include <moveit/move_group_interface/move_group.h> int main(int argc, char **argv)
{
ros::init(argc, argv, "move_group_interface_demo", ros::init_options::AnonymousName);
// start a ROS spinning thread
ros::AsyncSpinner spinner(1);
spinner.start();
// this connecs to a running instance of the move_group node
move_group_interface::MoveGroup group("arm");
// specify that our target will be a random one
group.setRandomTarget();
// plan the motion and then move the group to the sampled target
group.move();
ros::waitForShutdown();
}
Now when the package is compiling, the error occured ,