run_all.sh updated
This commit is contained in:
parent
41e745e19b
commit
6431727f4a
|
|
@ -42,8 +42,6 @@ NO_RVIZ=false
|
||||||
# 与 --gzweb 同用:只起 gz websocket(9002) 等资源,不起 office 内 npm run dev;页面用镜像内 /opt/gzweb(foundation)
|
# 与 --gzweb 同用:只起 gz websocket(9002) 等资源,不起 office 内 npm run dev;页面用镜像内 /opt/gzweb(foundation)
|
||||||
NO_GZWEB_VITE=false
|
NO_GZWEB_VITE=false
|
||||||
|
|
||||||
colcon build
|
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--explore) WITH_EXPLORE=true; shift ;;
|
--explore) WITH_EXPLORE=true; shift ;;
|
||||||
|
|
@ -86,6 +84,12 @@ fi
|
||||||
|
|
||||||
set +u
|
set +u
|
||||||
source /opt/ros/humble/setup.bash
|
source /opt/ros/humble/setup.bash
|
||||||
|
|
||||||
|
# 仅在 install 目录缺失时构建(避免每次启动都重复构建,同时修复未 source ROS 环境导致的 ament_cmake 找不到)
|
||||||
|
if [[ ! -d "${ROOT}/install" ]]; then
|
||||||
|
colcon build --symlink-install
|
||||||
|
fi
|
||||||
|
|
||||||
source "${ROOT}/install/setup.bash"
|
source "${ROOT}/install/setup.bash"
|
||||||
set -u
|
set -u
|
||||||
export TURTLEBOT3_MODEL="$ROBOT_MODEL"
|
export TURTLEBOT3_MODEL="$ROBOT_MODEL"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue