forked from ANYbotics/anymal_c_simple_description
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstandalone.launch
39 lines (32 loc) · 1.6 KB
/
standalone.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
<?xml version="1.0" encoding="utf-8"?>
<launch>
<!-- Name of the robot description parameter -->
<arg name="description_name" default="anymal_description"/>
<!-- Set robot description path -->
<arg name="description_file" default="$(find anymal_c_simple_description)/urdf/anymal.urdf"/>
<!-- Joint state topic name -->
<arg name="joint_states_topic" default="/joint_states"/>
<!-- Load robot description -->
<include file="$(find anymal_c_simple_description)/launch/load.launch">
<arg name="description_name" value="$(arg description_name)"/>
<arg name="description_file" value="$(arg description_file)"/>
</include>
<!-- Joint state publisher -->
<node name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" output="screen">
<param name="use_gui" value="true"/>
<param name="rate" value="100"/>
<remap from="robot_description" to="$(arg description_name)"/>
<remap from="joint_states" to="$(arg joint_states_topic)"/>
</node>
<!-- Robot state publisher -->
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen">
<param name="publish_frequency" value="100"/>
<param name="use_tf_static" value="true"/>
<remap from="robot_description" to="$(arg description_name)"/>
<remap from="joint_states" to="$(arg joint_states_topic)"/>
</node>
<!-- RViz -->
<node name="rviz" pkg="rviz" type="rviz"
args="-d $(find anymal_c_simple_description)/config/rviz/standalone.rviz"
output="screen"/>
</launch>