I followed the instruction as mentioned here:-
https://dev.px4.io/en/simulation/multi-vehicle-simulation.html
when I run launch file
roslaunch px4 multi_uav_mavros_sitl.launch
works fine for default programme but when I added code for one more drone (UAV1 iris_3) and run
roslaunch px4 multi_uav_mavros_sitl.launch
I get following error message although I can see UAVs in Gazebo simulator.
[multi_uav_mavros_sitl.launch] is neither a launch file in package [px4] nor is [px4] a launch file name
The traceback for the exception was written to the log file.
here is the code which I added for 3rd UAV inside launch file:-
<group ns="uav3">
<arg name="fcu_url" default="udp://:14543@localhost:14558"/>
<arg name="gcs_url" value=""/>
<arg name="tgt_system" value="3"/>
<arg name="tgt_component" value="1"/>
<arg name="rcS3" default="$(find px4)/posix-configs/SITL/init/$(arg est)/$(arg vehicle)_3"/>
<arg name="ID" value="3"/>
<include file="$(find px4)/launch/single_vehcile_spawn.launch">
<arg name="x" value="1"/>
<arg name="y" value="1"/>
<arg name="z" value="0"/>
<arg name="R" value="0"/>
<arg name="P" value="0"/>
<arg name="Y" value="0"/>
<arg name="vehicle" value="$(arg vehicle)"/>
<arg name="rcS" value="$(arg rcS3)"/>
<arg name="mavlink_udp_port" value="14563"/>
<arg name="ID" value="$(arg ID)"/>
</include>
<include file="$(find mavros)/launch/node.launch">
<arg name="pluginlists_yaml" value="$(arg pluginlists_yaml)" />
<arg name="config_yaml" value="$(arg config_yaml)" />
<arg name="fcu_url" value="$(arg fcu_url)" />
<arg name="gcs_url" value="$(arg gcs_url)" />
<arg name="tgt_system" value="$(arg tgt_system)" />
<arg name="tgt_component" value="$(arg tgt_component)" />
</include>
</group>