Advertisement
Guest User

gazebo1.2.5 two sheeled robot

a guest
Jan 12th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.14 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <gazebo version='1.2'>
  3.   <model name="my_robot">
  4.     <link name='chassis'>
  5.       <pose>0 0 .1 0 0 0</pose>
  6.       <collision name='collision'>
  7.         <geometry>
  8.           <box>
  9.             <size>.4 .2 .1</size>
  10.           </box>
  11.         </geometry>
  12.         <surface>
  13.                 <contact>
  14.                     <ode><max_vel>0</max_vel></ode>
  15.                 </contact>
  16.         </surface>
  17.       </collision>
  18.  
  19.         <inertial>
  20.             <pose>0 0 0.1 0 0 0</pose>
  21.             <inertia>
  22.                 <ixx>0.01</ixx>
  23.                 <ixy>0</ixy>
  24.                 <ixz>0</ixz>
  25.                 <iyy>0.01</iyy>
  26.                 <iyz>0</iyz>
  27.                 <izz>0.01</izz>
  28.             </inertia>
  29.             <mass>10.0</mass>
  30.         </inertial>
  31.  
  32.       <visual name='visual'>
  33.         <geometry>
  34.           <box>
  35.             <size>.4 .2 .1</size>
  36.           </box>
  37.         </geometry>
  38.       </visual>
  39.  
  40.       <collision name='caster_collision'>
  41.         <pose>-0.15 0 -0.05 0 0 0</pose>
  42.         <geometry>
  43.           <sphere>
  44.           <radius>.05</radius>
  45.             </sphere>
  46.         </geometry>
  47.  
  48.       <surface>
  49.         <friction>
  50.           <ode>
  51.             <mu>0</mu>
  52.             <mu2>0</mu2>
  53.             <slip1>1.0</slip1>
  54.             <slip2>1.0</slip2>
  55.           </ode>
  56.         </friction>
  57.  
  58.                 <contact>
  59.                     <ode><max_vel>0</max_vel></ode>
  60.                 </contact>
  61.       </surface>
  62.     </collision>
  63.  
  64.     <visual name='caster_visual'>
  65.       <pose>-0.15 0 -0.05 0 0 0</pose>
  66.       <geometry>
  67.         <sphere>
  68.           <radius>.05</radius>
  69.         </sphere>
  70.       </geometry>
  71.     </visual>
  72.   </link>    
  73.   <link name="left_wheel">
  74.     <pose>0.1 0.13 0.1 0 1.5707 1.5707</pose>
  75.     <collision name="collision">
  76.       <geometry>
  77.         <cylinder>
  78.           <radius>.1</radius>
  79.           <length>.05</length>
  80.         </cylinder>
  81.       </geometry>
  82.  
  83.             <surface>
  84.                 <contact>
  85.                     <ode><max_vel>0</max_vel></ode>
  86.                 </contact>
  87.             </surface>
  88.     </collision>
  89.     <visual name="visual">
  90.       <geometry>
  91.         <cylinder>
  92.           <radius>.1</radius>
  93.           <length>.05</length>
  94.         </cylinder>
  95.       </geometry>
  96.     </visual>
  97.   </link>
  98.  
  99.   <link name="right_wheel">
  100.     <pose>0.1 -0.13 0.1 0 1.5707 1.5707</pose>
  101.     <collision name="collision">
  102.       <geometry>
  103.         <cylinder>
  104.           <radius>.1</radius>
  105.           <length>.05</length>
  106.         </cylinder>
  107.       </geometry>
  108.             <surface>
  109.                 <contact>
  110.                     <ode><max_vel>0</max_vel></ode>
  111.                 </contact>
  112.             </surface>
  113.     </collision>
  114.  
  115.     <visual name="visual">
  116.       <geometry>
  117.         <cylinder>
  118.           <radius>.1</radius>
  119.           <length>.05</length>
  120.         </cylinder>
  121.       </geometry>
  122.     </visual>
  123.   </link>
  124.   <joint type="revolute" name="left_wheel_hinge">
  125.     <pose>0 0 -0.03 0 0 0</pose>
  126.     <child>left_wheel</child>
  127.     <parent>chassis</parent>
  128.     <axis>
  129.       <xyz>0 1 0</xyz>
  130.     </axis>
  131.   </joint>
  132.  
  133.   <joint type="revolute" name="right_wheel_hinge">
  134.     <pose>0 0 0.03 0 0 0</pose>
  135.     <child>right_wheel</child>
  136.     <parent>chassis</parent>
  137.     <axis>
  138.       <xyz>0 1 0</xyz>
  139.     </axis>
  140.   </joint>
  141.    </model>
  142. </gazebo>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement