-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecording.sh
36 lines (26 loc) · 1015 Bytes
/
recording.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/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 AI system
tmux new-window -t $SESSION:5 -n 'AI'
tmux send-keys -t 'AI' "rosrun stern4most_AI_AI2 stern4most_AI_Record_AI2.py" C-m
tmux join-pane -v -s 2 -t 1
tmux join-pane -h -s 5 -t 1
fi
# Attach Session, on the Main window
tmux attach-session -t $SESSION:1