# Failed to Load Controller

**URL:** <https://get-help.theconstruct.ai/t/failed-to-load-controller/7256>\
**Category:** ROS Control 101\
**Tags:** error, quiz\
**Created:** [January 1, 2021, 6:58am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256 "2021-01-01T06:58:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![textzip](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/textzip/32/2726_2.png) [@textzip](https://get-help.theconstruct.ai/u/textzip)\
**Post date:** [January 1, 2021, 6:58am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/1 "2021-01-01T06:58:41Z")

</div>

Hi,  
I am trying out “add ros\_control to ur5 manipulator robot” quiz and I have successfully completed the first part of the quiz where I used the

> controllers of the type:  
> position\_controllers/JointPositionController.

In the 2nd part of the quiz I made my new package called project\_controller, and followed all the steps that were covered in the earlier chapters and finally did **a catkin\_make with 0 errors.**

**Using rospack plugins gives me the following output:**

```
rospack plugins --attrib=plugin controller_interface | grep project_controller
project_controller /home/user/catkin_ws/src/project_controller/controller_plugins.xml

```

But when I try to use this controller with the ur5 it **fails to load it,** I tested the same controller by changing the .yaml and launch files and they work perfectly fine with the **rrbot**.

my\_controller.yaml **(I tried it out with only one joint)**

```
 ur5:
  joint_state_controller:
    type: joint_state_controller/JointStateController
    publish_rate: 50  

  shoulder_lift_joint_position_controller:
    type: project_controller/PositionController
    joint: shoulder_lift_joint
    pid: {p: 100.0, i: 0.01, d: 10.0}

```

my launch file: **(for only one joint)**

```
<launch>

  <!-- Load joint controller configurations from YAML file to parameter server -->
  <rosparam file="$(find project_controller)/config/my_controller.yaml" command="load"/>

  <!-- load the controllers -->
  <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
	output="screen" ns="/ur5" args="joint_state_controller shoulder_lift_joint_position_controller"/>
	      
 <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">
    <remap from="/joint_states" to="/ur5/joint_states" />
  </node>

</launch> 

```

Any help or suggestions on how to solve this would be highly appreciated.  
TIA

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [January 4, 2021, 8:40am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/2 "2021-01-04T08:40:31Z")

</div>

Hello @textzip,

Do you get any error messages?

---

<div class="post-metadata">

**Author:** ![textzip](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/textzip/32/2726_2.png) [@textzip](https://get-help.theconstruct.ai/u/textzip)\
**Post date:** [January 4, 2021, 8:47am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/3 "2021-01-04T08:47:11Z")

</div>

Hi @albertoezquerro , When I try to run the final launch file, the joint with the custom controller fails, other than that I did not encounter any errors.

> **output for \`roslaunch proejct\_controller quiz\_control\_custom.launch\`**
>
> ```
> roslaunch project_controller quiz_control_custom.launch... logging to /home/user/.ros/log/a072b0de-4e68-11eb-b871-0242ac190007/roslaunch-13_xterm-1280.log
> Checking log directory for disk usage. This may take awhile.
> Press Ctrl-C to interrupt
> Done checking log file disk usage. Usage is <1GB.
> 
> started roslaunch server http://13_xterm:46153/
> 
> SUMMARY
> ========
> 
> PARAMETERS
> * /rosdistro: kinetic
> * /rosversion: 1.12.14
> * /ur5/elbow_joint_position_controller/joint: elbow_joint
> * /ur5/elbow_joint_position_controller/pid/d: 10.0
> * /ur5/elbow_joint_position_controller/pid/i: 0.01
> * /ur5/elbow_joint_position_controller/pid/p: 100.0
> * /ur5/elbow_joint_position_controller/type: position_controll...
> * /ur5/joint_state_controller/publish_rate: 50
> * /ur5/joint_state_controller/type: joint_state_contr...
> * /ur5/shoulder_lift_joint_position_controller/joint: shoulder_lift_joint
> * /ur5/shoulder_lift_joint_position_controller/pid/d: 10.0
> * /ur5/shoulder_lift_joint_position_controller/pid/i: 0.01
> * /ur5/shoulder_lift_joint_position_controller/pid/p: 100.0
> * /ur5/shoulder_lift_joint_position_controller/type: project_controlle...
> * /ur5/shoulder_pan_joint_position_controller/joint: shoulder_pan_joint
> * /ur5/shoulder_pan_joint_position_controller/pid/d: 10.0
> * /ur5/shoulder_pan_joint_position_controller/pid/i: 0.01
> * /ur5/shoulder_pan_joint_position_controller/pid/p: 100.0
> * /ur5/shoulder_pan_joint_position_controller/type: position_controll...
> * /ur5/wrist_1_joint_position_controller/joint: wrist_1_joint
> * /ur5/wrist_1_joint_position_controller/pid/d: 10.0
> * /ur5/wrist_1_joint_position_controller/pid/i: 0.01
> * /ur5/wrist_1_joint_position_controller/pid/p: 100.0
> * /ur5/wrist_1_joint_position_controller/type: position_controll...
> * /ur5/wrist_2_joint_position_controller/joint: wrist_2_joint
> * /ur5/wrist_2_joint_position_controller/pid/d: 10.0
> * /ur5/wrist_2_joint_position_controller/pid/i: 0.01
> * /ur5/wrist_2_joint_position_controller/pid/p: 100.0
> * /ur5/wrist_2_joint_position_controller/type: position_controll...
> * /ur5/wrist_3_joint_position_controller/joint: wrist_3_joint
> * /ur5/wrist_3_joint_position_controller/pid/d: 10.0
> * /ur5/wrist_3_joint_position_controller/pid/i: 0.01
> * /ur5/wrist_3_joint_position_controller/pid/p: 100.0
> * /ur5/wrist_3_joint_position_controller/type: position_controll...
> 
> NODES
> /ur5/
> controller_spawner (controller_manager/spawner)
> /
> robot_state_publisher (robot_state_publisher/robot_state_publisher)
> 
> ROS_MASTER_URI=http://13_simulation:11311
> 
> process[ur5/controller_spawner-1]: started with pid [1289]
> process[robot_state_publisher-2]: started with pid [1290]
> [INFO] [1609749735.490732, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
> [INFO] [1609749735.497430, 0.000000]: Controller Spawner: Waiting for service controller_manager/switch_controller
> [INFO] [1609749735.501107, 0.000000]: Controller Spawner: Waiting for service controller_manager/unload_controller
> [INFO] [1609749735.505093, 0.000000]: Loading controller: joint_state_controller
> [INFO] [1609749735.530526, 45.253000]: Loading controller: shoulder_pan_joint_position_controller
> [INFO] [1609749735.574081, 45.296000]: Loading controller: shoulder_lift_joint_position_controller
> [ERROR] [1609749736.580323, 46.302000]: Failed to load shoulder_lift_joint_position_controller
> [INFO] [1609749736.581062, 46.303000]: Loading controller: elbow_joint_position_controller
> [INFO] [1609749736.603331, 46.325000]: Loading controller: wrist_1_joint_position_controller
> [INFO] [1609749736.622679, 46.344000]: Loading controller: wrist_2_joint_position_controller
> [INFO] [1609749736.637369, 46.358000]: Loading controller: wrist_3_joint_position_controller
> [INFO] [1609749736.654641, 46.376000]: Controller Spawner: Loaded controllers: joint_state_controller, shoulder_pan_joint_position_controller, elbow_joint_position_controller, wrist_1_joint_position_controller, wrist_2_joint_position_controller, wrist_3_joint_position_controller
> [INFO] [1609749736.659352, 46.381000]: Started controllers: joint_state_controller, shoulder_pan_joint_position_controller, elbow_joint_position_controller, wrist_1_joint_position_controller, wrist_2_joint_position_controller, wrist_3_joint_position_controller
> 
> ```

TIA

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [January 5, 2021, 9:07am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/4 "2021-01-05T09:07:09Z")

</div>

Hello @textzip,

Can you please send me the package you are using to [aezquerro@theconstructsim.com](mailto:aezquerro@theconstructsim.com)? I’ll test it manually.

Best,

---

<div class="post-metadata">

**Author:** ![umberto.severino](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/u/ecb155/32.png) [@umberto.severino](https://get-help.theconstruct.ai/u/umberto.severino)\
**Post date:** [January 5, 2021, 2:55pm UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/5 "2021-01-05T14:55:28Z")

</div>

same problem here. I will send you the package, please

---

<div class="post-metadata">

**Author:** ![JanJungbluth](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/janjungbluth/32/2415_2.png) [@JanJungbluth](https://get-help.theconstruct.ai/u/JanJungbluth)\
**Post date:** [April 5, 2021, 4:16pm UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/6 "2021-04-05T16:16:40Z")

</div>

Same issue, in the quiz and in Unit 4! Should i send my package @albertoezquerro?

Also i had to #include string

Greetings Jan

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [April 6, 2021, 7:39am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/7 "2021-04-06T07:39:10Z")

</div>

Hello @JanJungbluth ,

Yes please, send it to [aezquerro@theconstructsim.com](mailto:aezquerro@theconstructsim.com)

---

<div class="post-metadata">

**Author:** ![comm](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/comm/32/6357_2.png) [@comm](https://get-help.theconstruct.ai/u/comm)\
**Post date:** [April 17, 2021, 5:00pm UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/8 "2021-04-17T17:00:24Z")

</div>

I’m having the same issue - was this ever solved?  
I’ll email my files  
/K

**Output:**

```
user:~$ roslaunch quiz_control quiz_control.launch
... logging to /home/user/.ros/log/d330d484-9f9d-11eb-9f78-0242ac1b0008/roslaunch-2_xterm-1366.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://2_xterm:42627/

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.9
 * /ur5/joint_state_controller/publish_rate: 50
 * /ur5/joint_state_controller/type: joint_state_contr...
 * /ur5/shoulder_lift_joint_position_controller/joint: shoulder_lift_joint
 * /ur5/shoulder_lift_joint_position_controller/pid/d: 10.0
 * /ur5/shoulder_lift_joint_position_controller/pid/i: 0.01
 * /ur5/shoulder_lift_joint_position_controller/pid/p: 100.0
 * /ur5/shoulder_lift_joint_position_controller/type: effort_controller...
 * /ur5/shoulder_pan_joint_position_controller/joint: shoulder_pan_joint
 * /ur5/shoulder_pan_joint_position_controller/pid/d: 10.0
 * /ur5/shoulder_pan_joint_position_controller/pid/i: 0.01
 * /ur5/shoulder_pan_joint_position_controller/pid/p: 100.0
 * /ur5/shoulder_pan_joint_position_controller/type: effort_controller...
 * /ur5/wrist_1_joint_position_controller/joint: wrist_1_joint
 * /ur5/wrist_1_joint_position_controller/pid/d: 10.0
 * /ur5/wrist_1_joint_position_controller/pid/i: 0.01
 * /ur5/wrist_1_joint_position_controller/pid/p: 100.0
 * /ur5/wrist_1_joint_position_controller/type: effort_controller...
 * /ur5/wrist_2_joint_position_controller/joint: wrist_2_joint
 * /ur5/wrist_2_joint_position_controller/pid/d: 10.0
 * /ur5/wrist_2_joint_position_controller/pid/i: 0.01
 * /ur5/wrist_2_joint_position_controller/pid/p: 100.0
 * /ur5/wrist_2_joint_position_controller/type: effort_controller...
 * /ur5/wrist_3_joint_position_controller/joint: wrist_3_joint
 * /ur5/wrist_3_joint_position_controller/pid/d: 10.0
 * /ur5/wrist_3_joint_position_controller/pid/i: 0.01
 * /ur5/wrist_3_joint_position_controller/pid/p: 100.0
 * /ur5/wrist_3_joint_position_controller/type: effort_controller...

NODES
  /
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
  /ur5/
    controller_spawner (controller_manager/spawner)

ROS_MASTER_URI=http://2_simulation:11311

process[ur5/controller_spawner-1]: started with pid [1374]
process[robot_state_publisher-2]: started with pid [1375]
[INFO] [1618678729.899015, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [1618678729.903587, 0.000000]: Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [1618678729.920555, 0.000000]: Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [1618678729.941823, 144.749000]: Loading controller: shoulder_lift_joint_position_controller
[ERROR] [1618678731.059529, 145.703000]: Failed to load shoulder_lift_joint_position_controller
[INFO] [1618678731.061830, 145.704000]: Loading controller: shoulder_pan_joint_position_controller
[ERROR] [1618678732.112516, 146.665000]: Failed to load shoulder_pan_joint_position_controller
[INFO] [1618678732.115274, 146.669000]: Loading controller: effort_controllers/JointPositionController
[ERROR] [1618678733.123342, 147.597000]: Failed to load effort_controllers/JointPositionController
[INFO] [1618678733.125484, 147.597000]: Loading controller: wrist_2_joint_position_controller
[ERROR] [1618678734.177214, 148.520000]: Failed to load wrist_2_joint_position_controller
[INFO] [1618678734.179316, 148.521000]: Loading controller: wrist_3_joint_position_controller
[ERROR] [1618678735.222761, 149.469000]: Failed to load wrist_3_joint_position_controller
[INFO] [1618678735.225697, 149.471000]: Loading controller: joint_state_controller
[INFO] [1618678735.273157, 149.512000]: Controller Spawner: Loaded controllers: joint_state_controller
[INFO] [1618678735.292543, 149.524000]: Started controllers: joint_state_controller
```

---

<div class="post-metadata">

**Author:** ![comm](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/comm/32/6357_2.png) [@comm](https://get-help.theconstruct.ai/u/comm)\
**Post date:** [April 22, 2021, 9:58pm UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/9 "2021-04-22T21:58:16Z")

</div>

For anyone with the same issue, I did end up solving this.  
See this post: [Quiz help - failed to load joint\_position\_controller](https://get-help.robotigniteacademy.com/t/quiz-help-failed-to-load-joint-position-controller/9534/2)  
/K

---

<div class="post-metadata">

**Author:** ![xj2106](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/xj2106/32/4565_2.png) [@xj2106](https://get-help.theconstruct.ai/u/xj2106)\
**Post date:** [March 16, 2022, 2:37am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/10 "2022-03-16T02:37:18Z")

</div>

@albertoezquerro Hello, Ezquerro. I am having the same issue. I have sent two of my pkgs to your emails. Can you please take a look at it? Thank you very much!

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [March 17, 2022, 7:26am UTC](https://get-help.theconstruct.ai/t/failed-to-load-controller/7256/11 "2022-03-17T07:26:12Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
