ros-simulation / gazebo_ros_demos

Example robots and code for interfacing Gazebo with ROS
347 stars 225 forks source link

failed to load controller #32

Open lulienhsi opened 6 years ago

lulienhsi commented 6 years ago

Hi everyone, I confront some problems while using Ubuntu 18.04 + ROS Melodic + Gazebo 9. When I run roslaunch rrbot_control rrbot_control.launch I get the following error,


SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.2
 * /rrbot/joint1_position_controller/joint: joint1
 * /rrbot/joint1_position_controller/pid/d: 10.0
 * /rrbot/joint1_position_controller/pid/i: 0.01
 * /rrbot/joint1_position_controller/pid/p: 100.0
 * /rrbot/joint1_position_controller/type: effort_controller...
 * /rrbot/joint2_position_controller/joint: joint2
 * /rrbot/joint2_position_controller/pid/d: 10.0
 * /rrbot/joint2_position_controller/pid/i: 0.01
 * /rrbot/joint2_position_controller/pid/p: 100.0
 * /rrbot/joint2_position_controller/type: effort_controller...
 * /rrbot/joint_state_controller/publish_rate: 50
 * /rrbot/joint_state_controller/type: joint_state_contr...

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

ROS_MASTER_URI=http://localhost:11311

process[rrbot/controller_spawner-1]: started with pid [9316]
process[robot_state_publisher-2]: started with pid [9317]
[INFO] [1531792486.803933, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[INFO] [1531792486.809971, 0.000000]: Controller Spawner: Waiting for service controller_manager/switch_controller
[INFO] [1531792486.816021, 0.000000]: Controller Spawner: Waiting for service controller_manager/unload_controller
[INFO] [1531792486.819924, 0.000000]: Loading controller: joint_state_controller
[INFO] [1531792486.861847, 29.439000]: Loading controller: joint1_position_controller
[ERROR] [1531792487.873133, 30.435000]: Failed to load joint1_position_controller
[INFO] [1531792487.877248, 30.439000]: Loading controller: joint2_position_controller
[ERROR] [1531792488.891768, 31.440000]: Failed to load joint2_position_controller
[INFO] [1531792488.895309, 31.443000]: Controller Spawner: Loaded controllers: joint_state_controller
[INFO] [1531792488.907590, 31.451000]: Started controllers: joint_state_controller

Does anyone also have this problem?

lulienhsi commented 6 years ago

I thought I didn't install the controllers, so after this I run two commands, sudo apt-get update sudo apt-get install ros-melodic-ros-control ros-melodic-ros-controllers however, it returns below,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-melodic-ros-control
E: Unable to locate package ros-melodic-ros-controllers

Can anyone solve this?

scpeters commented 6 years ago

Those packages are in the repo:

lulienhsi commented 6 years ago

Sorry, I cannot get it :(

Bopp1312 commented 5 years ago

Does this error persist?

leolixinwang commented 5 years ago

yes, i have the same issue, and i've installed all pakets, i stil got the error, any ideas? thx!!

MSawan commented 3 years ago

Hey @lulienhsi Buddy how did you solve this error? I'm also having the same one.

aditya-shirwatkar commented 3 years ago

Hey @lulienhsi, I'm also facing this issue. Did you find any solution to it?

dayatsa commented 3 years ago

I found a solution from this link

I'm not sure of what was the root cause.

What I did:

Tested on Ubuntu 18.04 LTS, ROS Melodic

liaolunjia commented 3 years ago

sudo apt-get install ros-noetic-ros-control ros-noetic-ros-controllers