Skip to content

Commit 8e6d2eb

Browse files
authored
gz: fix model sdf path (#24488)
1 parent 543851d commit 8e6d2eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ elif [ "$PX4_SIMULATOR" = "gz" ] || [ "$(param show -q SIM_GZ_EN)" = "1" ]; then
125125
fi
126126

127127
echo "INFO [init] Spawning model"
128+
128129
# Spawn model
129130
${gz_command} service -s "/world/${PX4_GZ_WORLD}/create" --reqtype gz.msgs.EntityFactory \
130131
--reptype gz.msgs.Boolean --timeout 5000 \
131-
--req "sdf_filename: \"${PX4_GZ_MODELS}/${MODEL_NAME}\", name: \"${MODEL_NAME_INSTANCE}\", allow_renaming: false${POSE_ARG}" > /dev/null 2>&1
132+
--req "sdf_filename: \"${PX4_GZ_MODELS}/${MODEL_NAME}/model.sdf\", name: \"${MODEL_NAME_INSTANCE}\", allow_renaming: false${POSE_ARG}" > /dev/null 2>&1
132133

133134
# Start gz_bridge
134135
if ! gz_bridge start -w "${PX4_GZ_WORLD}" -n "${MODEL_NAME_INSTANCE}"; then

0 commit comments

Comments
 (0)