socrob / autonomous_systems

Material used for learning ROS and robotics, as part of the Autonomous Systems course at Instituto Superior Tecnico
34 stars 9 forks source link

During System Setup: Package not found after building #34

Open RuteLuz opened 5 years ago

RuteLuz commented 5 years ago

If after following the instructions for the system setup you build a package, source your environment (source ~/.bashrc) the system ca'n find your package :

$ roscd example
roscd: No such package/stack 'example1' 

Verify your bashrc file by typing:

gedit ~/.bashrc

If you have the following sequence of lines:

source ~/scripts/permanent.sh
source /home/<username>/ros_ws/devel/setup.bash

you should delete the line source /home/<username>/ros_ws/devel/setup.bash

and maintain only the following line source ~/scripts/permanent.sh