Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ansible): modify ansible script to setup CTI Anvil to run both 2D and 3D perception #42

Open
wants to merge 31 commits into
base: anvil-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a6cc0c6
push anvil ros2 environment setup ansible script for testing on anvil
bgilby59 Oct 26, 2023
a8c9cdb
fix typo
bgilby59 Oct 26, 2023
0b4aa14
make jetson-containers scripts executable
bgilby59 Oct 26, 2023
9073533
small fixes
bgilby59 Oct 26, 2023
775897b
remove variables for opencv_url and opencv_deb
bgilby59 Oct 26, 2023
8c4a205
add become: true for opencv install and ros2 build scripts
bgilby59 Oct 26, 2023
7bb9eb9
do not install jetpack in ros2 role
bgilby59 Oct 26, 2023
b20003d
change network configuration and run entire setup
bgilby59 Oct 26, 2023
187dbee
add DEBIAN_FRONTEND=noninteractive to prevent error installing Jetpack
bgilby59 Oct 26, 2023
e72b9f2
change python interpreter from 3.6 to 3.8
bgilby59 Oct 26, 2023
7bc9082
Change from 10G to 1G network interface
bgilby59 Oct 27, 2023
d665519
temporarily remove calibration tools setup from ansible script
bgilby59 Oct 27, 2023
4481c32
comment out ROSCube specific command
bgilby59 Oct 27, 2023
8fcf73e
commit ptp4l host configuration for debugging
bgilby59 Oct 27, 2023
4ae927e
add ptp4l_host role to setup script
bgilby59 Oct 27, 2023
78c4492
add lidar network configuration
bgilby59 Oct 27, 2023
28efae0
comment out redundant code from ptp4l_host
bgilby59 Oct 27, 2023
4e9ceee
make ansible only setup ptp master
bgilby59 Nov 6, 2023
28760b4
change ptp interface to 1G interface
bgilby59 Nov 6, 2023
230978c
rewrite ros2 build script to add additional packages into build
bgilby59 Nov 8, 2023
08eff91
save checkpoint after successful ansible setup run on Anvil
bgilby59 Nov 15, 2023
3b2c620
add install range-v3 from source and extra PCL dep
bgilby59 Nov 15, 2023
8c76af0
fix range-v3 directory name
bgilby59 Nov 15, 2023
38aabd1
add miscellaneous apt packages
bgilby59 Nov 16, 2023
58e4803
Merge branch 'feat/anvil-setup-ansible-playbook' of https://github.co…
bgilby59 Nov 16, 2023
900de54
clean up comments and unused variables
bgilby59 Nov 20, 2023
b3c6a34
push for testing
bgilby59 Nov 21, 2023
0b285e4
purge opencv installation before installing jetpack
bgilby59 Nov 21, 2023
aab70e1
remove opencv build dir after removing opencv installation
bgilby59 Nov 22, 2023
79b8516
Merge remote-tracking branch 'origin/fix/enable-ansible-cuda-run-mult…
bgilby59 Jan 22, 2024
a8b30ce
various fixes
bgilby59 Jan 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/calibration_tools/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Fix python interpreter version to 3
set_fact:
ansible_python_interpreter: /usr/bin/python3.6
ansible_python_interpreter: /usr/bin/python3.8

- name: Upgrade pip
pip:
Expand All @@ -10,7 +10,7 @@
- name: Install dependencies
pip:
name:
- dt-apriltags

Check warning on line 13 in ansible/roles/calibration_tools/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (apriltags)
- ruamel.yaml
state: latest

Expand Down
14 changes: 14 additions & 0 deletions ansible/roles/cuda/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
- name: Remove NVIDIA Jetpack installation and OpenCV installation
become: true
ansible.builtin.apt:
name:
- "*nvidia-jetpack*"
- "*opencv*"
state: absent
purge: true

- name: Remove OpenCV build directory
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/source_builds/jetson-containers"
state: absent

- name: Install apt packages
become: true
ansible.builtin.apt:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/ptp4l_client/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ptp4l_client_interface: eth1
ptp4l_client_interface: eqos0

Check warning on line 1 in ansible/roles/ptp4l_client/defaults/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (eqos)
2 changes: 2 additions & 0 deletions ansible/roles/ptp4l_host/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ptp4l_host_interface:
- eth0
13 changes: 13 additions & 0 deletions ansible/roles/ptp4l_host/files/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Precision Time Protocol (PTP) service
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/ptp4l -i %i -m -S -A
ExecStop=/usr/bin/pkill -f ptp4l

Check warning on line 8 in ansible/roles/ptp4l_host/files/[email protected]

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (pkill)
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target network-online.target
21 changes: 21 additions & 0 deletions ansible/roles/ptp4l_host/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: Install ptp4l
ansible.builtin.apt:
name:
- linuxptp

Check warning on line 4 in ansible/roles/ptp4l_host/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (linuxptp)
update_cache: true
become: true

- name: Copy service template file
ansible.builtin.copy:
src: [email protected]
dest: /etc/systemd/system/
become: true

- name: Install ptp4l client service file
ansible.builtin.systemd:
name: ptp4l@{{ item }}.service
daemon_reload: true
enabled: true
masked: false
become: true
with_items: "{{ ptp4l_host_interface }}"
2 changes: 2 additions & 0 deletions ansible/roles/ros2/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ros_root_dir: /opt/ros/humble
ros_pkg: ros_base
Loading
Loading