four_wheels_m.wbt 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. #VRML_SIM R2021a utf8
  2. WorldInfo {
  3. basicTimeStep 16
  4. coordinateSystem "NUE"
  5. }
  6. Viewpoint {
  7. orientation -0.5826005034436419 -0.5689314550412352 -0.5804254067939117 2.1038509586384233
  8. position -2.9312330504807185 91.87390389427381 78.54012493312264
  9. }
  10. TexturedBackground {
  11. }
  12. TexturedBackgroundLight {
  13. }
  14. RectangleArena {
  15. translation 0 -0.05 50
  16. rotation 1 0 0 0
  17. floorSize 40 110
  18. floorTileSize 20 20
  19. wallThickness 0.5
  20. wallHeight 2
  21. wallAppearance BrushedAluminium {
  22. IBLStrength 15
  23. }
  24. }
  25. Robot {
  26. translation -13.01216924529826 0.14903723920929007 99.93855697807129
  27. rotation -6.182296082223161e-06 -0.9999999906060143 -0.00013692972821978858 -0.0023252775819534214
  28. children [
  29. InertialUnit {
  30. translation 0 0.2 0.5
  31. children [
  32. Shape {
  33. appearance Appearance {
  34. material Material {
  35. diffuseColor 0.14902 0.45098 1
  36. }
  37. }
  38. geometry Sphere {
  39. radius 0.1
  40. }
  41. }
  42. ]
  43. name "imu"
  44. }
  45. GPS {
  46. translation 0 0.2 0
  47. children [
  48. Solid {
  49. rotation 0 0 1 0
  50. children [
  51. Shape {
  52. appearance Appearance {
  53. material Material {
  54. diffuseColor 0.929412 0.831373 0
  55. }
  56. }
  57. geometry Cone {
  58. bottomRadius 0.3
  59. height 0.4
  60. }
  61. }
  62. ]
  63. }
  64. ]
  65. }
  66. DEF BODY Shape {
  67. appearance PBRAppearance {
  68. baseColor 0.917647 0.145098 0.145098
  69. roughness 1
  70. metalness 0
  71. }
  72. geometry Box {
  73. size 1.9 0.2 1.5
  74. }
  75. }
  76. DEF WHEEL1 HingeJoint {
  77. jointParameters HingeJointParameters {
  78. position 3204.299167224161
  79. anchor 1 0 0.5
  80. }
  81. device [
  82. RotationalMotor {
  83. name "wheel1"
  84. maxVelocity 100
  85. }
  86. ]
  87. endPoint Solid {
  88. translation 1 0 0.5
  89. rotation -0.2652016981846079 0.2649898331356455 0.9270644247379699 1.6456546469574749
  90. children [
  91. DEF WHEEL Shape {
  92. appearance PBRAppearance {
  93. baseColor 0.305882 0.898039 0.25098
  94. roughness 1
  95. metalness 0
  96. }
  97. geometry Cylinder {
  98. height 0.1
  99. radius 0.2
  100. subdivision 24
  101. }
  102. }
  103. ]
  104. boundingObject USE WHEEL
  105. physics Physics {
  106. density 1
  107. mass 1
  108. }
  109. linearVelocity 3.73385483755766e-12 1.1181072565517522e-15 -1.6571927848411335e-11
  110. angularVelocity -1.7802546558163615e-10 7.552989963818089e-12 4.099932308338187e-13
  111. }
  112. }
  113. DEF WHEEL2 HingeJoint {
  114. jointParameters HingeJointParameters {
  115. position 4132.026885342275
  116. anchor -1 0 0.5
  117. }
  118. device [
  119. RotationalMotor {
  120. name "wheel2"
  121. maxVelocity 100
  122. }
  123. ]
  124. endPoint Solid {
  125. translation -1 0 0.5
  126. rotation 0.26493925666909174 -0.2649545168758917 0.9271495533422275 1.6463574026937842
  127. children [
  128. USE WHEEL
  129. ]
  130. name "solid(1)"
  131. boundingObject USE WHEEL
  132. physics Physics {
  133. density 1
  134. mass 1
  135. }
  136. linearVelocity 3.7478026304332435e-12 4.908641046033565e-16 -2.24580791292885e-12
  137. angularVelocity -8.874715231745456e-13 7.554383793851529e-12 4.4311065738747374e-15
  138. }
  139. }
  140. DEF WHEEL3 HingeJoint {
  141. jointParameters HingeJointParameters {
  142. position 3209.9289865389387
  143. anchor 1 0 -0.5
  144. }
  145. device [
  146. RotationalMotor {
  147. name "wheel3"
  148. maxVelocity 100
  149. }
  150. ]
  151. endPoint Solid {
  152. translation 1 0 -0.5
  153. rotation 0.6530883534797477 -0.6530877448269917 0.38334318841725423 2.409475869772187
  154. children [
  155. USE WHEEL
  156. ]
  157. name "solid(2)"
  158. boundingObject USE WHEEL
  159. physics Physics {
  160. density 1
  161. mass 1
  162. }
  163. linearVelocity -3.8317841996533795e-12 -4.719133131317983e-16 -1.643376735377655e-11
  164. angularVelocity -6.062885574014809e-12 7.553152218081688e-12 1.8138928304137572e-14
  165. }
  166. }
  167. DEF WHEEL4 HingeJoint {
  168. jointParameters HingeJointParameters {
  169. position 4130.300712701317
  170. anchor -1 0 -0.5
  171. }
  172. device [
  173. RotationalMotor {
  174. name "wheel4"
  175. maxVelocity 100
  176. }
  177. ]
  178. endPoint Solid {
  179. translation -1 0 -0.5
  180. rotation -0.4828161187218597 0.4828343281979345 0.7305885346869387 1.8796771949779125
  181. children [
  182. USE WHEEL
  183. ]
  184. name "solid(3)"
  185. boundingObject USE WHEEL
  186. physics Physics {
  187. density 1
  188. mass 1
  189. }
  190. linearVelocity -3.736471420626607e-12 -7.103275163254803e-16 -1.8432971633423352e-12
  191. angularVelocity -5.769639445896213e-13 7.555853023268881e-12 1.6416134434231503e-15
  192. }
  193. }
  194. ]
  195. name "robot1"
  196. boundingObject USE BODY
  197. physics Physics {
  198. density 10
  199. }
  200. controller "four_controller"
  201. linearVelocity -3.2722624715515054e-14 5.784067182327832e-16 -9.30981743446901e-12
  202. angularVelocity -1.603332527255836e-15 7.554712457776498e-12 1.1607222508886257e-16
  203. }
  204. StraightRoadSegment {
  205. translation 0 0.001 0
  206. width 6
  207. lines [
  208. RoadLine {
  209. width 0.2
  210. }
  211. ]
  212. roadBorderHeight 0.3
  213. startingRoadBorderWidth 0.5
  214. endingRoadBorderWidth 0.5
  215. length 17
  216. appearance Asphalt {
  217. IBLStrength 10
  218. }
  219. }
  220. StraightRoadSegment {
  221. translation 0 0.001 23
  222. name "road(1)"
  223. width 6
  224. lines [
  225. RoadLine {
  226. width 0.2
  227. }
  228. ]
  229. roadBorderHeight 0.3
  230. startingRoadBorderWidth 0.5
  231. endingRoadBorderWidth 0.5
  232. length 33
  233. appearance Asphalt {
  234. IBLStrength 10
  235. }
  236. }
  237. StraightRoadSegment {
  238. translation -2 0.001 60
  239. rotation 0 1 0 -1.5707996938995747
  240. name "road(2)"
  241. width 6
  242. lines [
  243. RoadLine {
  244. width 0.2
  245. }
  246. ]
  247. roadBorderHeight 0.3
  248. startingRoadBorderWidth 0.5
  249. endingRoadBorderWidth 0.5
  250. length 7
  251. appearance Asphalt {
  252. IBLStrength 10
  253. }
  254. }
  255. StraightRoadSegment {
  256. translation -13 0.001 63
  257. name "road(4)"
  258. width 6
  259. lines [
  260. RoadLine {
  261. width 0.2
  262. }
  263. ]
  264. roadBorderHeight 0.3
  265. startingRoadBorderWidth 0.5
  266. endingRoadBorderWidth 0.5
  267. length 34
  268. appearance Asphalt {
  269. IBLStrength 10
  270. }
  271. }
  272. StraightRoadSegment {
  273. translation 0 0.001 63
  274. name "road(5)"
  275. width 6
  276. lines [
  277. RoadLine {
  278. width 0.2
  279. }
  280. ]
  281. roadBorderHeight 0.3
  282. startingRoadBorderWidth 0.5
  283. endingRoadBorderWidth 0.5
  284. length 34
  285. appearance Asphalt {
  286. IBLStrength 10
  287. }
  288. }
  289. StraightRoadSegment {
  290. translation -2 0.001 100
  291. rotation 0 1 0 -1.5707996938995747
  292. name "road(3)"
  293. width 6
  294. lines [
  295. RoadLine {
  296. width 0.2
  297. }
  298. ]
  299. roadBorderHeight 0.3
  300. startingRoadBorderWidth 0.5
  301. endingRoadBorderWidth 0.5
  302. length 7
  303. appearance Asphalt {
  304. IBLStrength 10
  305. }
  306. }
  307. StraightRoadSegment {
  308. translation 16 0.001 20
  309. rotation 0 1 0 -1.5707996938995747
  310. name "road(6)"
  311. width 6
  312. lines [
  313. RoadLine {
  314. width 0.2
  315. }
  316. ]
  317. roadBorderHeight 0.3
  318. startingRoadBorderWidth 0.5
  319. endingRoadBorderWidth 0.3
  320. length 12
  321. appearance Asphalt {
  322. IBLStrength 10
  323. }
  324. }
  325. RoadIntersection {
  326. translation 0 0.001 20
  327. rotation 0 1 0 0.7853996938995746
  328. roadsWidth 6
  329. startRoadsLength [
  330. 3
  331. ]
  332. startRoadBorderHeight 0.3
  333. startRoadBorderWidth 0.5
  334. }
  335. RoadIntersection {
  336. translation 0 0.001 60
  337. rotation 0 1 0 0.7853996938995746
  338. name "road intersection(1)"
  339. roadsWidth 6
  340. startRoadsLength [
  341. 3
  342. ]
  343. startRoadBorderHeight 0.3
  344. startRoadBorderWidth 0.5
  345. }
  346. RoadIntersection {
  347. translation 0 0.001 100
  348. rotation 0 1 0 0.7853996938995746
  349. name "road intersection(2)"
  350. roadsWidth 6
  351. startRoadsLength [
  352. 3
  353. ]
  354. startRoadBorderHeight 0.3
  355. startRoadBorderWidth 0.5
  356. }
  357. RoadIntersection {
  358. translation -13 0.001 100
  359. rotation 0 1 0 0.7853996938995746
  360. name "road intersection(3)"
  361. roadsWidth 6
  362. startRoadsLength [
  363. 3
  364. ]
  365. startRoadBorderHeight 0.3
  366. startRoadBorderWidth 0.5
  367. }
  368. RoadIntersection {
  369. translation -13 0.001 60
  370. rotation 0 1 0 0.7853996938995746
  371. name "road intersection(4)"
  372. roadsWidth 6
  373. startRoadsLength [
  374. 3
  375. ]
  376. startRoadBorderHeight 0.3
  377. startRoadBorderWidth 0.5
  378. }
  379. RoadIntersection {
  380. translation 18 0.001 20
  381. rotation 0 1 0 0.7853996938995746
  382. name "road intersection(5)"
  383. roadsWidth 6
  384. startRoadsLength [
  385. 1
  386. ]
  387. startRoadsLine [
  388. RoadLine {
  389. width 0.3
  390. }
  391. ]
  392. startRoadBorderHeight 0.3
  393. startRoadBorderWidth 0.5
  394. }