Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to load controller spawner node

For some reason controller_manager isn't able to run a spawner node. If I use a launch file I get:

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

and if attempt to directly run it with rosrun:

[rosrun] Couldn't find executable named spawner below /opt/ros/melodic/share/controller_manager

I have ros-melodic-controller-manager package installed, and verified there is a compiled binary in /opt/ros/melodic/lib/controller_manager - not sure why ROS is trying to load it from /opt/ros/melodic/share/controller_manager??

Unable to load controller spawner node

For some reason controller_manager isn't able to run a spawner node. If I use a launch file I get:

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

and if attempt to directly run it with rosrun:

[rosrun] Couldn't find executable named spawner below /opt/ros/melodic/share/controller_manager

I have ros-melodic-controller-manager package installed, and verified there is a compiled binary in /opt/ros/melodic/lib/controller_manager - not sure why ROS is trying to load it from /opt/ros/melodic/share/controller_manager??

EDIT: I've found that this only happens after I source the devel/setup.bash from my workspace. Somehow rosrun and roslaunch behave differently.