Robotics StackExchange | Archived questions

[ERROR]could not find joint_state_controller

hi, this is my first time here. i'm using indigo and gazebo2.2 in ubuntu14.04 to simulate our robot.

when i was following the tutorils,had a problem with this page.

it says to launch these two,to control the rrbot.

roslaunch rrbot_gazebo rrbot_world.launch roslaunch rrbot_control rrbot_control.launch

but when i launch roslaunch rrbot_control rrbot_control.launch this error occcurs.

[ERROR] [1414305408.351300373, 6.335000000]: Could not load class jointstatecontroller/JointStateController: Could not find library corresponding to plugin jointstatecontroller/JointStateController. Make sure the plugin description XML file has the correct name of the library and that the library actually exists. [ERROR] [1414305408.351370497, 6.336000000]: Could not load controller 'jointstatecontroller' because controller type 'jointstatecontroller/JointStateController' does not exist. [ERROR] [1414305408.351394983, 6.336000000]: Use 'rosservice call controllermanager/listcontrollertypes' to get the available types [ERROR] [1414305409.424146233, 7.403000000]: Could not load class effortcontrollers/JointPositionController: Could not find library corresponding to plugin effortcontrollers/JointPositionController. Make sure the plugin description XML file has the correct name of the library and that the library actually exists. [ERROR] [1414305409.424214515, 7.403000000]: Could not load controller 'joint1positioncontroller' because controller type 'effortcontrollers/JointPositionController' does not exist. [ERROR] [1414305409.424239188, 7.403000000]: Use 'rosservice call controllermanager/listcontrollertypes' to get the available types [ERROR] [1414305410.492735676, 8.466000000]: Could not load class effortcontrollers/JointPositionController: Could not find library corresponding to plugin effortcontrollers/JointPositionController. Make sure the plugin description XML file has the correct name of the library and that the library actually exists. [ERROR] [1414305410.492799660, 8.466000000]: Could not load controller 'joint2positioncontroller' because controller type 'effortcontrollers/JointPositionController' does not exist. [ERROR] [1414305410.492830507, 8.466000000]: Use 'rosservice call controllermanager/listcontroller_types' to get the available types Warning [Publisher.cc:134] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once.

i have no idea to solve this.

thanks ,Ryo.

PS roscontrollers package cause other catkinmake problem, so i tried this

sudo apt-get update sudo apt-get install ros-indigo-ros-control ros-indigo-ros-controllers

but another error occurs

[ERROR] [1414652580.407543556, 4.281000000]: Exception thrown while initializing controller joint1positioncontroller. Could not find resource 'joint1' in 'hardwareinterface::EffortJointInterface'. [ERROR] [1414652580.407647493, 4.281000000]: Initializing controller 'joint1positioncontroller' failed [ERROR] [1414652581.462573639, 5.332000000]: Exception thrown while initializing controller joint2positioncontroller. Could not find resource 'joint2' in 'hardwareinterface::EffortJointInterface'. [ERROR] [1414652581.462662991, 5.332000000]: Initializing controller 'joint2positioncontroller' failed

I checked rrbot_control.yamland rrbot.xacro, but of course there was a state about joint1 and joint2.

Was anything wrong? what should i do next?

thanks RYO

Asked by Ryo_Amano on 2014-10-26 03:27:36 UTC

Comments

Answers

Have you installed the joint state controller?

sudo apt-get install ros-indigo-joint-state-controller

Asked by nkoenig on 2014-10-29 18:20:52 UTC

Comments

thank you for your comment. yes.it was the latest version.

i tried sudo apt-get update sudo apt-get install ros-indigo-ros-control ros-indigo-ros-controllers

so,maybe othe controllers are the latest too.

but another error occured which i added on the top.

Asked by Ryo_Amano on 2014-10-30 02:26:15 UTC

I think i solved the problem.

the problem was rrbot.xacro

in the state

replace

<joint name="joint1"/>

with

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

and all error was cleared

thanks for your help.

RYO

Asked by Ryo_Amano on 2014-10-31 01:33:28 UTC

Comments