i have followed the course step by step and i was also getting the same non executable file error but after giving permission when i tried to run the file using the given command i got a error that this package is not found .what to do ?
What’s happening and why
When you run rosrun, ROS needs to know where your packages are located on your computer. This information is stored in something called an environment variable — basically a temporary setting that lives in your terminal session.
The problem is: every time you open a new terminal, these settings are wiped. So ROS suddenly has no idea where your package is, even though nothing actually changed in your files.
Fix it permanently by running these two commands once: