[Bug] package not found

This is an error report.


Screenshot of the error


Error details

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 ?

Hey! This is a very common issue, don’t worry.

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:

echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

From now on every new terminal will automatically know where your packages are.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.