-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrommel.sh
executable file
·63 lines (47 loc) · 2.08 KB
/
rommel.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
#!/bin/sh
# Set Session Name
SESSION="stern4most"
SESSIONEXISTS=$(tmux list-sessions | grep $SESSION)
# Only create tmux session if it doesn't already exist
if [ "$SESSIONEXISTS" = "" ]
then
# Start New Session with our name
tmux new-session -d -s $SESSION
# start rommel
tmux rename-window -t 0 'gazebo'
tmux send-keys -t 'gazebo' 'rommel' C-m
# start pilot system
tmux new-window -t $SESSION:1 -n 'ControlCenter'
tmux send-keys -t 'ControlCenter' 'rosrun stern4most_pilot_AI2 stern4most_pilot_AI2.py' C-m
# start dashboard system
tmux new-window -t $SESSION:2 -n 'dashboard'
tmux send-keys -t 'dashboard' "rosrun stern4most_dashboard_AI2 stern4most_dashboard_AI2.py" C-m
# start vision system
tmux new-window -t $SESSION:3 -n 'vision'
tmux send-keys -t 'vision' "rosrun stern4most_vision_AI2 stern4most_vision_AI2.py" C-m
# start LIDAR system
tmux new-window -t $SESSION:4 -n 'LIDAR'
tmux send-keys -t 'LIDAR' "rosrun stern4most_lidar_AI2 stern4most_lidar_AI2.py" C-m
# start AI recording system
tmux new-window -t $SESSION:5 -n 'Record'
tmux send-keys -t 'Record' "rosrun stern4most_AI_AI2 stern4most_AI_Record_AI2.py" C-m
# start AI system
tmux new-window -t $SESSION:6 -n 'AI'
tmux send-keys -t 'AI' "rosrun stern4most_AI_AI2 stern4most_AI_AI2.py" C-m
tmux join-pane -v -s 2 -t 1
tmux join-pane -v -s 3 -t 1
tmux join-pane -v -s 4 -t 1
tmux join-pane -v -s 6 -t 1
tmux join-pane -h -s 5 -t 1
# start referee system
tmux new-window -t $SESSION:2 -n 'referee_service'
tmux send-keys -t 'referee' "rosrun referee referee_service.py -r 2 -s 16" C-m
tmux new-window -t $SESSION:3 -n 'communication'
tmux send-keys -t 'communication' "rosrun stern4most_communication_AI2 stern4most_communication_AI2.py" C-m
tmux new-window -t $SESSION:4 -n 'start_publisher'
tmux send-keys -t 'start_publisher' "rosrun referee start_publisher.py 1" C-m
tmux join-pane -v -s 3 -t 2
tmux join-pane -h -s 4 -t 2
fi
# Attach Session, on the Main window
tmux attach-session -t $SESSION:1