In this exercise I'm supposed to create a controller of rrbot. And when I launch my launch file there is an error. All the other files are provided by the coure, so there must be mistakes in my launch file.

<launch>

<rosparam file="$(find my_controller)/config/my_controller.yaml" command="load"/>

<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" ns="/rrbot" args="joint1_position_controller joint2_position_controller joint_state_controller"/>

<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="false" output="screen"> <remap from="/joint_states" to="/rrbot/joint_states"/> </node>

</launch>

And here is the Output [INFO] [1534430389.412541, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller [INFO] [1534430389.420019, 0.000000]: Controller Spawner: Waiting for service controller_manager/switch_controller [INFO] [1534430389.430024, 0.000000]: Controller Spawner: Waiting for service controller_manager/unload_controller [INFO] [1534430389.441650, 7312.924000]: Loading controller: joint1_position_controller [ERROR] [1534430390.460963, 7313.950000]: Failed to load joint1_position_controller [INFO] [1534430390.461646, 7313.950000]: Loading controller: joint2_position_controller [INFO] [1534430390.573240, 7314.060000]: Loading controller: joint_state_controller [INFO] [1534430390.581980, 7314.068000]: Controller Spawner: Loaded controllers: joint2_position_controller, joint_state_controller [INFO] [1534430390.585388, 7314.071000]: Started controllers: joint2_position_controller, joint_state_controller

asked 16 Aug '18, 14:40

peixuan_gao%40163.com's gravatar image

peixuan_gao@...
22
accept rate: 0%


Hi,

From the output, it seems that the controller for joint2 is loaded, but not joint1. And looking at the config .yaml file, joint1 is using the customized controller, right?

After running catkin_make, check whether your custom controller has been properly registered by using the following command:

$ rospack plugins --attrib=plugin controller_interface

If everything has gone well, you should see your plugin my_controller in the output list. Let us know if its there or not.

permanent link

answered 17 Aug '18, 17:02

arixrobotics's gravatar image

arixrobotics
15
accept rate: 20%

Thank you.

I've checked that my controller was actually there, but i still could not launch it. And the error is still "Failed to load joint1_position_controller"

Why?

(20 Aug '18, 09:37) peixuan_gao@...

What's in your my_controller.yaml file?

(20 Aug '18, 10:11) arixrobotics

I have the same issue here. The provided solution code doesn't work.

I feel like that somewhere in the custom controller goes wrong. If I replace "my_controller/PositionController" in .yaml file with "effort_controllers/JointPositionController", it can be launched.

Thanks for your time!

permanent link

answered 01 May, 22:11

cao237%40purdue.edu's gravatar image

cao237@purdu...
0
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×11
×1

question asked: 16 Aug '18, 14:40

question was seen: 365 times

last updated: 01 May, 22:11

powered by OSQA