Ask Your Question
1

ros_master_uri - change it and save it

asked 2012-06-04 04:49:17 -0500

ajr_ gravatar image

updated 2014-01-28 17:12:33 -0500

ngrennan gravatar image

Hi,

Is there a simple way to store change of ROS_MASTER_URI? So when ever I boot up my machine (or start node) this would always be changed to for example:

export ROS_MASTER_URI=http://ubuntu:11311

Now it changes always back to default

$ echo $ROS_MASTER_URI 
http://localhost:11311
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-06-04 05:30:24 -0500

lindzey gravatar image

updated 2012-06-05 03:25:21 -0500

Yes - add a line to your ~/.bashrc (assuming you're using bash)

export ROS_MASTER_URI=http://ubuntu:11311

If it's in your ~/.bashrc, it'll be exported every time you open up a new terminal. If you want edits to this file to take effect in your current terminal, type:

source ~/.basrhc
edit flag offensive delete link more

Comments

Nitpicking: assuming you're using Bash, not Ubuntu ;) (type "echo $0" to know your shell, Bash by default under Ubuntu)

Thomas gravatar image Thomas  ( 2012-06-04 23:33:00 -0500 )edit

@Thomas - Thanks! Edited to include your correction....

lindzey gravatar image lindzey  ( 2012-06-05 03:26:21 -0500 )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: 2012-06-04 04:49:17 -0500

Seen: 8,640 times

Last updated: Jun 05 '12