Advertisement
sadransh

Untitled

Oct 2nd, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.26 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <launch>
  3.   <arg name="joy_dev" default="/dev/input/js0" />
  4.  
  5.   <arg name="uri1" default="radio://0/100/2M/E7E7E7E701" />
  6.   <arg name="frame1" default="crazyflie" />
  7.   <arg name="x1" default="0" />
  8.   <arg name="y1" default="0.0" />
  9.   <arg name="z1" default="0.5" />
  10.  
  11.   <arg name="uri2" default="radio://0/100/2M/E7E7E7E702" />
  12.   <arg name="frame2" default="mycf2" />
  13.   <arg name="x2" default="0" />
  14.   <arg name="y2" default="-0.75" />
  15.   <arg name="z2" default="0.5" />
  16.  
  17.   <include file="$(find crazyflie_driver)/launch/crazyflie_server.launch">
  18.   </include>
  19.  
  20.   <node name="joy" pkg="joy" type="joy_node" output="screen">
  21.     <param name="dev" value="$(arg joy_dev)" />
  22.   </node>
  23.  
  24.   <group ns="crazyflie1">
  25.     <include file="$(find crazyflie_driver)/launch/crazyflie_add.launch">
  26.       <arg name="uri" value="$(arg uri1)" />
  27.       <arg name="tf_prefix" value="crazyflie1" />
  28.       <arg name="enable_logging" value="False" />
  29.     </include>
  30.  
  31.     <node name="joystick_controller" pkg="crazyflie_demo" type="controller.py" output="screen">
  32.       <param name="use_crazyflie_controller" value="True" />
  33.       <param name="joy_topic" value="/joy" />
  34.     </node>
  35.  
  36.     <include file="$(find crazyflie_controller)/launch/crazyflie2.launch">
  37.       <arg name="frame" value="$(arg frame1)" />
  38.     </include>
  39.  
  40.     <node name="pose" pkg="crazyflie_demo" type="publish_pose.py" output="screen">
  41.       <param name="name" value="goal" />
  42.       <param name="rate" value="10" />
  43.       <param name="x" value="$(arg x1)" />
  44.       <param name="y" value="$(arg y1)" />
  45.       <param name="z" value="$(arg z1)" />
  46.     </node>
  47.  
  48.     <node pkg="tf" type="static_transform_publisher" name="baselink_broadcaster" args="0 0 0 0 0 0 1 $(arg frame1) /crazyflie1/base_link 100" />
  49.   </group>
  50.  
  51.   <group ns="crazyflie2">
  52.     <include file="$(find crazyflie_driver)/launch/crazyflie_add.launch">
  53.       <arg name="uri" value="$(arg uri2)" />
  54.       <arg name="tf_prefix" value="crazyflie2" />
  55.       <arg name="enable_logging" value="False" />
  56.     </include>
  57.  
  58.     <node name="joystick_controller" pkg="crazyflie_demo" type="controller.py" output="screen">
  59.       <param name="use_crazyflie_controller" value="True" />
  60.       <param name="joy_topic" value="/joy" />
  61.     </node>
  62.  
  63.     <include file="$(find crazyflie_controller)/launch/crazyflie2.launch">
  64.       <arg name="frame" value="$(arg frame2)" />
  65.     </include>
  66.  
  67.     <node name="pose" pkg="crazyflie_demo" type="publish_pose.py" output="screen">
  68.       <param name="name" value="goal" />
  69.       <param name="rate" value="10" />
  70.       <param name="x" value="$(arg x2)" />
  71.       <param name="y" value="$(arg y2)" />
  72.       <param name="z" value="$(arg z2)" />
  73.     </node>
  74.  
  75.     <node pkg="tf" type="static_transform_publisher" name="baselink_broadcaster" args="0 0 0 0 0 0 1 $(arg frame2) /crazyflie2/base_link 100" />
  76.   </group>
  77.  
  78.   <!-- run vicon bridge -->
  79.   <!--
  80.  <include file="$(find vicon_bridge)/launch/vicon.launch"/>
  81. -->
  82.   <!-- run rviz -->
  83.   <!-- <param name="robot_description" command="$(find xacro)/xacro.py $(find crazyflie_description)/urdf/crazyflie.urdf.xacro" />
  84.  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find crazyflie_demo)/launch/crazyflie_pos_multi.rviz" required="true" /> -->
  85.  
  86. </launch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement