add gstreamer port
This commit is contained in:
parent
834a71b298
commit
5639f03d46
|
@ -21,7 +21,7 @@ fi
|
|||
cd /ardupilot_gazebo/models/$DRONE_MODEL
|
||||
for (( j=0; j<$SIM_DRONE_COUNT; j++ ));
|
||||
do
|
||||
xacro -v fdm_port_in:=$(($FDM_PORT_IN + ($j * 10))) model.xacro.sdf -o model.sdf
|
||||
xacro -v gstreamer_udp_port:=$(($GSTREAMER_UDP_PORT + ($j * 10))) fdm_port_in:=$(($FDM_PORT_IN + ($j * 10))) model.xacro.sdf -o model.sdf
|
||||
value=$(</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 ##Possible read from text file for formation of drones.
|
||||
|
|
Loading…
Reference in New Issue