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

Can packages be chosen with vsctool or only --packages-up-to?

asked 2022-05-24 08:14:34 -0600

sameh4 gravatar image

updated 2022-05-24 08:15:25 -0600

Colcon allows to limit the building of a workspace by specifying --packages-up-to . However I am wondering if there's a way to limit vsctool from downloading all packages in a repository.

For example: In the Autoware Universe repo, under the perception directory, there's a number of packages. By specifying it in the .repos file:

universe/autoware.universe:
    type: git
    url: https://github.com/autowarefoundation/autoware.universe.git
    version: main

vsctool will bring in all directories under this repository.

Assuming we are only interested in the traffic_light_classifier (and its dependencies), is there a way to specify this in the .repos file, or is --packages-up-to the only viable option?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-05-24 12:13:43 -0600

gvdhoorn gravatar image

updated 2022-05-25 02:03:15 -0600

No, this is not something vcstool supports.

vcstool has one responsibility, and that's cloning/downloading repositories/archives listed in a .repos file (in addition to some other convenience methods having to do with interacting with all those cloned/downloaded repositories).

It doesn't know anything about packages, about ROS, workspaces, or anything like that.

It's purely a convenience tool around git, svn and some other VCS tools.


Edit: having written that, there is an issue asking for this functionality: dirk-thomas/vcstool#218, and an open PR which proposes to add this functionality: dirk-thomas/vcstool#219.

Note that even with the PR merged, vcstool would still not know anything about packages. The PR only adds the ability to selectively checkout directories. There is no guarantee, nor requirement, that each directory only contains a single package.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-05-24 08:14:34 -0600

Seen: 73 times

Last updated: May 25 '22