!

(!) 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.

Troubleshooting

Description: 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.

Sourcing

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

source /opt/ros/<distro>/setup.bash

source ~/<YOUR_WORKSPACE>/devel/setup.bash

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:

/home/<USER_NAME>/<YOUR_WORKSPACE>/src:/opt/ros/<distro>/share

Models for Gazebo

Joystick

Wiki: Robots/MRP2/indigo/Tutorials/Troubleshooting (last edited 2017-03-20 13:53:08 by orhanoz)