Skip to content

Commit

Permalink
NaviGator/scripts: Add script for launching tmux windows/pane (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Nov 5, 2024
1 parent 6b6eba0 commit ca78afe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NaviGator/scripts/tmux_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@
if tmux has-session -t auto; then
tmux a -t auto
else
# First window (panes)
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

# Second window (alarms, other panes)
sleep 1.5
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

# Return to the first window
tmux select-window -t auto:0
tmux a -t auto
fi

0 comments on commit ca78afe

Please sign in to comment.