Ask Your Question
0

Moving Ros folder

asked 2012-11-13 11:36:48 -0600

andreapatri gravatar image

I would like to change the ROS folder location. The current directory is: root/opt/ros but if I just move it (cut, paste), ROS it doesn't work How can I move it to my desktop?

edit retag flag offensive close merge delete

Comments

Why would you like it to be placed on your desktop?

SL Remy gravatar imageSL Remy ( 2012-11-14 02:43:50 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-11-13 13:22:55 -0600

updated 2012-11-13 23:20:38 -0600

Usually you would keep the system folder for ROS there and add another folder to your $ROS_PACKAGE_PATH environment variable. I usually like to use ~/ros for my packages or packages I downloaded from other people's repositories.

edit flag offensive delete link more
2

answered 2012-11-13 21:34:40 -0600

Lorenz gravatar image

updated 2012-11-14 00:12:47 -0600

Generally, I think it's a pretty bad idea to move ros packages that were installed by debian packages (everything in /opt/ros/). Setting ROS_PACKAGE_PATH will not be enough because the binaries and libraries in ros packages contain RPATH information to not require LD_LIRBARY_PATH set. When you move the packages, the rpaths will become incorrect and you won't be able to run any nodes anymore. A second problem is that every update will re-install ros packages at the old location.

The only thing you can do is creating a symbolic link. You can move /opt/ros and then create the link with:

ln -s /opt/ros <new location of ros>
edit flag offensive delete link more

Comments

You'd want: ln -s /opt/ros <new location of ros>

dornhege gravatar imagedornhege ( 2012-11-14 00:11:42 -0600 )edit

Damn. Right. Edited my post. Thanks!

Lorenz gravatar imageLorenz ( 2012-11-14 00:13:04 -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

Stats

Asked: 2012-11-13 11:36:48 -0600

Seen: 119 times

Last updated: Nov 14 '12