-
Notifications
You must be signed in to change notification settings - Fork 0
/
record.launch
49 lines (37 loc) · 1.96 KB
/
record.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
<!--
Record a bagfile with kuka_youbot
-->
<launch>
<!-- Set relevant parameters. -->
<param name="youBotHasBase" type="bool" value="true"/>
<param name="youBotHasArms" type="bool" value="true"/>
<param name="youBotDriverCycleFrequencyInHz" type="double" value="50.0"/>
<param name="youBotConfigurationFilePath" type="string" value="$(find youbot_driver)/config"/>
<param name="trajectoryActionServerEnable" type="bool" value="true"/>
<param name="trajectoryPositionGain" type="double" value="5.0"/>
<param name="trajectoryVelocityGain" type="double" value="0.0"/>
<!--
Initialize youBot arms by name. Each named arm must have a matching config
file. For example, the entry:
<param name="youBotArmName1" type="str" value="MyArm"/>
will attempt to initialize an arm using the config file "MyArm.cfg" in your
default configuration path.
To initialize multiple arms, simply define parameters naming each of them,
beginning with the parameter "youBotArmName1", then "youBotArmName2", etc.
-->
<!-- Default name values -->
<param name="youBotBaseName" type="str" value="youbot-base"/>
<param name="youBotArmName1" type="str" value="youbot-manipulator"/>
<!-- Start the driver. NOTE: Every joint topic is mapped to armName/joint_states -->
<node name="youbot_driver" pkg="youbot_driver_ros_interface" type="youbot_driver_ros_interface" output="screen">
<remap from="base/joint_states" to="/joint_states"/>
<remap from="arm_1/joint_states" to="/joint_states"/>
</node>
<!-- upoad URDF model to the parameter server -->
<param name="robot_description" command="$(find xacro)/xacro.py '$(find youbot_description)/robots/youbot.urdf.xacro'"/>
<!-- start robot_state_publisher -->
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher" output="screen"/>
<node name="hokuyo_node" pkg="hokuyo_node"
type="hokuyo_node" />
<node pkg="rosbag" type="record" name="robot_bag" args="-o robot_bag -a" />
</launch>