Advertisement
Guest User

omniwheels.urdf.xacro

a guest
Apr 1st, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.18 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <robot xmlns:xacro="http://ros.org/wiki/xacro">
  3.     <!--
  4.        The entire omniwheels are within a gazebo element because that way,
  5.        they're ignored altogether by URDF. The reason for this is that they use
  6.        a revolute2 joint type which is unsupported by URDF. Gazebo does support
  7.        this and it is only needed for simulation.
  8.    -->
  9.     <gazebo>
  10.         <link name="front_wheel">
  11.             <pose>0.18 0 0.0625 1.57079632679 0 0</pose>
  12.             <inertial>
  13.                 <mass>1.0</mass>
  14.                 <inertia>
  15.                     <ixx>0.0078</ixx>
  16.                     <ixy>0</ixy><iyy>0.0078</iyy>
  17.                     <ixz>0</ixz><iyz>0</iyz><izz>0.0078</izz>
  18.                 </inertia>
  19.             </inertial>
  20.             <collision name="front_wheel_geom">
  21.                 <geometry>
  22.                     <sphere><radius>0.0625</radius></sphere>
  23.                 </geometry>
  24.                 <surface>
  25.                     <contact><ode>
  26.                         <kp>1000000.0</kp>
  27.                         <kd>1.0</kd>
  28.                         <max_vel>100.0</max_vel>
  29.                         <min_depth>0.0</min_depth>
  30.                     </ode></contact>
  31.                 </surface>
  32.             </collision>
  33.             <visual name="front_wheel_visual">
  34.                 <geometry>
  35.                     <sphere><radius>0.0625</radius></sphere>
  36.                 </geometry>
  37.                 <material><script>
  38.                     <name>Gazebo/Black</name>
  39.                     <uri>__default__</uri>
  40.                 </script></material>
  41.             </visual>
  42.         </link>
  43.         <link name="rear_wheel">
  44.             <pose>-0.18 0 0.0625 1.57079632679 0 0</pose>
  45.             <inertial>
  46.                 <mass>1.0</mass>
  47.                 <inertia>
  48.                     <ixx>0.0078</ixx>
  49.                     <ixy>0</ixy><iyy>0.0078</iyy>
  50.                     <ixz>0</ixz><iyz>0</iyz><izz>0.0078</izz>
  51.                 </inertia>
  52.             </inertial>
  53.             <collision name="rear_wheel_geom">
  54.                 <geometry>
  55.                     <sphere><radius>0.0625</radius></sphere>
  56.                 </geometry>
  57.                 <surface>
  58.                     <contact><ode>
  59.                         <kp>1000000.0</kp>
  60.                         <kd>1.0</kd>
  61.                         <max_vel>100.0</max_vel>
  62.                         <min_depth>0.0</min_depth>
  63.                     </ode></contact>
  64.                 </surface>
  65.             </collision>
  66.             <visual name="rear_wheel_visual">
  67.                 <geometry>
  68.                     <sphere><radius>0.0625</radius></sphere>
  69.                 </geometry>
  70.                 <material><script>
  71.                     <name>Gazebo/Black</name>
  72.                     <uri>__default__</uri>
  73.                 </script></material>
  74.             </visual>
  75.         </link>        
  76.         <joint name="front_wheel_axle" type="revolute2">
  77.             <parent>lower_part</parent>
  78.             <child>front_wheel</child>
  79.             <axis>
  80.                 <xyz>0 1 0</xyz>
  81.                 <limit>
  82.                     <lower/><upper/>
  83.                     <effort>10</effort>
  84.                     <velocity>1.68</velocity>
  85.                 </limit>
  86.             </axis>
  87.             <axis2>
  88.                 <xyz>1 0 0</xyz>
  89.                 <limit>
  90.                     <lower/><upper/>
  91.                     <effort>10</effort>
  92.                     <velocity>1.68</velocity>
  93.                 </limit>
  94.             </axis2>
  95.         </joint>
  96.         <joint name="rear_wheel_axle" type="revolute2">
  97.             <parent>lower_part</parent>
  98.             <child>rear_wheel</child>
  99.             <axis>
  100.                 <xyz>0 1 0</xyz>
  101.                 <limit>
  102.                     <lower/><upper/>
  103.                     <effort>10</effort>
  104.                     <velocity>1.68</velocity>
  105.                 </limit>
  106.             </axis>
  107.             <axis2>
  108.                 <xyz>1 0 0</xyz>
  109.                 <limit>
  110.                     <lower/><upper/>
  111.                     <effort>10</effort>
  112.                     <velocity>1.68</velocity>
  113.                 </limit>
  114.             </axis2>
  115.         </joint>
  116.     </gazebo>
  117. </robot>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement