OUXT-Polaris / ros_ship_packages

USV simulator for ROS
128 stars 46 forks source link

[ERROR] [1520304431.162725, 0.000000]: Failed to load joint_state_controller #7

Closed matebearyuan closed 6 years ago

matebearyuan commented 6 years ago

Everything seems to be built successfully. When I ran the command "roslaunch ros_ship_gazebo_plugins wam-v_gazebo.launch", the ship could not be controlled. The errors can be found in the terminal like the following, can you give me some helpful suggestion? Thanks very much!

[ERROR] [1520304431.162725, 0.000000]: Failed to load joint_state_controller [INFO] [1520304431.163007, 0.000000]: Loading controller: right_motor_controller [ERROR] [1520304431.164591474]: Could not load controller 'right_motor_controller' because controller type 'velocity_controllers/JointVelocityController' does not exist. [ERROR] [1520304431.164627068]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [1520304432.165761, 0.000000]: Failed to load right_motor_controller [INFO] [1520304432.166032, 0.000000]: Loading controller: left_motor_controller [ERROR] [1520304432.167711935]: Could not load controller 'left_motor_controller' because controller type 'velocity_controllers/JointVelocityController' does not exist. [ERROR] [1520304432.167750789]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [1520304433.168274, 0.000000]: Failed to load left_motor_controller

Steps to Reproduce the Problem

1. 1. 1.

Specifications

RyodoTanaka commented 6 years ago

@matebearyuan It seems like, velocity_controllers package is not installed. To fix this, just install with apt.

$ sudo apt install ros-kinetic-velocity-controllers

But, this error should be avoided with rosdep command. If you did not do following command, you need it.

$ cd <catkin_ws>
$ rosdep install -i -y -r --from-paths src

After above rosdep command, if you still have an execution error, that means we mistake a dependency. That should be fixed.