Ask Your Question

ERROR: cannot launch node of type [controller_manager/spawner]: can't locate node [spawner] in package [controller_manager]

asked 2018-07-20 01:21:45 -0500 gravatar image

updated 2018-07-20 07:16:50 -0500

why error? when i"roslaunch rrbot_control test1.launch"

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-07-20 07:29:13 -0500

Probably because controller_manager is not installed.


sudo apt install ros-kinetic-controller-manager

In general, it's best to use rosdep to install missing packages. I'm going to assume that:

  • you are using ROS kinetic
  • your catkin workspace is ~/catkin_ws
  • you've checked out gazebo_ros_demos (which includes rrbot_control) into ~/catkin_ws/src/gazebo_ros_demos

Then do this:

source /opt/ros/kinetic/setup.bash
sudo rosdep init
rosdep update
cd ~/catkin_ws/src
rosdep install -i --from-paths .

This will install all missing dependencies for you, and should work on 99% of all ROS packages.

edit flag offensive delete link more



Good answer. Just to keep things connected: #q252478.

gvdhoorn gravatar image gvdhoorn  ( 2018-07-20 08:00:33 -0500 )edit

Nice answer over there too, upvoted! :)

Martin Günther gravatar image Martin Günther  ( 2018-07-20 08:07:01 -0500 )edit

when i "sudo apt install ros-kinetic-controller-manager",it is already installed,i do not know if i understand "you've checked out gazebo_ros_demos (which includes rrbot_control) into ~/catkin_ws/src/gazebo_ros_demos" gravatar image  ( 2018-07-20 20:20:42 -0500 )edit

My "test1.launch" file is under the "rrnot_control" folder. my "rrbot_control" is under the "my_gazebo" folder.when i "cd ~/catkin_ws/src/my_gazebo" run these"source /opt/ros/kinetic/setup.bash sudo rosdep init rosdep update cd ~/catkin_ws/src rosdep install -i --from-paths " is that right? gravatar image  ( 2018-07-20 20:34:48 -0500 )edit

is the path right?when i run "sudo rosdep init",ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list Please delete if you wish to re-initialize gravatar image  ( 2018-07-20 20:37:19 -0500 )edit

use the "indigo version" ros gravatar image  ( 2018-07-20 20:38:44 -0500 )edit

when i "rosdep update",it works. when "cd ~/catkin_ws/src" run "rosdep install -i --from-paths" gravatar image  ( 2018-07-20 20:44:58 -0500 )edit

Usage: rosdep [options] <command> <args> Commands: rosdep check <stacks-and-packages>... check if the dependencies of package(s) have been met. rosdep install <stacks-and-packages>... generate a bash script and then execute it. rosdep db .... rosdep: error: no packages or stacks specified,why?? gravatar image  ( 2018-07-20 20:48:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-07-20 01:21:45 -0500

Seen: 1,154 times

Last updated: Jul 20 '18