add missing variable from .env file.

This commit is contained in:
Burak Ozter 2024-10-28 09:50:49 -03:00
parent 7acee12640
commit fc52a3522f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ fi
cd ./models/$DRONE_MODEL
for (( j=0; j<$SIM_DRONE_COUNT; j++ ));
do
xacro -v fdm_port_in:=$((9002 + ($j * 10))) model.xacro.sdf -o model.sdf
xacro -v fdm_port_in:=$(($FDM_PORT_IN + ($j * 10))) model.xacro.sdf -o model.sdf
value=$(</home/gz-workspace/ardupilot_gazebo/models/$DRONE_MODEL/model.sdf)
#-string is better than using -file option. File is not up to date in the next iteration.
ros2 run ros_gz_sim create -world $WORLD_NAME -string "$value" -name spiri-$j -x $j -y 0 -z 0.195