2
<group if="$(optenv LEFT_HAND 0)">
3
<param name="sh_description" command="$(find xacro)/xacro.py '$(find sr_description)/robots/shadowhand_left_muscle.urdf.xacro'" />
5
<group unless="$(optenv LEFT_HAND 0)">
6
<param name="sh_description" command="$(find xacro)/xacro.py '$(find sr_description)/robots/shadowhand_muscle.urdf.xacro'" />
10
<node pkg="sr_hand" name="shadowhand"
11
type="shadowhand_virtual" >
12
<remap from="hand_description" to="sh_description"/>
13
<param name="gazebo_joint_states_prefix" type="string" value="gazebo/" />
14
<param name="shadowhand_prefix" type="string" value="srh/" />
15
<param name="publish_frequency_diagnostics" type="double" value="1.0" />
16
<param name="publish_frequency" type="double" value="20.0" />
19
<!-- Robot state publisher: publishes tf information regarding the
20
position of the hand -->
21
<node pkg="robot_state_publisher" type="state_publisher"
22
name="srh_robot_state_publisher_pos">
23
<remap from="robot_description" to="sh_description"/>
24
<remap from="joint_states" to="srh/position/joint_states" />
25
<param name="publish_frequency" type="double" value="10.0" />
26
<param name="tf_prefix" type="string" value="srh/position" />
29
<!-- Robot state publisher: publishes tf information regarding the
30
targets of the hand -->
31
<node pkg="robot_state_publisher" type="state_publisher"
32
name="srh_robot_state_publisher_target">
33
<remap from="robot_description" to="sh_description"/>
34
<remap from="joint_states" to="srh/target/joint_states" />
35
<param name="publish_frequency" type="double" value="1.0" />
36
<param name="tf_prefix" type="string" value="srh/target" />
39
<node pkg="tf" type="static_transform_publisher" name="fixed_frame_pos_pub" args="0 0 0 0 0 0 /srh/position/forearm_muscle fixed 100" />
40
<node pkg="tf" type="static_transform_publisher" name="fixed_frame_target_pub" args="0 0 0 0 0 0 fixed /srh/target/forearm_muscle 100" />
43
<node pkg="diagnostic_aggregator" type="aggregator_node"
44
name="diagnostic_aggregator" >
45
<!-- Load the file you made above -->
46
<rosparam command="load"
47
file="$(find sr_hand)/shadowhand_analyzer.yaml" />