ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 moving workspaces

asked 2021-11-17 02:35:13 -0500

omhaaland gravatar image

Hi! A short and simple question. I'm noticing that my Linux /usr directory (~) is filling up. I would therefore like to move all my ROS workspaces into a subfolder called (something like) ROS_WSS. However, I've noticed that one does not simply move a workspace.

My experience is that moving workspaces around – after building them – is a hassle. I could do this in a brute force way, rebuild everything and debug etc. However, I would like to solve this in a time-efficient manner. Do you have any tips for how I can go about this?

TL;DR: I have built this:

home/
├─ usr/
│  ├─ ros2_foxy/
│  ├─ px4_ros_com_ros2/
│  ├─ Fast-RTPS-Gen/
│  ├─ FastDDS/

I want this, without everything going bad.

home/
├─ usr/
│  ├─ ROS2_WSs/
│  │  ├─ ros2_foxy/
│  │  ├─ px4_ros_com_ros2/
│  │  ├─ Fast-RTPS-Gen/
│  │  ├─ FastDDS/

Note that px4_ros_com_ros2 depends on ros2_foxy

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-11-18 08:14:54 -0500

fergs gravatar image

I don't think you can do this without a clean rebuild - all of the CMake generated will have hard coded paths, same for the libraries that are built. If you move things, you really need to regenerate that.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-11-17 02:35:13 -0500

Seen: 343 times

Last updated: Nov 18 '21