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

Revision history [back]

click to hide/show revision 1
initial version

If rosrun does not find an executable, it reports:

[rosrun] Couldn't find executable named test below

and not:

No such file or directory

rosrun is a short bash script that you can examine for debugging:

 cat /opt/ros/electric/ros/bin/rosrun

You can copy the rosrun file and modify the copy for debugging. I would guess the error should be reproducable with

exec /home/path/to/your/node/my_node.py

which is the last line of rosrun. You can add the line:

echo $exepath

before the last line in rosrun to see whether there is any problem with the path.

Also you can run the find command in isolation:

find -L `${ROS_ROOT}/bin/rospack find my_package` -name my_node.py -type f  -perm +111 ! -regex ".*$pkgdir\/build\/.*"

To see whether that returns something weird (replace my_package and my_node.py if you have different names).