mirror of
https://github.com/bjoernellens1/cps_loki.git
synced 2024-11-22 23:33:50 +00:00
Add device mappings for /dev/dri and /dev/snd
Install additional dependencies for image processing Add ros2_whisper repository
This commit is contained in:
parent
f3c0777db7
commit
f17bec16c6
@ -68,6 +68,9 @@ services:
|
|||||||
- linux/amd64
|
- linux/amd64
|
||||||
command: |
|
command: |
|
||||||
/bin/bash
|
/bin/bash
|
||||||
|
devices:
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
- /dev/snd:/dev/snd
|
||||||
# Robot State Publisher
|
# Robot State Publisher
|
||||||
robot_state_publisher:
|
robot_state_publisher:
|
||||||
extends: overlay
|
extends: overlay
|
||||||
@ -134,6 +137,17 @@ services:
|
|||||||
devices:
|
devices:
|
||||||
- /dev/dri:/dev/dri
|
- /dev/dri:/dev/dri
|
||||||
|
|
||||||
|
whisper:
|
||||||
|
extends: overlay
|
||||||
|
command: >
|
||||||
|
ros2 launch whisper_bringup bringup.launch.py n_thread:=20
|
||||||
|
#privileged: true
|
||||||
|
devices:
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
# - /dev/snd/controlC0:/dev/snd/controlC0 #/dev/snd:/dev/snd
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
###################################################################################################################################
|
###################################################################################################################################
|
||||||
# Webgui Supervision via Foxglove Studio #
|
# Webgui Supervision via Foxglove Studio #
|
||||||
###################################################################################################################################
|
###################################################################################################################################
|
||||||
|
@ -61,7 +61,7 @@ WORKDIR /overlay_ws
|
|||||||
|
|
||||||
RUN source /bot_mini_ws/install/setup.bash \
|
RUN source /bot_mini_ws/install/setup.bash \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y ros-${ROS_DISTRO}-image-transport ros-${ROS_DISTRO}-cv-bridge \
|
&& apt-get install -y ros-${ROS_DISTRO}-image-transport ros-${ROS_DISTRO}-cv-bridge wget python3-pyaudio python3-pynput python3-pip \
|
||||||
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
||||||
&& colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo\
|
&& colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo\
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -18,3 +18,8 @@ repositories:
|
|||||||
type: git
|
type: git
|
||||||
url: https://github.com/bjoernellens1/cps_loki_bringup
|
url: https://github.com/bjoernellens1/cps_loki_bringup
|
||||||
version: main
|
version: main
|
||||||
|
|
||||||
|
ros2_whisper:
|
||||||
|
type: git
|
||||||
|
url: https://github.com/ros-ai/ros2_whisper
|
||||||
|
version: main
|
12
pyaudiotest.py
Normal file
12
pyaudiotest.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# pyaudio test bluetooth headset
|
||||||
|
|
||||||
|
import pyaudio
|
||||||
|
|
||||||
|
p = pyaudio.PyAudio()
|
||||||
|
|
||||||
|
for i in range(p.get_device_count()):
|
||||||
|
if (p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')) > 0:
|
||||||
|
print(p.get_device_info_by_index(i))
|
||||||
|
|
||||||
|
p.terminate()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user