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

Use wstool but keep git directories organized under a custom structure

asked 2019-04-05 01:11:16 -0500

Juan gravatar image

Imagine I have the following structure in my directory:

ros_ws
|__src
       |.rosinstall
       |__robots
                |__baxter
                     |__baxter.rosinstall
                     |__baxter_sdk
                     |__.git
                      ...
                |__sawyer
                     |__sawyer.rosinstall
                     |__sawyer_sdk
                     |__.git

Is there a way to call wstool update locally or globally to update git repos but keep them in my pre-established structure. Currently when I do wstool update it want to place updated git repo folders directly under ros_ws/src.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-04-05 05:58:03 -0500

gvdhoorn gravatar image

I'm not sure I understand you correctly, but the .rosinstall format supports specifying a destination for clones/checkouts of repositories with the local-name property.

The documentation on the file format describes it as:

Inside every top level dictionary there is one required key, local-name this represents the path where to install files. It will support both workspace relative paths as well as absolute paths.

So if you want to keep things in a different directory than directly in your source space, you could do that by setting local-name to something like:

some_dir/other_dir/baxter/..

Each entry has its own local-name key, so each repository can be placed in a different directory.

edit flag offensive delete link more

Comments

Great!!! Thanks for that tip!

Juan gravatar image Juan  ( 2019-04-10 21:37:41 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-04-05 01:11:16 -0500

Seen: 133 times

Last updated: Apr 05 '19