File tree Expand file tree Collapse file tree 2 files changed +47
-67
lines changed Expand file tree Collapse file tree 2 files changed +47
-67
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+
4
+ if [ " $1 " == " clean" ]; then
5
+ tmux kill-session -t stackcli
6
+ fi
7
+
8
+ init () {
9
+ tmux send-keys Enter
10
+ tmux send-keys ' export ROS_MODE=true'
11
+ tmux send-keys Enter
12
+ tmux send-keys ' direnv reload'
13
+ tmux send-keys Enter
14
+ tmux send-keys ' source /opt/ros/humble/local_setup.bash'
15
+ tmux send-keys Enter
16
+ }
17
+
18
+ tmux new-session -d -s stackcli
19
+
20
+ tmux select-window -t stackcli:0
21
+ tmux rename-window ' Master'
22
+ init
23
+ tmux send-keys ' python3 techbus/src/techbus.py'
24
+ tmux send-keys Enter
25
+
26
+ tmux split-window -h
27
+ init
28
+ tmux send-keys ' python3 encoder_odom/src/encoder_odom.py'
29
+ tmux send-keys Enter
30
+
31
+ tmux select-pane -t 0
32
+ tmux split-window -v
33
+ init
34
+ tmux send-keys ' rviz2' # Include rviz2 configuration file with proper settings
35
+ tmux send-keys Enter
36
+
37
+ tmux select-pane -t 2
38
+ tmux split-window -v
39
+ init
40
+ tmux send-keys ' python3 cmd/src/main.py'
41
+ tmux send-keys Enter
42
+
43
+ # #### ADD NEW TMUX WINDOW FOR THE UI #####
44
+ # tmux new-window -n 'UI'
45
+ # tmux select-window -t 'UI'
46
+
47
+ tmux attach-session -t stackcli
You can’t perform that action at this time.
0 commit comments