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.
it's likely that something was not entirely correct when you built your workspace.
Try this:
source
lines from your.bashrc
(make sure to save it after editing)rm -r devel/ build/
source /opt/ros/melodic/setup.bash
source devel/setup.bash
Now try again.