ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

ROS_PACKAGE_PATH for catkin beginners

asked 2013-04-10 11:30:35 -0600

Maheshwar Venkat gravatar image

updated 2014-01-28 17:16:08 -0600

ngrennan gravatar image

Section 1.2.2 of beginner level tutorial "8.Using rqt_console and roslaunch" says:

*If roscd fails, remember to set the ROS_PACKAGE_PATH variable in your terminal. Then the commands will look like this:

$ export ROS_PACKAGE_PATH=~/<distro>_workspace/sandbox:$ROS_PACKAGE_PATH*

I followed the catkin based tutorial and found out that this doesnt work. I use ros-groovy on Ubuntu 12.10.I tried

export ROS_PACKAGE_PATH=~/catkin_ws/src:$ROS_PACKAGE_PATH

which solved the issue. I guess whats given in the tutorial is based on rosbuild. Perhaps a mention on catkin based command would help beginners.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-04-10 11:34:24 -0600

William gravatar image

Did you ever source ~/catkin_ws/devel/setup.bash (or source ~/catkin_ws/install/setup.bash)? That step should set your ROS_PACKAGE_PATH.

edit flag offensive delete link more

Comments

does it remain set even if i restart my computer or something ?

Maheshwar Venkat gravatar imageMaheshwar Venkat ( 2013-04-10 11:41:24 -0600 )edit
1

No, you have to source the setup.bash file each time you open a terminal. If you are going to be working with the same workspace for a long time you can put the source /path/to/setup.bash command in your ~/.bashrc file which will run each time you open a terminal.

William gravatar imageWilliam ( 2013-04-10 11:43:20 -0600 )edit

resolved and understood. thanks.!

Maheshwar Venkat gravatar imageMaheshwar Venkat ( 2013-04-10 11:46:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-10 11:30:35 -0600

Seen: 2,926 times

Last updated: Apr 10 '13