Add colcon defaults
Description
Based on autowarefoundation/autoware-foundation#83 (comment 462527524), I propose to add colcon default settings that build the code as release with debug symbols. We need the release build to avoid high latencies due to unoptimized code.
Having a default file https://colcon.readthedocs.io/en/released/user/configuration.html#defaults-yaml also allows to set other properties, like build --merge-install
if we so desire in the future.
Expected behavior
Inside ADE, the defaults can be set easily via environment variables that we can control in our ADE containers. Outside, it seems less under control. We should investigate if we can set this up easily or if we need to update installation instructions to recommend good settings.
Definition of Done
-
code built inside ADE is built in "release with debug" mode -
code built outside ADE is either built in "release with debug" mode by default or instructions are updated to recommend this -
documentation is updated with instructions to add the new colcon-defaults.yaml file
Edited by Esteve Fernandez