TheLegace

Untitled

Feb 18th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.34 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <sdf version='1.3'>
  3.   <model name="ales_robot">
  4.     <static>false</static>
  5.     <pose>0 0 0.085 0 0 1.57079633</pose>
  6.     <link name="base_link">
  7.       <pose>0 0 0.296 0 0 1.5707</pose>
  8.         <inertial>
  9.           <mass>20.0</mass>
  10.           <inertia>
  11.             <ixx>3.737</ixx>
  12.             <ixy>0.008</ixy>
  13.             <ixz>-0.144</ixz>
  14.             <iyy>8.311</iyy>
  15.             <iyz>-0.004</iyz>
  16.             <izz>8.893</izz>
  17.           </inertia>
  18.         </inertial>
  19.        
  20.         <collision name="chassis_geom">
  21.           <pose>0 0 0 0 0 0</pose>
  22.           <geometry>
  23.             <mesh>
  24.               <uri>model://ales_robot/meshes/chassis-suspension.dae</uri>
  25.             </mesh>
  26.           </geometry>
  27.         </collision>
  28.         <visual name="chassis_visual">
  29.           <pose>0 0 0 0 0 0</pose>
  30.           <geometry>
  31.             <mesh>
  32.               <uri>model://ales_robot/meshes/chassis-suspension.dae</uri>
  33.             </mesh>
  34.           </geometry>
  35.         </visual>
  36.     </link>
  37.     <link name="front_right_wheel_link">
  38.       <pose>-0.38500 0.515 0.0670 0 0 1.5707</pose>
  39.         <inertial>
  40.           <mass>1</mass>
  41.           <inertia>              
  42.             <ixx>0.5</ixx>
  43.             <ixy>0.0</ixy><iyy>0.5</iyy>
  44.             <ixz>0.0</ixz><iyz>0.0</iyz><izz>1.0</izz>
  45.           </inertia>
  46.         </inertial>
  47.       <collision name="front_right_wheel_geom">
  48.         <pose>0 0 0 0 0 0</pose>
  49.         <geometry>
  50.           <mesh>
  51.             <uri>model://ales_robot/meshes/wheel.dae</uri>
  52.           </mesh>
  53.          </geometry>
  54.         <surface>
  55.           <friction>
  56.             <ode>
  57.              <mu>100000.0</mu>
  58.              <mu2>100000.0</mu2>
  59.              <slip1>0.0</slip1>
  60.              <slip2>0.0</slip2>
  61.             </ode>
  62.           </friction>
  63.         </surface>      
  64.       </collision>
  65.       <visual name="front_right_wheel_visual">
  66.         <pose>0 0 0 0 0 0</pose>
  67.         <geometry>
  68.           <mesh>
  69.            <uri>model://ales_robot/meshes/wheel.dae</uri>
  70.           </mesh>
  71.         </geometry>
  72.       </visual>
  73.     </link>
  74.     <link name="front_left_wheel_link">
  75.       <pose>-0.38500 -0.4800 0.0670 0 0 -1.5707</pose>
  76.         <inertial>
  77.           <mass>1</mass>
  78.           <inertia>              
  79.             <ixx>0.5</ixx>
  80.             <ixy>0.0</ixy><iyy>0.5</iyy>
  81.             <ixz>0.0</ixz><iyz>0.0</iyz><izz>1.0</izz>
  82.           </inertia>
  83.         </inertial>
  84.         <collision name="front_left_wheel_geom">
  85.         <pose>0 0 0 0 0 0</pose>
  86.         <geometry>
  87.           <mesh>
  88.             <uri>model://ales_robot/meshes/wheel.dae</uri>
  89.           </mesh>
  90.          </geometry>
  91.         <surface>
  92.           <friction>
  93.             <ode>
  94.              <mu>100000.0</mu>
  95.              <mu2>100000.0</mu2>
  96.              <slip1>0.0</slip1>
  97.              <slip2>0.0</slip2>
  98.             </ode>
  99.           </friction>
  100.         </surface>      
  101.       </collision>
  102.       <visual name="front_left_wheel_visual">
  103.         <pose>0 0 0 0 0 0</pose>
  104.         <geometry>
  105.           <mesh>
  106.            <uri>model://ales_robot/meshes/wheel.dae</uri>
  107.           </mesh>
  108.         </geometry>
  109.       </visual>
  110.     </link>
  111.     <link name="rear_right_wheel_link">
  112.       <pose>0.38500 0.515 0.0670 0 0 1.5707</pose>
  113.         <inertial>
  114.           <mass>1</mass>
  115.           <inertia>              
  116.             <ixx>0.5</ixx>
  117.             <ixy>0.0</ixy><iyy>0.5</iyy>
  118.             <ixz>0.0</ixz><iyz>0.0</iyz><izz>1.0</izz>
  119.           </inertia>
  120.         </inertial>
  121.         <collision name="rear_right_wheel_geom">
  122.         <pose>0 0 0 0 0 0</pose>
  123.         <geometry>
  124.           <mesh>
  125.             <uri>model://ales_robot/meshes/wheel.dae</uri>
  126.           </mesh>
  127.          </geometry>
  128.         <surface>
  129.           <friction>
  130.             <ode>
  131.              <mu>100000.0</mu>
  132.              <mu2>100000.0</mu2>
  133.              <slip1>0.0</slip1>
  134.              <slip2>0.0</slip2>
  135.             </ode>
  136.           </friction>
  137.         </surface>      
  138.       </collision>
  139.       <visual name="rear_right_wheel_visual">
  140.         <pose>0 0 0 0 0 0</pose>
  141.         <geometry>
  142.           <mesh>
  143.            <uri>model://ales_robot/meshes/wheel.dae</uri>
  144.           </mesh>
  145.         </geometry>
  146.       </visual>
  147.     </link>
  148.     <link name="rear_left_wheel_link">
  149.       <pose>0.38500 -0.4800 0.0670 0 0 -1.5707</pose>
  150.         <inertial>
  151.           <mass>1</mass>
  152.           <inertia>              
  153.             <ixx>0.5</ixx>
  154.             <ixy>0.0</ixy><iyy>0.5</iyy>
  155.             <ixz>0.0</ixz><iyz>0.0</iyz><izz>1.0</izz>
  156.           </inertia>
  157.         </inertial>
  158.         <collision name="rear_left_wheel_geom">
  159.         <pose>0 0 0 0 0 0</pose>
  160.         <geometry>
  161.           <mesh>
  162.             <uri>model://ales_robot/meshes/wheel.dae</uri>
  163.           </mesh>
  164.          </geometry>
  165.         <surface>
  166.           <friction>
  167.             <ode>
  168.              <mu>100000.0</mu>
  169.              <mu2>100000.0</mu2>
  170.              <slip1>0.0</slip1>
  171.              <slip2>0.0</slip2>
  172.             </ode>
  173.           </friction>
  174.         </surface>      
  175.       </collision>
  176.       <visual name="rear_left_wheel_visual">
  177.         <pose>0 0 0 0 0 0</pose>
  178.         <geometry>
  179.           <mesh>
  180.            <uri>model://ales_robot/meshes/wheel.dae</uri>
  181.           </mesh>
  182.         </geometry>
  183.       </visual>
  184.     </link>
  185.     <joint name="front_right_wheel_joint" type='revolute'>
  186.       <pose>0 0 0 0 0 0</pose>
  187.         <parent>base_link</parent>
  188.         <child>front_right_wheel_link</child>
  189.         <axis>
  190.           <xyz>0 1 0</xyz>
  191.         </axis>
  192.     </joint>
  193.     <joint name="front_left_wheel_joint" type='revolute'>
  194.       <pose>0 0 0 0 0 0</pose>
  195.         <parent>base_link</parent>
  196.         <child>front_left_wheel_link</child>
  197.         <axis>
  198.           <xyz>0 1 0</xyz>
  199.         </axis>
  200.     </joint>
  201.     <joint name="rear_right_wheel_joint" type='revolute'>
  202.       <pose>0 0 0 0 0 0</pose>
  203.         <parent>base_link</parent>
  204.         <child>rear_right_wheel_link</child>
  205.         <axis>
  206.           <xyz>0 1 0</xyz>
  207.         </axis>
  208.     </joint>
  209.     <joint name="rear_left_wheel_joint" type='revolute'>
  210.         <pose>0 0 0 0 0 0</pose>
  211.           <parent>base_link</parent>
  212.           <child>rear_left_wheel_link</child>
  213.           <axis>
  214.             <xyz>0 1 0</xyz>
  215.           </axis>
  216.     </joint>
  217.    
  218.     <plugin name="gazebo_ros_controller_manager" filename="libgazebo_ros_controller_manager.so">
  219.       <alwaysOn>true</alwaysOn>
  220.       <updateRate>1000.0</updateRate>
  221.     </plugin>  
  222.     <plugin name="diff_drive" filename="libSkidSteerDriveROSPlugin.so">
  223.       <front_left_joint>front_left_wheel_joint</front_left_joint>
  224.       <front_right_joint>front_right_wheel_joint</front_right_joint>
  225.       <rear_left_joint>rear_left_wheel_joint</rear_left_joint>
  226.       <rear_right_joint>rear_right_wheel_joint</rear_right_joint>
  227.       <topicName>vel_cmd</topicName>
  228.       <torque>40</torque>
  229.     </plugin>  
  230.    
  231. <!--
  232.    <include>
  233.      <uri>model://camera</uri>
  234.      <pose>0.481 0 0.403 0 0 0</pose>
  235.  
  236.    </include>
  237.    
  238.    <joint name="camera_joint" type="revolute">
  239.      <child>camera::link</child>
  240.      <parent>base_link</parent>
  241.      <axis>
  242.        <xyz>0 0 1</xyz>
  243.        <limit>
  244.          <upper>0</upper>
  245.          <lower>0</lower>
  246.        </limit>
  247.      </axis>      
  248.    </joint>
  249. -->
  250.    
  251.     <link name='imu_link'>
  252.       <pose>0 0 0.20 0 0 0</pose>
  253.       <gravity>false</gravity>
  254.       <inertial>
  255.         <mass>0.1</mass>
  256.         <inertia>              
  257.           <ixx>0.001</ixx>
  258.           <ixy>0</ixy>
  259.           <ixz>0</ixz>
  260.           <iyy>0.001</iyy>
  261.           <iyz>0</iyz>
  262.           <izz>0.001</izz>
  263.         </inertia>
  264.       </inertial>      
  265.       <collision name='imu_collision'>
  266.         <geometry>
  267.           <box>
  268.             <size>0.01 0.01 0.01</size>
  269.           </box>
  270.         </geometry>
  271.       </collision>
  272.       <visual name='imu_visual'>
  273.         <geometry>
  274.           <box>
  275.             <size>0.01 0.01 0.01</size>
  276.           </box>
  277.         </geometry>
  278.       </visual>
  279.     </link>  
  280.     <joint type="revolute" name="imu_joint">
  281.       <pose>0 0 0.403 0 0 0</pose>
  282.       <child>imu_link</child>
  283.       <parent>base_link</parent>
  284.       <axis>
  285.         <xyz>0 0 1</xyz>
  286.       </axis>
  287.     </joint>
  288.    
  289.     <plugin filename="libgazebo_ros_imu.so" name="gazebo_ros_imu">
  290.       <bodyName>imu_link</bodyName>
  291.       <serviceName>ales_imu</serviceName>
  292.       <topicName>ales_imu</topicName>
  293.       <gaussianNoise>2.89e-08</gaussianNoise>
  294.       <xyzOffset>0 0 0</xyzOffset>
  295.       <rpyOffset>0 0 0</rpyOffset>
  296.     </plugin>
  297.  
  298.   <include>
  299.     <uri>model://hokuyo</uri>
  300.     <pose>-0.615 0 0.435 0 0 0</pose>
  301.   </include>
  302.  
  303.   <joint name="hokuyo_joint" type="revolute">
  304.     <child>hokuyo::link</child>
  305.     <parent>base_link</parent>
  306.     <axis>
  307.       <xyz>0 0 1</xyz>
  308.       <limit>
  309.         <upper>0</upper>
  310.         <lower>0</lower>
  311.       </limit>
  312.     </axis>
  313.   </joint>
  314.  
  315.   <plugin filename="libgazebo_ros_joint_trajectory.so" name="joint_trajectory_plugin">
  316.       <topicName>joint_trajectory</topicName>
  317.       <updateRate>1000.0</updateRate>
  318.   </plugin>  
  319.  
  320.   <plugin filename="libgazebo_ros_p3d.so" name="gazebo_ros_p3d">
  321.     <bodyName>base_link</bodyName>
  322.     <topicName>/ground_truth_odom</topicName>
  323.     <alwaysOn>true</alwaysOn>
  324.     <updateRate>100.0</updateRate>
  325.   </plugin>
  326.  `</model>
  327. </sdf>
Advertisement
Add Comment
Please, Sign In to add comment