File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed
oasis_control/oasis_control/lego_models Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 3131
3232THRUST_LED_PIN : int = 3 # D3
3333
34+ #
35+ # LED noodle: 5V source, 22.1 Ohm resistor
36+ #
37+ # Thrust LED ping to 540 Ohm resistor, to base of BC337 NPN transistor. Emitter
38+ # goes to ground, collector to the LED noodle.
39+ #
3440
3541################################################################################
3642# ROS parameters
Original file line number Diff line number Diff line change 7878
7979sudo apt install -y --no-install-recommends " ${APT_PACKAGES[@]} "
8080
81- sudo python3 -m pip install \
82- --upgrade \
83- --ignore-installed \
84- --break-system-packages \
85- mediapipe==0.10.21 \
81+ # Packages to install via pip
82+ PYTHON_PACKAGES=(
83+ pip \
8684 psutil \
8785 git+https://github.com/eigendude/pymata-express@master#egg=pymata-express \
8886 pyserial \
87+ setuptools \
8988 telemetrix-aio \
89+ )
90+
91+ # If running on ARM, the latest MediaPipe is v0.10.18
92+ if [[ ${PLATFORM_ARCH} == arm* ]] || [[ ${PLATFORM_ARCH} == aarch64 ]]; then
93+ PYTHON_PACKAGES+=(
94+ mediapipe==0.10.18
95+ )
96+ else
97+ PYTHON_PACKAGES+=(
98+ mediapipe==0.10.21
99+ )
100+ fi
90101
91102# Install Matplotlib from pip to ensure Mediapipe's 3-D tooling has the newer
92103# wheel even when an older apt package is already present on the system.
104+ PYTHON_PACKAGES+=(
105+ matplotlib
106+ )
107+
93108sudo python3 -m pip install \
94109 --upgrade \
95110 --ignore-installed \
96111 --break-system-packages \
97- matplotlib
112+ " ${PYTHON_PACKAGES[@]} "
You can’t perform that action at this time.
0 commit comments