From fe29235736b7efd8290f3e13682abd8ce986a578 Mon Sep 17 00:00:00 2001 From: qhdwight Date: Wed, 3 Apr 2024 14:35:54 -0400 Subject: [PATCH] Install chromium via snap with ansible, install fdcanusb binary, install vainfo, comments --- ansible/roles/build/tasks/main.yml | 6 ++++++ ansible/roles/esw/tasks/main.yml | 7 +++++++ src/teleoperation/gui_chromium.sh | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/ansible/roles/build/tasks/main.yml b/ansible/roles/build/tasks/main.yml index bc8d866b6..6d91a9651 100644 --- a/ansible/roles/build/tasks/main.yml +++ b/ansible/roles/build/tasks/main.yml @@ -96,6 +96,7 @@ - libopencv-dev - libgstreamer1.0-dev - libgstreamer-plugins-base1.0-dev + - vainfo - name: Install Local APT Packages become: True @@ -205,3 +206,8 @@ - "{{ catkin_workspace }}/src/mrover[dev]" virtualenv: "{{ catkin_workspace }}/src/mrover/venv" virtualenv_command: /usr/bin/python3.10 -m venv + +- name: Install Chromium + become: True + snap: + name: chromium diff --git a/ansible/roles/esw/tasks/main.yml b/ansible/roles/esw/tasks/main.yml index c734c770b..f9a81d7a5 100644 --- a/ansible/roles/esw/tasks/main.yml +++ b/ansible/roles/esw/tasks/main.yml @@ -13,6 +13,13 @@ become: true command: udevadm trigger --subsystem-match=tty +- name: Install fdcanusb Binary + become: true + copy: + src: files/bin/fdcanusb_daemon + dest: /usr/local/bin/ + mode: 0755 + - name: Install Moteus GUI pip: name: moteus_gui diff --git a/src/teleoperation/gui_chromium.sh b/src/teleoperation/gui_chromium.sh index 70ade9866..3f5e50061 100755 --- a/src/teleoperation/gui_chromium.sh +++ b/src/teleoperation/gui_chromium.sh @@ -1,3 +1,7 @@ #!/bin/bash +# Our stream is encoded with the HVEC (H.265) codec +# Chromium currently only supports this when using VA-API hardware acceleration +# It uses the WebCodecs API to decode +# You can easily test if your setup works with this URL: https://w3c.github.io/webcodecs/samples/video-decode-display/ chromium --enable-features=VaapiVideoDecodeLinuxGL --app=http://localhost:8080