Moving Ros folder
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?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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?
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.
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>
Asked: 2012-11-13 11:36:48 -0600
Seen: 450 times
Last updated: Nov 14 '12
Why would you like it to be placed on your desktop?