start_roboos.sh
Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/start_roboos.sh
#!/bin/bash
# 设置工作空间
WORKSPACE="$HOME/workspace/fmc3-robotics/projects"
SESSION="robo_vscode"
# 检查是否已存在,存在则杀掉重建(防止残留)
tmux kill-session -t $SESSION 2>/dev/null
# 创建新会话 - 窗口 1: Skill
tmux new-session -d -s $SESSION -n "Skill"
tmux send-keys -t $SESSION:Skill "conda activate fourier-robot" C-m
tmux send-keys -t $SESSION:Skill "cd $WORKSPACE/RoboSkill/fmc3-robotics/fourier/gr2 && python skill.py" C-m
# 切分屏幕运行 Brain
tmux split-window -h -t $SESSION:Skill
tmux send-keys -t $SESSION:Skill "conda activate robobrain" C-m
tmux send-keys -t $SESSION:Skill "cd $WORKSPACE/RoboBrain2.0 && bash startup.sh" C-m
# 创建窗口 2: RoboOS
tmux new-window -t $SESSION -n "RoboOS"
# 上半部分: Master
tmux send-keys -t $SESSION:RoboOS "conda activate roboos" C-m
tmux send-keys -t $SESSION:RoboOS "cd $WORKSPACE/RoboOS/master && python run.py" C-m
# 切分下半部分
tmux split-window -v -t $SESSION:RoboOS
# 左下: Slaver
tmux send-keys -t $SESSION:RoboOS "conda activate roboos" C-m
tmux send-keys -t $SESSION:RoboOS "cd $WORKSPACE/RoboOS/slaver && python run.py" C-m
# 切分右下: Deploy
tmux split-window -h -t $SESSION:RoboOS
tmux send-keys -t $SESSION:RoboOS "conda activate roboos" C-m
tmux send-keys -t $SESSION:RoboOS "cd $WORKSPACE/RoboOS/deploy && python run.py" C-m
# 挂载到当前终端
tmux attach-session -t $SESSION
Artigos relacionados
alloc.c
alloc.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/alloc.c).
Ler artigo →hello.c
hello.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/hello.c).
Ler artigo →mlock_demo.c
mlock_demo.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/mlock_demo.c).
Ler artigo →debug_perf.py
debug_perf.py — python source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/debug_perf.py).
Ler artigo →inference.py
inference.py — python source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/inference.py).
Ler artigo →startup.sh
startup.sh — bash source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/startup.sh).
Ler artigo →