|Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.|
TroubleshootingDescription: Common mistakes will be handled here...
Tutorial Level: BEGINNER
Verification of packages
First you should locate your package installation directory. This depends on how you installed them at the first place. To check that you can:
$ roscd <package_name>
If above command does not work, you should try sourcing your setup.bash file. And If that fails too. It's probably because you don't have the packages installed. To do that please refer to our installation tutorial.
If you don't want to change your .bashrc file, with every new terminal session you have to execute these two commands in order to source your setup files.
$ source /opt/ros/<distro>/setup.bash $ source ~/<YOUR_WORKSPACE>/devel/setup.bash
But this could lead to confusions while working with several terminals for that reason you should append few lines to your .bashrc file. Here is how:
$ vim ~/.bashrc
Just add these two lines at the end of your .bashrc file. Now with every new terminal session source commands will execute automatically.
To check whether it works:
$ echo $ROS_PACKAGE_PATH
Command should return something similar to following:
Models for Gazebo