-
Notifications
You must be signed in to change notification settings - Fork 320
/
kinova_robot.launch
38 lines (32 loc) · 1.94 KB
/
kinova_robot.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
<launch>
<arg name="use_urdf" default="true"/>
<arg name="kinova_robotType" default="j2n6s300" />
<arg name="kinova_robotName" default="$(arg kinova_robotType)"/>
<arg name="kinova_robotSerial" default="not_set" />
<arg name="use_jaco_v1_fingers" default="false" />
<arg name="feedback_publish_rate" default="0.1" />
<!-- If the node handles multiple robots uncomment this and configure /config/multiple_robots.yaml" -->
<rosparam file="$(find kinova_bringup)/launch/config/multiple_robots.yaml" command="load" />
<node name="$(arg kinova_robotName)_driver" pkg="kinova_driver" type="kinova_arm_driver" output="screen" cwd="node" args="$(arg kinova_robotType)">
<rosparam file="$(find kinova_bringup)/launch/config/robot_parameters.yaml" command="load" />
<param name="serial_number" value="$(arg kinova_robotSerial)" />
<param name="robot_name" value="$(arg kinova_robotName)" />
<param name="robot_type" value="$(arg kinova_robotType)" />
<param name="use_jaco_v1_fingers" value="$(arg use_jaco_v1_fingers)" />
<param name="status_interval_seconds" value="$(arg feedback_publish_rate)" />
</node>
<group unless="$(arg use_urdf)">
<node name="$(arg kinova_robotName)_tf_updater" pkg="kinova_driver" type="kinova_tf_updater" output="screen" cwd="node" args="$(arg kinova_robotType)">
<remap from="/$(arg kinova_robotName)_tf_updater/in/joint_angles" to="/$(arg kinova_robotName)_driver/out/joint_angles"/>
<param name="base_frame" value="root"/>
</node>
</group>
<group if="$(arg use_urdf)">
<param name="robot_description" command="$(find xacro)/xacro.py '$(find kinova_description)/urdf/$(arg kinova_robotType)_standalone.xacro'" />
<node name="$(arg kinova_robotName)_state_publisher"
pkg="robot_state_publisher"
type="robot_state_publisher">
<remap from="joint_states" to="/$(arg kinova_robotName)_driver/out/joint_state"/>
</node>
</group>
</launch>