Skip to content

Commit 7684459

Browse files
author
Giuseppe Quaratino
committed
Add shell script for setting up tech stack, need to add UI and object detection setup
1 parent 9bc2857 commit 7684459

File tree

2 files changed

+47
-67
lines changed

2 files changed

+47
-67
lines changed

ros2/cmd/src/object_localization.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

ros2/start_tech.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

0 commit comments

Comments
 (0)