Browse Source

Fix the world path being corrupting when spawning none-default world

This fixes a bug, where the world file path was being corrupted when using non-default world paths
sbg
JaeyoungLim 4 years ago committed by Daniel Agar
parent
commit
c342ab91b3
  1. 2
      Tools/sitl_run.sh

2
Tools/sitl_run.sh

@ -112,7 +112,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then @@ -112,7 +112,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
fi
else
#Spawn empty world if world with model name doesn't exist
world_path= $verbose "${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
world_path="${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
fi
else
if [ -f ${src_path}/Tools/sitl_gazebo/worlds/${PX4_SITL_WORLD}.world ]; then

Loading…
Cancel
Save