From 793fd924ba988ace89697b1d28ec3328675fea5e Mon Sep 17 00:00:00 2001 From: Yuxuan Liu Date: Tue, 2 Apr 2024 14:52:16 +0900 Subject: [PATCH] make ros2 installation optional Signed-off-by: Yuxuan Liu --- ansible/playbooks/universe.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/playbooks/universe.yaml b/ansible/playbooks/universe.yaml index ea9b9fbb64b..d8b40d7c311 100644 --- a/ansible/playbooks/universe.yaml +++ b/ansible/playbooks/universe.yaml @@ -12,6 +12,12 @@ [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N] private: false + - name: prompt_install_new_ros2 + prompt: |- + [Warning] ROS 2 is required for Autoware. Please refer to https://docs.ros.org/en/humble/Installation.html for more information. + Install ROS 2? [y/N] + default: 'y' + private: false pre_tasks: - name: Verify OS ansible.builtin.fail: @@ -36,8 +42,10 @@ roles: # Autoware base dependencies - role: autoware.dev_env.ros2 + when: prompt_install_new_ros2 == 'y' - role: autoware.dev_env.ros2_dev_tools - role: autoware.dev_env.rmw_implementation + when: prompt_install_new_ros2 == 'y' - role: autoware.dev_env.gdown - role: autoware.dev_env.build_tools