ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

Enable colcon defaults file to customize list/build #164

Closed emersonknapp closed 4 years ago

emersonknapp commented 4 years ago

Description

It should be possible now to customize the colcon build with arbitrary arguments such as --packages-up-to by providing a colcon defaults file.

If the user can easily provide this, then we can avoid having to expose any explicit arguments.

Side effect, this should enable customization of colcon list for the rosdep collection step.

Related Issues

N/A

Completion Criteria

Implementation Notes / Suggestions

Suggest a defaults.yaml file at root of workspace, and build_workspace.sh sets the COLCON_DEFAULTS_FILE or COLCON_HOME environment variable appropriately. See https://colcon.readthedocs.io/en/released/user/configuration.html#defaults-yaml

Testing Notes / Suggestions

Create test workspace with 2 packages with different dependencies. Run rosdep collection script with defaults file that specifies --packages-select one_package. Check output script for its dependencies.

Continue above experiment into build phase and check that build directory only contains the one package