-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bash alias 'ntmux' to autostart a tmux session, or join one, called 'auto' that is setup for Navigator runs * NaviGator/scripts: Add script for launching tmux windows/pane (closes #1302) --------- Co-authored-by: Cameron Brown <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters