Advertisement
DrAungWinHtut

4wheels1.wbt

May 28th, 2025
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.93 KB | None | 0 0
  1. #VRML_SIM R2025a utf8
  2.  
  3. EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2025a/projects/objects/backgrounds/protos/TexturedBackground.proto"
  4. EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2025a/projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
  5. EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2025a/projects/objects/floors/protos/RectangleArena.proto"
  6.  
  7. WorldInfo {
  8. }
  9. Viewpoint {
  10.   orientation 0.07987357375373524 -0.10424624051044758 -0.9913389599704254 4.967162579952054
  11.   position -0.1355848939873358 -0.7054274144021473 0.2015211425405409
  12. }
  13. TexturedBackground {
  14. }
  15. TexturedBackgroundLight {
  16. }
  17. RectangleArena {
  18.   floorSize 2 2
  19. }
  20. Solid {
  21.   translation 0.21 0 0
  22.   children [
  23.     Shape {
  24.       appearance PBRAppearance {
  25.         baseColor 0 0 0
  26.         roughness 1
  27.         metalness 0
  28.       }
  29.       geometry Box {
  30.         size 0.05 0.05 0.05
  31.       }
  32.     }
  33.   ]
  34. }
  35. DEF Robot Robot {
  36.   translation -6.009278448241306e-05 0.02005605151113183 0.020634987421419324
  37.   rotation 0.13121761188466757 -0.0005927504440141294 -0.9913534117448712 3.873043426496412e-05
  38.   children [
  39.     DEF SolidBody Solid {
  40.       translation -2.855527945213741e-14 6.938893903907228e-18 -0.0007249040012106758
  41.       rotation 0 0 -1 6.408428074369474e-07
  42.       children [
  43.         DEF Left_Back_Joint HingeJoint {
  44.           jointParameters DEF Left_Back_Joint HingeJointParameters {
  45.             position -2.3871655094803524e-08
  46.             axis 0 1 0
  47.             anchor -0.05 0.05 0
  48.           }
  49.           device [
  50.             RotationalMotor {
  51.               name "motor_left_back"
  52.             }
  53.           ]
  54.           endPoint Solid {
  55.             translation -0.05000000000000002 0.05 6.063894724883258e-10
  56.             rotation 0.9999999999999196 -3.3863989185341237e-07 2.1511559365139866e-07 1.570000003442234
  57.             children [
  58.               DEF wheel Shape {
  59.                 appearance PBRAppearance {
  60.                   baseColor 1 0 0
  61.                   roughness 1
  62.                   metalness 0
  63.                 }
  64.                 geometry Cylinder {
  65.                   height 0.01
  66.                   radius 0.02
  67.                 }
  68.               }
  69.             ]
  70.             name "solid2(3)"
  71.             boundingObject DEF wheel Shape {
  72.               appearance PBRAppearance {
  73.                 baseColor 1 0 0
  74.                 roughness 1
  75.                 metalness 0
  76.               }
  77.               geometry Cylinder {
  78.                 height 0.01
  79.                 radius 0.02
  80.               }
  81.             }
  82.             physics Physics {
  83.             }
  84.           }
  85.         }
  86.         DEF Right_Back_Joint HingeJoint {
  87.           jointParameters DEF Right_Back_Joint HingeJointParameters {
  88.             position -1.3708306093926636e-08
  89.             axis 0 1 0
  90.             anchor -0.05 -0.05 0
  91.           }
  92.           device [
  93.             RotationalMotor {
  94.               name "motor_right_back"
  95.             }
  96.           ]
  97.           endPoint Solid {
  98.             translation -0.05 -0.05 -1.0989830969372583e-10
  99.             rotation 0.9999999999999224 -3.3355418454286464e-07 2.1003393776393883e-07 1.5699999964904536
  100.             children [
  101.               DEF wheel Shape {
  102.                 appearance PBRAppearance {
  103.                   baseColor 1 0 0
  104.                   roughness 1
  105.                   metalness 0
  106.                 }
  107.                 geometry Cylinder {
  108.                   height 0.01
  109.                   radius 0.02
  110.                 }
  111.               }
  112.             ]
  113.             name "solid2(2)"
  114.             boundingObject DEF wheel Shape {
  115.               appearance PBRAppearance {
  116.                 baseColor 1 0 0
  117.                 roughness 1
  118.                 metalness 0
  119.               }
  120.               geometry Cylinder {
  121.                 height 0.01
  122.                 radius 0.02
  123.               }
  124.             }
  125.             physics Physics {
  126.             }
  127.           }
  128.         }
  129.         DEF Right_Front_Joint HingeJoint {
  130.           jointParameters DEF Right_Front_Joint HingeJointParameters {
  131.             position -2.4635991639223045e-08
  132.             axis 0 1 0
  133.             anchor 0.05 0.05 0
  134.           }
  135.           device [
  136.             RotationalMotor {
  137.               name "motor_right_front"
  138.             }
  139.           ]
  140.           endPoint Solid {
  141.             translation 0.04999999999999999 0.05 6.16379873032281e-10
  142.             rotation 0.9999999999999527 1.46934204554187e-07 -2.700719703756882e-07 1.5699999991142959
  143.             children [
  144.               DEF wheel Shape {
  145.                 appearance PBRAppearance {
  146.                   baseColor 1 0 0
  147.                   roughness 1
  148.                   metalness 0
  149.                 }
  150.                 geometry Cylinder {
  151.                   height 0.01
  152.                   radius 0.02
  153.                 }
  154.               }
  155.             ]
  156.             name "solid2(1)"
  157.             boundingObject DEF wheel Shape {
  158.               appearance PBRAppearance {
  159.                 baseColor 1 0 0
  160.                 roughness 1
  161.                 metalness 0
  162.               }
  163.               geometry Cylinder {
  164.                 height 0.01
  165.                 radius 0.02
  166.               }
  167.             }
  168.             physics Physics {
  169.             }
  170.           }
  171.         }
  172.         DEF Left_Front_Joint HingeJoint {
  173.           jointParameters DEF Left_Front_Joint HingeJointParameters {
  174.             axis 0 1 0
  175.             anchor 0.05 -0.05 0
  176.           }
  177.           device [
  178.             RotationalMotor {
  179.               name "motor_left_front"
  180.             }
  181.           ]
  182.           endPoint Solid {
  183.             translation 0.05 -0.05 6.163806434157709e-10
  184.             rotation 0.9999999999999473 1.5926197332664142e-07 -2.823899364351547e-07 1.5700000008854709
  185.             children [
  186.               DEF wheel Shape {
  187.                 appearance PBRAppearance {
  188.                   baseColor 1 0 0
  189.                   roughness 1
  190.                   metalness 0
  191.                 }
  192.                 geometry Cylinder {
  193.                   height 0.01
  194.                   radius 0.02
  195.                 }
  196.               }
  197.             ]
  198.             name "solid2"
  199.             boundingObject DEF wheel Shape {
  200.               appearance PBRAppearance {
  201.                 baseColor 1 0 0
  202.                 roughness 1
  203.                 metalness 0
  204.               }
  205.               geometry Cylinder {
  206.                 height 0.01
  207.                 radius 0.02
  208.               }
  209.             }
  210.             physics Physics {
  211.             }
  212.           }
  213.         }
  214.         DEF Body Shape {
  215.           appearance PBRAppearance {
  216.             baseColor 0.145098 0.145098 0.145098
  217.             roughness 1
  218.             metalness 0
  219.           }
  220.           geometry Box {
  221.             size 0.2 0.1 0.01
  222.           }
  223.         }
  224.       ]
  225.       name "Body"
  226.       boundingObject USE Body
  227.       physics Physics {
  228.       }
  229.     }
  230.   ]
  231.   boundingObject USE Body
  232.   physics Physics {
  233.   }
  234.   controller "4wheel1controller"
  235. }
  236.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement