Advertisement
KunalTyagi

Ultrasonic sensor with an error

Jun 1st, 2014
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.92 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <sdf version="1.4">
  4.     <model name="ultrasonic">
  5.         <static>false</static>
  6.         <pose>0 0 0 0 0 0</pose> <!-- dimensions are measured from the center of the model-->
  7.  
  8.         <link name="sensor_mount">
  9.             <pose>0 0 0.025 0 1.5707 0</pose>
  10.             <inertial>
  11.                 <pose>0 0 0 0 0 0</pose><!-- at the center of the block-->
  12.                 <inertia>
  13.                     <!-- values for mass = 10 -->
  14.                     <ixx>0.003</ixx>
  15.                     <ixy>0</ixy>
  16.                     <ixz>0</ixz>
  17.                     <iyy>0.003</iyy>
  18.                     <iyz>0</iyz>
  19.                     <izz>0.003</izz>
  20.                 </inertia>
  21.                 <mass>10.0</mass>
  22.             </inertial>
  23.             <collision name="sensor_mount_collision">
  24.                 <geometry>
  25.                     <box>
  26.                         <size>0.05 0.05 0.05</size>
  27.                     </box>
  28.                 </geometry>
  29.             </collision>
  30.             <visual name="sensor_mount_visual">
  31.                 <geometry>
  32.                     <box>
  33.                         <size>0.05 0.05 0.05</size>
  34.                     </box>
  35.                 </geometry>
  36.                 <material>
  37.                     <script>
  38.                         <uri>file://media/materials/scripts/gazebo.material</uri>
  39.                         <name>Gazebo/Green</name>
  40.                     </script>
  41.                 </material>
  42.             </visual>
  43.             <sensor name="ultrasonic" type="sonar">
  44.                 <always_on>1</always_on>
  45.                 <update_rate>20</update_rate>
  46.                 <visualize>1</visualize>
  47.                 <pose>0 0 0 0 0 0</pose>
  48.                 <sonar>
  49.                     <min>0.05</min>
  50.                     <max>100</max>
  51.                     <radius>0.1</radius>
  52.                 </sonar>
  53.             </sensor>
  54.         </link>
  55.  
  56.     </model>
  57. </sdf>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement