~shadowrobot/sr-ros-interface/trunk

« back to all changes in this revision

Viewing changes to sr_description/hand/xacro/thumb/thhub.urdf.xacro

  • Committer: Ugo Cupcic
  • Date: 2012-07-23 12:23:41 UTC
  • Revision ID: ugo@shadowrobot.com-20120723122341-vlkm85bisxyv2wsw
just moved all the models out of sr_hand into sr_description, not rewritten yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<robot xmlns:xacro="http://ros.org/wiki/xacro"
 
2
       xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
 
3
       xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
 
4
       xmlns:joint="http://playerstage.sourceforge.net/gazebo/xmlschema/#slider"
 
5
       xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
 
6
       xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body"
 
7
       xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom">
 
8
 
 
9
  <include filename="$(find sr_hand)/model/hand_urdf/thumb/thhub.transmission.xacro" />
 
10
 
 
11
  <xacro:macro name="thhub" params="parent">
 
12
 
 
13
    <link name="thhub">
 
14
      <inertial>
 
15
        <mass value="0.002" />
 
16
        <origin xyz="0 0 0" rpy="0 0 0"/>
 
17
        <inertia  ixx="0.1" ixy="0.0"  ixz="0.0"  iyy="0.1"  iyz="0.0"
 
18
        izz="0.1" />
 
19
      </inertial>
 
20
      <visual>
 
21
        <origin xyz="0 0 0" rpy="0 0 0" />
 
22
        <geometry name="thhub_visual">
 
23
        <box size="0.001 0.001 0.001" />
 
24
      </geometry>
 
25
      <material name="shadow_thhub_material">
 
26
          <color rgba="0.7 0.7 0.7 1.0"/>
 
27
        </material>
 
28
      </visual>
 
29
      <collision>
 
30
        <origin xyz="0 0 0" rpy="0 0 0 " />
 
31
        <geometry name="thhub_collision_geom">
 
32
          <box size="0.001 0.001 0.001" />
 
33
        </geometry>
 
34
      </collision>
 
35
    </link>
 
36
    <gazebo reference="thhub">
 
37
      <sensor:contact name="thhub_contact_sensor">
 
38
        <geom>thhub_geom</geom>
 
39
       <updateRate>100.0</updateRate>
 
40
        <controller:gazebo_ros_bumper name="thhub_gazebo_ros_bumper_controller" plugin="libgazebo_ros_bumper.so">
 
41
          <alwaysOn>true</alwaysOn>
 
42
          <updateRate>100.0</updateRate>
 
43
          <frameName>thhub</frameName>
 
44
          <bumperTopicName>thhub_bumper</bumperTopicName>
 
45
          <interface:bumper name="thhub_gazebo_ros_bumper_iface" />
 
46
        </controller:gazebo_ros_bumper>
 
47
      </sensor:contact>
 
48
      <material>Gazebo/Grey</material>
 
49
    </gazebo>
 
50
 
 
51
    <joint name="THJ3" type="revolute">
 
52
      <parent link="${parent}"/>
 
53
      <child link="thhub"/>
 
54
      <origin xyz="0 0 0.038" rpy="0 0 0" />
 
55
      <axis xyz="1 0 0" />
 
56
      <limit lower="-0.2618" upper="0.2618" effort="10"
 
57
      velocity="1.0" />
 
58
      <dynamics damping="50.5"/>
 
59
    </joint>
 
60
 
 
61
    <xacro:thhub_transmission />
 
62
 
 
63
  </xacro:macro>
 
64
 
 
65
</robot>