ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Cannot launch a node of type [controller_manager/spawner]

asked 2021-11-30 06:36:04 -0500

EpiX gravatar image

updated 2022-02-18 13:20:26 -0500

lucasw gravatar image


First, I wanted to let you know that I'm new to ROS and I certainly have a lack of understanding of what I'm doing.

I am currently trying to control the joints of a simple robot in Gazebo. I'm trying to follow this tutorial:

My robot is called "bras" and not "rrbot".

I have managed to launch my model in Gazebo whitout any error. However, I cannot launch the command :

 roslaunch bras_control bras_control.launch

Because the consol indicates:

   ~/simulation_ws$ roslaunch bras_control bras_control.launch 
... logging to /home/clement/.ros/log/8f02fa82-51cf-11ec-9d3a-08002781df68/roslaunch-clement-VirtualBox-22458.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://clement-VirtualBox:38753/


 * /robot_description: <robot name="droi...
 * /rosdistro: melodic
 * /rosversion: 1.14.12

    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    controller_spawner (controller_manager/spawner)

auto-starting new master
process[master]: started with pid [22469]

setting /run_id to 8f02fa82-51cf-11ec-9d3a-08002781df68
process[rosout-1]: started with pid [22480]
started core service [/rosout]
ERROR: cannot launch node of type [controller_manager/spawner]: Cannot locate node of type [spawner] in package [controller_manager]. Make sure file exists in package path and permission is set to executable (chmod +x)
process[robot_state_publisher-3]: started with pid [22487]
[ WARN] [1638271244.668825499]: The root link base has an inertia specified in the URDF, but KDL does not support a root link with an inertia.  As a workaround, you can add an extra dummy link to your URDF.

I have read that it can be linked to a bad installation of the ros_control and ros_controller package. I have installed these packages with the command:

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

However, the installation looks to be succesful:

~/simulation_ws$ rospack find controller_manager

Also, I wanted to know if instead of installing the "ros_control" with the : "sudo apt install..." command; I could have installed it with the command:

 git clone

Thanks for your help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-12-08 06:56:57 -0500

Mike Scheutzow gravatar image

updated 2021-12-08 07:04:35 -0500

spawner is provided by apt package ros-melodic-controller-manager. Do you have this file:

edit flag offensive delete link more


It seems like I don't. There is only a cmake folder which contains "controller_managerConfig.cmake" and "controller_managerConfig-version.cmake" and a "package.xml" file in /opt/ros/melodic/lib/controller_manager/spawner

EpiX gravatar image EpiX  ( 2021-12-15 15:48:51 -0500 )edit

It seems like you are confusing melodic/share/ with melodic/lib/

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-12-15 20:35:45 -0500 )edit

Question Tools

1 follower


Asked: 2021-11-30 06:36:04 -0500

Seen: 594 times

Last updated: Dec 08 '21