-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrobot_tmux_launcher.sh
executable file
·38 lines (27 loc) · 1.33 KB
/
robot_tmux_launcher.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
#!/bin/bash
source ~/.bashrc
tmux new-session -d -s flo
tmux rename-window startup
tmux send-keys 'roscore' Enter
tmux split-window -t flo
#tmux send-keys 'mon launch --name=flo_launcher flo_core flo_bringup.launch' Enter
tmux send-keys 'mkdir -p ~/flo_data && roslaunch --wait flo_core flo_bringup.launch record:=True' Enter # it is just more stable..
tmux split-window -t flo -h
tmux send-keys 'htop' Enter
tmux split-window -t flo -h
tmux send-keys 'cd ~/catkin_ws/src/FloSystem/flo_web/webrtc_robot_router/' Enter
tmux send-keys 'npm run tsc && pm2 start ./build/app.js && pm2 logs' Enter
# need to make this use a build version
tmux rotate-window -t flo
tmux split-window -t flo -h
#tmux send-keys 'mon launch --name=flo_launcher flo_core flo_bringup.launch' Enter
tmux send-keys 'sleep 20 && roslaunch --wait flo_telepresence realsense-sp-1.launch record:=True' Enter # it is just more stable..
tmux split-window -t flo
#tmux send-keys 'mon launch --name=flo_launcher flo_core flo_bringup.launch' Enter
tmux send-keys 'sleep 30 && roslaunch --wait flo_telepresence realsense-sp-2.launch record:=True' Enter # it is just more stable..
tmux new-window -t flo -n audio
tmux send-keys 'alsamixer' Enter
tmux split-window -t flo
tmux send-keys 'pacmd list-sinks|grep index' Enter
tmux send-keys 'pacmd set-default-sink'
tmux select-window -t flo -n