From dcb5b530c85ac78f0281144f00b9e3b1463831d1 Mon Sep 17 00:00:00 2001 From: To Doan Ngoc Hai Date: Mon, 25 Mar 2024 12:24:31 +0200 Subject: [PATCH] Update entrypoint_sitl_gzsim.sh --- packaging/entrypoint_sitl_gzsim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/entrypoint_sitl_gzsim.sh b/packaging/entrypoint_sitl_gzsim.sh index 3836a6ec9caf..4ac99c2472f1 100755 --- a/packaging/entrypoint_sitl_gzsim.sh +++ b/packaging/entrypoint_sitl_gzsim.sh @@ -20,6 +20,9 @@ case $PX4_VEHICLE_TYPE in export PX4_SYS_AUTOSTART=4440 export PX4_GZ_MODEL=skywalker_x8 ;; + custom) + # user is responsible for setting PX4_SYS_AUTOSTART and PX4_GZ_MODEL + ;; *) echo "ERROR: unknown vehicle type: $PX4_VEHICLE_TYPE" exit 1 @@ -29,7 +32,6 @@ esac export PX4_GZ_MODEL_NAME=$DRONE_DEVICE_ID export PX4_GZ_WORLD=${PX4_GZ_WORLD:-default} export GZ_PARTITION=sim -export GZ_RELAY=$(dig +short gazebo-server) export GZ_IP=${GZ_IP:-127.0.0.1} source /opt/ros/humble/setup.sh