ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I haven't used ardrone_autonomy in a while, but it is does have a launch file that shows you how to do this (this is a direct copy and paste):

<?xml version="1.0"?> 
<!-- Example launch file for multiple AR Drones -->
<launch>
  <!-- Include the ardrone launch file for each drone.
       IMPORTANT: Ensure the namespace for each include is unique. -->

  <group ns="ardrone1">
    <param name="tf_prefix" value="ardrone1" />
    <include file="$(find ardrone_autonomy)/launch/ardrone.launch">
      <arg name="ip" value="192.168.1.152" />
      <!-- Choose ultrasound frequencies to help reduce interference between drones.
           Available values are '7' or '8'. -->
      <arg name="freq" value="7" />
    </include>
  </group>

  <!-- Add second drone -->
  <group ns="ardrone2">
    <param name="tf_prefix" value="ardrone2" />
    <include file="$(find ardrone_autonomy)/launch/ardrone.launch">
      <arg name="ip" value="192.168.1.157" />
      <arg name="freq" value="8" />
    </include>
  </group>

</launch>

Notice the use of the <group> tags with the ns attribute and the tf_prefix param.