Issue with the final exercise in course ROS control

Hi, I have already finished the first part of the exercise by implementing a package named quiz_control and to control ur5 by the default controller.

However, when I moved on to the next part, I got error while loading my custom controller:

$ roslaunch project_controller quiz_control_custom.launch

process[ur5/controller_spawner-1]: started with pid [6301]
process[robot_state_publisher-2]: started with pid [6302]
[INFO] [1648125621.861932, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [1648125621.865923, 0.000000]: Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [1648125621.869677, 0.000000]: Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [1648125621.873491, 0.000000]: Loading controller: joint_state_controller
[INFO] [1648125621.880195, 2490.347000]: Loading controller: shoulder_lift_joint_position_controller
[ERROR] [1648125622.885222, 2491.349000]: Failed to load shoulder_lift_joint_position_controller
[INFO] [1648125622.886843, 2491.350000]: Loading controller: shoulder_pan_joint_position_controller
[INFO] [1648125622.894357, 2491.358000]: Loading controller: wrist_1_joint_position_controller
[INFO] [1648125622.901313, 2491.365000]: Loading controller: wrist_2_joint_position_controller
[INFO] [1648125622.908426, 2491.372000]: Loading controller: wrist_3_joint_position_controller
[INFO] [1648125622.917563, 2491.381000]: Controller Spawner: Loaded controllers: joint_state_controller, shoulder_pan_joint_position_controller, wrist_1_joint_position_controller, wrist_2_joint_position_controller, wrist_3_joint_position_controller
[INFO] [1648125622.922471, 2491.386000]: Started controllers: joint_state_controller, shoulder_pan_joint_position_controller, wrist_1_joint_position_controller, wrist_2_joint_position_controller, wrist_3_joint_position_controller

I did check whether I implement the controller correctly by trying the command:

$ rospack plugins --attrib=plugin controller_interface | grep project_controller

and I got:

project_controller /home/user/catkin_ws/src/project_controller/controller_plugins.xml

Can someone facing this issue before give me some hint or help? Thanks a lots.

I tried to run the assessment, and it launch successfully… What is going on :sweat_smile:

Hello @yunjinli ,

Can you try changing to another unit and going back to this one (to force a Gazebo restart). This will probably fix your issue.