-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.bash
executable file
·36 lines (28 loc) · 1.66 KB
/
launch.bash
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/bash
session="go_bot"
catkin_ws_path="/home/peterjochem/Desktop/Go_Bot/catkin_ws/"
catkin_source_path="${catkin_ws_path}devel/setup.bash"
tmux new -s $session -d
tmux rename-window -t 0 'roscore'
tmux send-keys -t "go_bot:roscore" "source ${ros_source_path}" C-m
tmux send-keys -t "go_bot:roscore" "source ${catkin_source_path}" C-m
tmux send-keys -t "go_bot:roscore" "roscore" C-m
sleep 2
tmux new-window -t $session:1 -n 'interobotix'
tmux send-keys -t "go_bot:interobotix" "source ${catkin_source_path}" C-m
tmux send-keys -t "go_bot:interobotix" "roslaunch --wait interbotix_moveit interbotix_moveit.launch robot_name:=rx200 use_gazebo:=true" C-m
tmux new-window -t $session:2 -n 'go_motion_planning'
tmux send-keys -t "go_bot:go_motion_planning" "source ${catkin_source_path}" C-m
tmux send-keys -t "go_bot:go_motion_planning" "roslaunch --wait go_motion_planning launch.launch" C-m
tmux new-window -t $session:3 -n 'manipulate_gazebo'
tmux send-keys -t "go_bot:manipulate_gazebo" "source ${catkin_source_path}" C-m
tmux send-keys -t "go_bot:manipulate_gazebo" "rosrun go_motion_planning manipulate_gazebo.py" C-m
tmux new-window -t $session:4 -n 'game_server'
tmux send-keys -t "go_bot:game_server" "source ${catkin_source_path}" C-m
tmux send-keys -t "go_bot:game_server" "cd ${catkin_ws_path}src/go_bot_server/src/server" C-m
tmux send-keys -t "go_bot:game_server" "uvicorn main:app --reload" C-m
tmux new-window -t $session:6 -n 'react-frontend'
tmux send-keys -t "go_bot:react-frontend" cd go_browser/src/go_bot" C-m
tmux send-keys -t "go_bot:react-frontend" "nvm use v16.1.0" C-m
tmux send-keys -t "go_bot:react-frontend" "npm start" C-m
echo "To attatch, run tmux a -t go_bot"