-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-entrypoint.sh
36 lines (29 loc) · 1.22 KB
/
docker-entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -e
# Setup catkin workspace
source "/opt/ros/$ROS_DISTRO/setup.sh" && catkin_make
source devel/setup.sh
# Setup ROS environment
echo "source \"/opt/ros/$ROS_DISTRO/setup.sh\"" >> /etc/bash.bashrc
echo "source /workspace/devel/setup.sh" >> /etc/bash.bashrc
# Setup executable files
chmod +x src/tm/scripts/launcher.py \
src/dummy_tm/scripts/launcher.py \
src/dm_generator/scripts/launcher.py \
src/dm_intent/scripts/launcher.py \
src/dm_intent/model_download_checkFile.sh \
src/km/scripts/launcher.py \
src/vision/scripts/launcher.py \
src/speech/scripts/stt_launcher.py \
src/speech/scripts/tts_launcher.py
# Download model checkpoints (for modules/DM_Intent)
./src/dm_intent/model_download_checkFile.sh
# Copy configuration examples
echo "n" | cp -i src/tm/configuration.json.example src/tm/configuration.json
echo "n" | cp -i src/dm_generator/configuration.json.example src/dm_generator/configuration.json
echo "n" | cp -i src/dm_intent/configuration.json.example src/dm_intent/configuration.json
# Print device list
echo "Camera device list" && v4l2-ctl --list-devices
echo "Microphone device list" && python3 -m sounddevice
# Execute CMD
exec "$@"