This commit is contained in:
äHuang77 2026-05-06 02:56:49 +00:00
parent c4e86b5e66
commit 0c898021eb
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ export TURTLEBOT3_MODEL=burger
```bash ```bash
echo 'source /opt/ros/humble/setup.bash' >> ~/.bashrc echo 'source /opt/ros/humble/setup.bash' >> ~/.bashrc
echo 'source ~/ros_ws/install/setup.bash' >> ~/.bashrc echo 'source /workspace/install/setup.bash' >> ~/.bashrc
echo 'export TURTLEBOT3_MODEL=burger' >> ~/.bashrc echo 'export TURTLEBOT3_MODEL=burger' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
``` ```

View File

@ -4,7 +4,7 @@ set -euo pipefail
ROOT="/workspace" ROOT="/workspace"
sleep 30 sleep 5
set +u set +u
source /opt/ros/humble/setup.bash source /opt/ros/humble/setup.bash
@ -35,7 +35,7 @@ GZSIM_PID=$!
echo "[autorun] tb3_gzsim pid=${GZSIM_PID}, log=${LOG_DIR}/tb3_gzsim.log" echo "[autorun] tb3_gzsim pid=${GZSIM_PID}, log=${LOG_DIR}/tb3_gzsim.log"
sleep 60 sleep 8
if ps -p "$GZSIM_PID" > /dev/null; then if ps -p "$GZSIM_PID" > /dev/null; then
echo "[autorun] tb3_gzsim is still running" echo "[autorun] tb3_gzsim is still running"