加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tmux-sim.sh 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
yangxi-shi 提交于 2024-11-07 17:14 . gdb added
#gnome-terminal
#!/bin/bash
# kill and new
tmux kill-session -t flag
tmux new-session -s flag -n egov2 -d
#set mouse on
tmux set-option -g mouse on
# set windows split:
# 0 | 2 |
# 1 | 3 |
tmux split-window -h -t flag:egov2 -p 50
tmux split-window -v -t flag:egov2.0 -p 50
tmux split-window -v -t flag:egov2.2 -p 50
tmux split-window -v -t flag:egov2.3 -p 50
# running roscore
tmux select-pane -t flag:egov2.0
tmux send-keys "roscore" C-m
# running swarm comm node
tmux select-pane -t flag:egov2.1
tmux send-keys "sleep 1s" C-m
tmux send-keys "source devel/setup.bash" C-m
tmux send-keys "roslaunch --wait fsm_ctrl swarm.launch" C-m
# running offboard finite state machine node
tmux select-pane -t flag:egov2.2
tmux send-keys "sleep 1s" C-m
tmux send-keys "source devel/setup.bash" C-m
tmux send-keys "roslaunch --wait fsm_ctrl single.launch" C-m
# running egoV2-planner node
tmux select-pane -t flag:egov2.3
tmux send-keys "sleep 2s" C-m
tmux send-keys "source devel/setup.bash" C-m
tmux send-keys "roslaunch --wait ego_planner happy_sim.launch" C-m
tmux select-pane -t flag:egov2.4
tmux send-keys "sleep 2s" C-m
tmux send-keys "source devel/setup.bash" C-m
#tmux send-keys "rosbag record /mavros/local_position/pose /drone_0_planning/pos_cmd /ego_planner/flag_msg"
tmux attach-session -t flag
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化