Robotics StackExchange | Archived questions

Launch moveit_planning_execution.launch fails

I follow all the steps that are explained in this link (http://wiki.ros.org/Industrial/Tutorials/Create_a_MoveIt_Pkg_for_an_Industrial_Robot ). However, when launching the file moveitplanningexecution.launch I launch the robot in the simulation environment but I get the following error and I can't plan and execute any movement:

Action client not connected: / follow_joint_trajectory

Does anyone know why this happens?

Asked by victor_234 on 2019-06-23 03:03:26 UTC

Comments

Answers

Have you spawned the controller manager for the arm in simulation? If so, try with remapping the action controller node with the name of the controller you've declared in your XX_controllers.yaml. Here I leave an example of remapping topics:

  <!-- Remap follow_joint_trajectory. Remaping el suscrbed topic -->
  <remap if="$(arg sim)" from="/follow_joint_trajectory/action_topics/follow_joint_trajectory" to="/arm_controller/follow_joint_trajectory"/>

Asked by drodgu on 2019-06-23 06:03:23 UTC

Comments

I create the controllers.yaml file in the same way as in the link, I do not get the error: Action client not connected: (topic). But when I execute a movement in RViz I get the following error:

--Unable to identify any set of controllers that can actuate the specific joints: [joint1, joint2, joint3 ...] --Known controllers and their joints: --Apparently trajectory initialization failed --Solution found but controller failed during execution

The robot I want to control has several controllers. I do not know if, instead of putting in the file controllers.yaml name = "", I need to put the name of the driver. However, when filling in this field with a name, the error reappears: Action client not connected: (topic).

Also, when I launch the file moveit_planning_execution.launch and I do a rostopic list the different topics that send the trajectories of movement do not appear.

Asked by victor_234 on 2019-06-24 05:05:25 UTC

If the terminal shows you the "Action client not connected" error that means that you've started properly your controllers. The thing is that ROS tries to find the real controllers and it cannot find them, so it closes that topic. You have to remap as I told before because you are working with a simulation. Remapping is like telling ROS that a topic must be linked with another one. So try using this in the controllers launch file:

  <remap from="/follow_joint_trajectory/action_topics/follow_joint_trajectory" to="/follow_joint_trajectory"/>

Asked by drodgu on 2019-06-24 12:43:05 UTC