Advertisement
Guest User

Untitled

a guest
Nov 1st, 2017
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.44 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <!--The robot name. This is the wrapper for the entire file-->
  5. <robot name="Jimmy">
  6.  
  7. <!-- *********************(1) MATERIALS*************************************-->
  8.   <!--This defines the color that the robot (wheels) is going to use-->
  9.   <material name="black">
  10.     <color rgba="0 0 0 0.8"/>
  11.   </material>
  12.  
  13.   <!--This defines the colors that the robot (body_link) is going to use-->
  14.   <material name="white">
  15.     <color rgba="1 1 1 1"/>
  16.   </material>
  17.  
  18. <!-- *********************(2) BODY LINK*************************************-->
  19.   <!-- a "link" is the part that we are creating. All the internal tags describe
  20.       this part. This is the body of Jimmy (both square levels) -->
  21.   <link name="body_link">
  22.     <visual>
  23.       <geometry>
  24.         <!--box dimensions is Meters. L X W X H where the L X H is a ractange,
  25.            and the H extrudes it upwards -->
  26.         <box size="0.650 0.381 0.132"/>
  27.       </geometry>
  28.       <origin rpy="0 0 0" xyz="-0.325 -0.1905 0.066"/>
  29.       <material name="white"/>
  30.     </visual>
  31.   </link>
  32.  
  33. <!-- *********************(3) LEFT DRIVE WHEEL LINK*************************-->
  34.   <!-- the left drive wheel-->
  35.   <link name="left_drive_wheel_link">
  36.     <visual>
  37.       <geometry>
  38.         <cylinder length="0.049" radius="0.181"/>
  39.       </geometry>
  40.       <!-- roll pitch and yaw will move the item in 3D space to arrange it how
  41.           we want it in relation to the origin. the XYZ is to move it around
  42.           the 3D space relative to the origin. Note that 1.57075 is pi/2 -->
  43.       <origin rpy="1.57075 0 0" xyz="0 0 0"/>
  44.        <material name="black"/>
  45.     </visual> However I do not have the stl file... I only have the dae, and the line of code you provided in your answer does not seem to work.
  46.   </link>
  47.  
  48. <!-- *********************(4) BODY TO LEFT DRIVE WHEEL JOINT****************-->
  49.   <!-- a joint allows us to create a relationship between two links (parts)-->
  50.   <joint name="body_to_left_drive_wheel_joint" type="continuous">
  51.     <axis rpy="0 0 0" xyz="0 1 0"/>
  52.     <parent link="body_link"/>
  53.     <child link="left_drive_wheel_link"/>
  54.     <!-- this is the point at which the two parts attach to one another relative
  55.         to the origin-->
  56.     <origin xyz="-0.52835 0.037 -0.035"/>
  57.   </joint>
  58.  
  59. <!-- *********************(5) RIGHT DRIVE WHEEL LINK************************-->
  60. <!-- the right drive wheel-->
  61.   <link name="right_drive_wheel_link">
  62.     <visual>
  63.       <geometry>
  64.         <cylinder length="0.049" radius="0.181"/>
  65.       </geometry>
  66.       <!-- roll pitch and yaw will move the item in 3D space to arrange it how
  67.           we want it in relation to the origin. the XYZ is to move it around
  68.           the 3D space relative to the origin. -->
  69.       <origin rpy="1.57075 0 0" xyz="0 0 0"/>
  70.       <material name="black"/>
  71.     </visual>
  72.   </link>
  73.  
  74. <!-- *********************(6) BODY TO RIGHT DRIVE WHEEL JOINT***************-->
  75.   <!-- a joint allows us to create a relationship between two links (parts)-->
  76.   <joint name="body_to_right_drive_wheel_joint" type="continuous">
  77.     <axis rpy="0 0 0" xyz="0 1 0"/>
  78.     <parent link="body_link"/>
  79.     <child link="right_drive_wheel_link"/>
  80.     <!-- this is the point at which the two parts attach to one another-->
  81.     <origin xyz="-0.52835 -0.421 -0.035"/>
  82.   </joint>
  83.  
  84. <!-- *********************(7) LEFT CASTOR PLATE LINK************************-->
  85.   <!--The left castor base. it will allow the castor to rotate around the Z
  86.      axis -->
  87.   <link name="left_castor_mount_link">
  88.     <visual>
  89.       <geometry>
  90.         <!--box dimensions is Meters. L X W X H where the L X H is a ractange,
  91.            and the H extrudes it upwards -->
  92.         <box size="0.1145 0.10 0.0057"/>
  93.       </geometry>
  94.        <material name="white"/>
  95.     </visual>
  96.   </link>
  97.  
  98. <!-- *********************(8) LEFT CASTOR PLATE TO BODY JOINT **************-->
  99.   <!-- a joint allows us to create a relationship between two links (parts)-->
  100.   <joint name="left_castor_base_to_body_joint" type="continuous">
  101.     <axis rpy="0 0 0" xyz="0 0 1"/>
  102.     <parent link="body_link"/>
  103.     <child link="left_castor_mount_link"/>
  104.     <!-- this is the point at which the two parts attach to one another-->
  105.     <origin xyz="-0.09445 -0.041 -0.03265"/>
  106.   </joint>
  107.  
  108. <!-- *********************(9) RIGHT CASTOR PLATE LINK***********************-->
  109.   <!--The right castor base. it will allow the castor to rotate around the Z
  110.      axis -->
  111.   <link name="right_castor_mount_link">
  112.     <visual>
  113.       <geometry>
  114.         <!--box dimensions is Meters. L X W X H where the L X H is a ractange,
  115.            and the H extrudes it upwards -->
  116.         <box size="0.1145 0.10 0.0057"/>
  117.       </geometry>
  118.        <material name="white"/>
  119.     </visual>
  120.   </link>
  121.  
  122. <!-- *********************(10) RIGHT CASTOR PLATE TO BODY JOINT ***********-->
  123.   <!-- a joint allows us to create a relationship between two links (parts)-->
  124.   <joint name="right_castor_base_to_body_joint" type="continuous">
  125.     <axis rpy="0 0 0" xyz="0 0 1"/>
  126.     <parent link="body_link"/>
  127.     <child link="right_castor_mount_link"/>
  128.     <!-- this is the point at which the two parts attach to one another-->
  129.     <origin xyz="-0.09445 -0.344 -0.03265"/>
  130.   </joint>
  131.  
  132. <!-- *********************(11) LEFT CASTOR WHEEL LINK **********************-->
  133. <!-- the left castor wheel link (part). It is the same as the right...-->
  134.   <link name="left_castor_wheel_link">
  135.     <visual>
  136.       <geometry>
  137.         <cylinder length="0.049" radius="0.07925"/>
  138.       </geometry>
  139.       <!-- roll pitch and yaw will move the item in 3D space to arrange it how
  140.           we want it in relation to other parts. the XYZ is to move it around
  141.           the 3D space relative to the origin. -->
  142.       <origin rpy="1.57075 0 0" xyz="0 0 0"/>
  143.        <material name="black"/>
  144.     </visual>
  145.   </link>
  146.  
  147. <!-- *********************(12) LEFT CASTOR WHEEL TO PLATE JOINT ************-->
  148.   <!-- a joint allows us to create a relationship between two links (parts)-->
  149.   <joint name="left_castor_wheel_to_plate_joint" type="continuous">
  150.     <axis rpy="0 0 0" xyz="0 1 0"/>
  151.     <parent link="left_castor_mount_link"/>
  152.     <child link="left_castor_wheel_link"/>
  153.     <!-- this is the point at which the two parts attach to one another-->
  154.     <origin xyz="-0.037 0  -0.11785"/>
  155.   </joint>
  156.  
  157. <!-- *********************(13) RIGHT CASTOR WHEEL **************************-->
  158. <!-- the right castor wheel link (part). It is the same as the left...-->
  159.   <link name="right_castor_wheel_link">
  160.     <visual>
  161.       <geometry>
  162.         <cylinder length="0.049" radius="0.07925"/>
  163.       </geometry>
  164.       <!-- roll pitch and yaw will move the item in 3D space to arrange it how
  165.           we want it in relation to other parts. the XYZ is to move it around
  166.           the 3D space relative to the origin. -->
  167.       <origin rpy="1.57075 0 0" xyz="0 0 0"/>
  168.        <material name="black"/>
  169.     </visual>
  170.   </link>
  171.  
  172. <!-- *********************(14) RIGHT CASTOR WHEEL TO PLATE JOINT ***********-->
  173.   <!-- a joint allows us to create a relationship between two links (parts)-->
  174.   <joint name="right_castor_wheel_to_plate_joint" type="continuous">
  175.     <axis rpy="0 0 0" xyz="0 1 0"/>
  176.     <parent link="right_castor_mount_link"/>
  177.     <child link="right_castor_wheel_link"/>
  178.     <!-- this is the point at which the two parts attach to one another-->
  179.     <origin xyz="-0.037 0  -0.11785"/>
  180.   </joint>
  181.  
  182. <!-- *********************(15) ROTATING SHAFT LINK *************************-->
  183. <!-- the rotating shaft on which the lms is mounted. the shaft which the applied
  184.     motion products servo is rotating -->
  185.   <link name="rotating_lms_shaft_link">
  186.     <visual>
  187.       <geometry>
  188.         <cylinder length="0.235" radius="0.006"/>
  189.       </geometry>
  190.       <!-- roll pitch and yaw will move the item in 3D space to arrange it how
  191.           we want it in relation to other parts. the XYZ is to move it around
  192.           the 3D space relative to the origin. -->
  193.       <origin rpy="0 0 0" xyz="0 0 0"/>
  194.        <material name="white"/>
  195.     </visual>
  196.   </link>
  197.  
  198. <!-- *********************(16) ROTATING lms SHAFT TO BODY JOINT*************-->
  199.   <!-- a joint allows us to create a relationship between two links (parts)-->
  200.   <joint name="rotating_lms_shaft_to_body_joint" type="continuous">
  201.     <axis rpy="0 0 0" xyz="0 0 1"/>
  202.     <parent link="body_link"/>
  203.     <child link="rotating_lms_shaft_link"/>
  204.     <!-- this is the point at which the two parts attach to one another-->
  205.     <origin xyz="-0.2531 -0.1905 0.3195"/>
  206.   </joint>
  207.  
  208. <!-- *********************(19) PLATE HOLDING lms LINK **********************-->
  209.   <!-- a "link" is the part that we are creating. All the internal tags describe
  210.       this part. This is the body of Jimmy (both square levels) -->
  211.   <link name="lms_plate_link">
  212.     <visual>
  213.       <geometry>
  214.         <!--box dimensions is Meters. L X W X H where the L X H is a ractange,
  215.            and the H extrudes it upwards -->
  216.         <box size="0.18415 0.1651 0.00635"/>
  217.       </geometry>
  218.       <origin rpy="0 0 0" xyz="0 0 0"/>
  219.       <material name="white"/>
  220.     </visual>
  221.   </link>
  222.  
  223. <!-- *********************(20) lms PLATE TO ROTATING SHAFT JOINT ***********-->
  224. <!-- a joint allows us to create a relationship between two links (parts)-->
  225.   <joint name="rotating_lms_shaft_to_lms_plate_joint" type="fixed">
  226.     <parent link="rotating_lms_shaft_link"/>
  227.     <child link="lms_plate_link"/>
  228.     <!-- this is the point at which the two parts attach to one another-->
  229.     <origin xyz="-0.04905 0 0.120675"/>
  230.   </joint>
  231.  
  232. <!-- *********************(21) lms LINK - MESHES****************************-->
  233.   <!-- a "link" is the part that we are creating. All the internal tags describe
  234.       this part. This is the body of Jimmy (both square levels) -->
  235.   <link name="lms_link">
  236.     <visual>
  237.       <geometry>
  238.         <!--The meshes file was demonstrated by the tutorial. The sizing was
  239.            figured out by my question on answers.ros.org. the values are
  240.            multipliers. We are showing the size at 9.5% of the original mesh file -->
  241.         <mesh filename="package://jimmy_v2/meshes/lms-200-30106.dae" scale="0.095 0.095 0.095"/>
  242.       </geometry>
  243.       <origin rpy="0 0 0" xyz="0 0 0"/>
  244.       <material name="white"/>
  245.     </visual>
  246.   </link>
  247.  
  248. <!-- *********************(22) lms to lms PLATE JOINT **********************-->
  249. <!-- a joint allows us to create a relationship between two links (parts)-->
  250.   <joint name="lms_to_lms_plate_joint" type="fixed">
  251.     <parent link="lms_plate_link"/>
  252.     <child link="lms_link"/>
  253.     <!-- this is the
  254. point at which the two parts attach to one another-->
  255.     <origin xyz="0.12 0 0.073"/>
  256.   </joint>
  257.  
  258. <!-- *********************(23) lms EXTRUSION LINK *************************-->
  259.  <link name="lms_extrusion_link">
  260.     <visual>
  261.       <geometry>
  262.         <!--box dimensions is Meters. L X W X H where the L X H is a ractange,
  263.            and the H extrudes it upwards -->
  264.         <box size="0.03 0.03 0.425"/>
  265.       </geometry>
  266.        <material name="white"/>
  267.     </visual>
  268.   </link>
  269.  
  270. <!-- *********************(24) lms EXTRUSION JOINT *************************-->
  271.   <!-- a joint allows us to create a relationship between two links (parts)-->
  272.   <joint name="base_link_to_lms_extrusion_joint" type="fixed">
  273.     <parent link="body_link"/>
  274.     <child link="lms_extrusion_link"/>
  275.     <!-- this is the point at which the two parts attach to one another-->
  276.     <origin xyz="-0.3531 -0.1905 0.2173"/>
  277.   </joint>
  278.  
  279. </robot>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement