I was doing the Publisher/Subscriber tutorial given on the website.
I created a package using catkin_create_package
, built it using catkin_make
then tried running rosrun
there it gives Package not found
error.
Solution:
run source /path/to/your/catkin_ws/devel/setup.bash
(Examining the Simple Publisher and Subscriber - Running the Publisher). Excerpt from that page:
[..] If you are using catkin, make sure you have sourced your workspace's setup.sh file after calling catkin_make but before trying to use your applications: