Skip to content

Commit

Permalink
bash alias 'ntmux' to autostart a tmux session, or join one, called '…
Browse files Browse the repository at this point in the history
…auto' that is setup for Navigator runs
  • Loading branch information
alexoj46 committed Nov 4, 2024
1 parent 8b09f49 commit 6b6eba0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions NaviGator/scripts/tmux_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
if tmux has-session -t auto; then
tmux a -t auto
else
tmux new-session -d -s auto
tmux send-keys -t auto:0.0 'roslaunch navigator_launch master.launch --screen' Enter
tmux split-window -h -t auto
tmux split-window -v -t auto
tmux new-window -t auto
tmux split-window -h -t auto:1
tmux split-window -v -t auto:1
tmux split-window -v -t auto:1.0
sleep 1.5
tmux send-keys 'amonitor kill' Enter
tmux split-window -h
tmux send-keys 'amonitor hw-kill' Enter
tmux select-pane -t auto:1.0
tmux a -t auto
fi
1 change: 1 addition & 0 deletions scripts/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ alias gazebogui="rosrun gazebo_ros gzclient __name:=gzclient"

# Preflight aliases
alias preflight='python3 $MIL_REPO/mil_common/utils/mil_tools/scripts/mil-preflight/main.py'
alias ntmux='$MIL_REPO/NaviGator/scripts/tmux_start.sh'

# Process killing aliases
alias killgazebo="killall -9 gzserver && killall -9 gzclient"
Expand Down

0 comments on commit 6b6eba0

Please sign in to comment.