Tag Archives: Mechanical arm

Debug Error: Failed to fetch current robot state [How to Solve]

Problem: when I write my own code to debug the manipulator, there is a problem after the rosrun node, as shown in the figure below

Solution: add the following two sentences at the entrance of the main function

ros::NodeHandle nh;
ros::AsyncSpinner spinner(1);

The reason is that movegroupinterface depends on ROS spinning, so just add the above two sentences before movegroupinterface