This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 205
/
hover_vicon.launch
50 lines (40 loc) · 1.85 KB
/
hover_vicon.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0"?>
<launch>
<arg name="uri" default="radio://0/90/2M" />
<arg name="frame" default="/vicon/crazyflie/crazyflie" />
<arg name="joy_dev" default="/dev/input/js0" />
<arg name="x" default="0" />
<arg name="y" default="0" />
<arg name="z" default="0.5" />
<include file="$(find crazyflie_driver)/launch/crazyflie_server.launch">
</include>
<group ns="crazyflie">
<include file="$(find crazyflie_driver)/launch/crazyflie_add.launch">
<arg name="uri" value="$(arg uri)" />
<arg name="tf_prefix" value="crazyflie" />
<arg name="enable_logging" value="False" />
</include>
<node name="joy" pkg="joy" type="joy_node" output="screen">
<param name="dev" value="$(arg joy_dev)" />
</node>
<node name="joystick_controller" pkg="crazyflie_demo" type="controller.py" output="screen">
<param name="use_crazyflie_controller" value="True" />
</node>
<include file="$(find crazyflie_controller)/launch/crazyflie2.launch">
<arg name="frame" value="$(arg frame)" />
</include>
<node name="pose" pkg="crazyflie_demo" type="publish_pose.py" output="screen">
<param name="name" value="goal" />
<param name="rate" value="30" />
<param name="x" value="$(arg x)" />
<param name="y" value="$(arg y)" />
<param name="z" value="$(arg z)" />
</node>
<node pkg="tf" type="static_transform_publisher" name="baselink_broadcaster" args="0 0 0 0 0 0 1 $(arg frame) /crazyflie/base_link 100" />
</group>
<!-- run vicon bridge -->
<include file="$(find vicon_bridge)/launch/vicon.launch"/>
<!-- run rviz -->
<param name="robot_description" command="$(find xacro)/xacro.py $(find crazyflie_description)/urdf/crazyflie.urdf.xacro" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find crazyflie_demo)/launch/crazyflie_pos.rviz" required="true" />
</launch>