Python scripts : they're either not files, or not executable !
I am following this tutorial link text After installing the Differential_drive package from this link link text with catkin_make,
I tried to run it with the following command :
rosrun differential_drive twist_to_motors.py
(Autocomplete doesn't work for the twist_to_motors.py part!)
It gives the following error !!:
[rosrun] Couldn't find executable named twist_to_motors.py below /home/aissa/catkin_ws/src/differential-drive
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /home/aissa/catkin_ws/src/differential-drive/scripts/twist_to_motors.py
I am using ubuntu MATE 16.04 with ROS kinetic both installed on a raspberry pi 3. I also had the same issue in the ubuntu 14.04 with ros indigo installed ! Please do you guys have an Idea as to what causes this problem ?
Can you run an 'ls -l' in /home/aissa/catkin_ws/src/differential-drive/scripts/?
It turned out I should explicitly run the
chmod +x
command to every single script in the script file in order to unable them, now it is working fine. thank you @NEngelhard anyway :)Yes you can't execute any file in linux that doesn't have that permission. This is a very fundamental feature of this OS.