Skip to content

Commit

Permalink
add install colcon mixin line (#326)
Browse files Browse the repository at this point in the history
* add install colcon mixin line

Signed-off-by: Masaya Kataoka <[email protected]>

* update role

Signed-off-by: Masaya Kataoka <[email protected]>

* remove redandant line

Signed-off-by: Masaya Kataoka <[email protected]>

* install colcon via pip

Signed-off-by: Masaya Kataoka <[email protected]>

* install via apt

Signed-off-by: Masaya Kataoka <[email protected]>

---------

Signed-off-by: Masaya Kataoka <[email protected]>
  • Loading branch information
hakuturu583 authored Nov 20, 2023
1 parent edda303 commit 1163cc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ansible/roles/build/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
command: rosdep install -y -r -i --from-paths {{ workspace_path }}/src --ignore-src --rosdistro humble
become: yes

- name: add colcon mixin
command: colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
ignore_errors: true

- name: update colcon mixin
command: colcon mixin update default

- name: load env variable & build
shell: |-
cd {{ workspace_path }}
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/ros2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# shell: apt-get -y update && apt-get -y upgrade && apt-get --with-new-pkgs -y upgrade && aptitude -y full-upgrade && apt-get -y update && apt-get -y upgrade
# become: yes

- name: install ros2 humble/colcon/vcs
- name: install ros2 humble/vcs
become: yes
apt:
name: "{{ packages }}"
Expand All @@ -70,8 +70,8 @@
packages:
- "{{ ros_package_name }}"
- python3-colcon-common-extensions
- python3-colcon-mixin
- python3-vcstool
- python3-colcon-common-extensions
- python3-rospkg
- python3-catkin-pkg
- python3-rosdep
Expand Down

0 comments on commit 1163cc1

Please sign in to comment.