Ask Your Question
0

Setting up ROS, where to put environment variable?

asked 2014-01-26 21:41:04 -0500

lppier gravatar image

Hi,

Where should I place the following in Ubuntu 12.04? export ROS_PACKAGE_PATH=~/catkin_ws:$ROS_PACKAGE_PATH

I want to launch this everytime so that I can just use roscd beginner_tutorials everytime.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-01-26 22:26:11 -0500

bchr gravatar image

updated 2014-01-26 22:38:59 -0500

You can put that kind of export in your ~/.bashrc (or ~/.zshrc if you use zsh). Thus it will be automatically exported when you open a shell.

Check this page for more information, as your problem is similar to having to run source /opt/ros/hydro/setup.bash for each new shell.

In your ~/.bashrc, you will probably end up having something like this (if you use hydro):

# ROS
source /opt/ros/hydro/setup.zsh
export ROS_PACKAGE_PATH=~/catkin_ws:$ROS_PACKAGE_PATH
edit flag offensive delete link more

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: 2014-01-26 21:41:04 -0500

Seen: 152 times

Last updated: Jan 26 '14