/
basic_cartesian_example.launch
34 lines (29 loc) · 1.77 KB
/
basic_cartesian_example.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
<?xml version="1.0"?>
<launch>
<!-- By default we do not overwrite the URDF. Change the following to true to change the default behavior -->
<!-- The name of the parameter under which the URDF is loaded -->
<arg name="robot_description" default="robot_description"/>
<arg name="trajopt_description" default="trajopt_description"/>
<arg name="plotting" default="true"/>
<arg name="rviz" default="true"/>
<arg name="ifopt" default="false"/>
<arg name="debug" default="false"/>
<arg name="testing" default="false"/>
<!-- Load universal robot description format (URDF) -->
<param name="$(arg robot_description)" command="$(find xacro)/xacro --inorder '$(find tesseract_support)/urdf/lbr_iiwa_14_r820.xacro'" />
<!-- The semantic description that corresponds to the URDF -->
<param name="$(arg robot_description)_semantic" textfile="$(find tesseract_support)/urdf/lbr_iiwa_14_r820.srdf" />
<group unless="$(arg testing)">
<!-- If needed, broadcast static tf for robot root -->
<node pkg="tf" type="static_transform_publisher" name="virtual_joint_broadcaster_0" args="0 0 0 0 0 0 world base_link 100" />
<node pkg="tesseract_ros_examples" type="tesseract_ros_examples_basic_cartesian_example_node" name="tesseract_ros_examples_basic_cartesian_example_node" output="screen">
<param name="plotting" type="bool" value="$(arg plotting)"/>
<param name="rviz" type="bool" value="$(arg rviz)"/>
<param name="ifopt" type="bool" value="$(arg ifopt)"/>
<param name="debug" type="bool" value="$(arg debug)"/>
</node>
<!-- Launch visualization -->
<node if="$(arg rviz)" pkg="rviz" type="rviz" name="tesseract_ros_examples_basic_cartesian_example_rviz"
args="-d $(find tesseract_ros_examples)/config/examples.rviz" />
</group>
</launch>