-
Notifications
You must be signed in to change notification settings - Fork 1
/
stack-start.sh
executable file
·74 lines (55 loc) · 1.57 KB
/
stack-start.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
init() {
tmux send-keys Enter
tmux send-keys 'source-ros'
tmux send-keys Enter
tmux send-keys 'source-work'
tmux send-keys Enter
}
sudo setenforce 0
xhost +si:localuser:root
if [ "$1" == "clean" ]; then
tmux kill-session -t stackcli
fi
docker-compose up -d zed rtabmap master velodyne navigation encoder_odom techbus
tmux new-session -d -s stackcli 'fish'
tmux select-window -t stackcli:0
tmux rename-window 'master'
tmux send-keys 'docker exec -it master bash'
init
tmux split-window -h 'fish'
tmux rename-window 'rtabmap'
tmux send-keys 'docker exec -it rtabmap bash'
init
tmux send-keys "roslaunch rtabmap_launch rtabmap.launch $2"
tmux send-keys Enter
tmux split-window -v 'fish'
tmux rename-window 'navigation'
tmux send-keys 'docker exec -it navigation bash'
init
tmux send-keys 'roslaunch scooter_launch move_base.launch'
tmux send-keys Enter
tmux split-window -v 'fish'
tmux rename-window 'zed'
tmux send-keys 'docker exec -it zed bash'
init
tmux send-keys 'roslaunch zed_launch zed_no_tf.launch'
tmux send-keys Enter
tmux split-window -h 'fish'
tmux rename-window 'velodyne'
tmux send-keys 'docker exec -it velodyne bash'
init
tmux send-keys 'roslaunch velodyne_pointcloud VLP16_points.launch'
tmux send-keys Enter
tmux split-window -v 'fish'
tmux rename-window 'techbus'
tmux send-keys 'docker exec -it techbus bash'
init
tmux send-keys 'rosrun src techbus.py'
tmux send-keys Enter
tmux split-window -h 'fish'
tmux rename-window 'encoder'
tmux send-keys 'docker exec -it encoder_odom bash'
init
tmux send-keys 'rosrun src encoder_odom.py'
tmux send-keys Enter