Robotics StackExchange | Archived questions

libgazebo_ros_control in ROS Indigo is throwing exception for joint_position_controllers, bug Dec 2017?

I have been successfully running roscontrol on several variations of jointposition_control, including the rrbot tutorial, and also from https://github.com/wsnewman/learningros/tree/master/Part5/example_controllers, which is a 1 DOF prismatic robot.

But very recently, Dec 2017, I have had a few problems. I was trying to see if it was an isolated problem with my code... but it also happens in rrbot. I have looked at all posts (see link text) on this but none of the suggestions have worked. Here are the details....

In rrbot, I get the following when tring to load the joint position controller: Gazebo spits out:

Exception thrown while initializing controller joint1_position_controller. Could not find resource 'joint1' in 'hardware_interface::EffortJointInterface'.

controller_manager-spawner:

Failed to lo[link text](https://github.com/wsnewman/learning_ros/blob/master/Part_5/example_controllers/prismatic_1dof_robot_w_jnt_pos_ctl.launch)ad joint1_position_controller

For the 1 DOF prismatic robot, I get:

Exception thrown while initializing controller joint1_position_controller.
Could not find resource 'joint1' in 'hardware_interface::EffortJointInterface'.
[ERROR] [1514560629.529188123, 88.849000000]: Initializing controller 'joint1_position_controller' failed

I believe all files are setup correctly (they used to work for quite some time): xacro, launch, config.

Did something change in a most recent update to roscontrol? I know in the past, people where missing the hardwareInterface definition inside the transmission block for the joint (see below). I am not... the `effortcontrollers::JointPositionControllerthat I use, has theEffortJointInterface` hardware interface as expected.

<joint name="joint1">
      <hardwareInterface>EffortJointInterface</hardwareInterface>
    </joint>

Attached, is a screenshot of my terminal output: C:\fakepath\Screenshot from 2017-12-30 10:31:56.png

Asked by juan on 2017-12-29 10:20:01 UTC

Comments

Answers

I found the problem: the installation of the tiago simulator in the same workspace as my other robots modified the definitions of the controllers and was affecting the rest of the system.

Tiago instructions do state to create a new workspace, which I had ignored...

Asked by juan on 2018-01-01 22:59:01 UTC

Comments

Hello,

I could not understand what you said here, can you please elaborate. I am facing the same issue and have raised it here -> https://answers.ros.org/question/285977/could-not-find-resource-in-hardware_interfaceeffortjointinterface/

Kindly help. Would be happy to provide more details.

Asked by dpak.shimpo on 2018-03-20 22:47:32 UTC