Skip to content

Commit

Permalink
Install chromium via snap with ansible, install fdcanusb binary, inst…
Browse files Browse the repository at this point in the history
…all vainfo, comments
  • Loading branch information
qhdwight committed Apr 3, 2024
1 parent 4432b62 commit fe29235
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/build/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
- libopencv-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- vainfo

- name: Install Local APT Packages
become: True
Expand Down Expand Up @@ -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
7 changes: 7 additions & 0 deletions ansible/roles/esw/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions src/teleoperation/gui_chromium.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fe29235

Please sign in to comment.