webots_quadX.wbt 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. #VRML_SIM R2019b utf8
  2. WorldInfo {
  3. gravity 0 -9.80665 0
  4. physics "sitl_physics_env"
  5. basicTimeStep 2
  6. FPS 25
  7. optimalThreadCount 4
  8. randomSeed 52
  9. }
  10. DogHouse {
  11. translation 34.82 0.76 -24.56
  12. name "dog house(1)"
  13. }
  14. DogHouse {
  15. translation 161.819 0.75 -152.174
  16. name "dog house(2)"
  17. }
  18. DogHouse {
  19. translation 185.42 0.77 48.97
  20. name "dog house(5)"
  21. }
  22. Viewpoint {
  23. orientation 0.8271274640436935 0.5437841938242927 0.1419820720073933 5.671643293801365
  24. position -7.234434459826133 13.00762277807382 18.43704042041417
  25. follow "quad_x_sitl"
  26. followOrientation TRUE
  27. }
  28. Background {
  29. skyColor [
  30. 0.15 0.5 1
  31. ]
  32. cubemap Cubemap {
  33. }
  34. }
  35. Solid {
  36. translation 36.93 0.77 -37.93
  37. children [
  38. HouseWithGarage {
  39. }
  40. ]
  41. }
  42. Solid {
  43. translation 192.76999999999998 0 64.98
  44. rotation 0 1 0 -1.5707963071795863
  45. children [
  46. HouseWithGarage {
  47. }
  48. ]
  49. name "solid(1)"
  50. }
  51. DEF DEF_VEHICLE Robot {
  52. translation -0.027601 0.674307 0.005031
  53. rotation 0 1 0 0.785388
  54. children [
  55. Emitter {
  56. name "emitter_plugin"
  57. description "commuicates with physics plugin"
  58. }
  59. Shape {
  60. appearance Appearance {
  61. material Material {
  62. }
  63. }
  64. geometry Box {
  65. size 0.1 0.1 0.1
  66. }
  67. }
  68. Camera {
  69. translation 0 0.12 0
  70. rotation 0 -1 0 2.356195
  71. name "camera1"
  72. width 128
  73. height 128
  74. }
  75. Compass {
  76. rotation 0 1 0 -0.7853983071795865
  77. name "compass1"
  78. }
  79. GPS {
  80. rotation 0 1 0 -0.785398
  81. name "gps1"
  82. }
  83. Accelerometer {
  84. rotation 0 1 0 -0.785398
  85. name "accelerometer1"
  86. }
  87. Gyro {
  88. rotation 0 1 0 -0.785398
  89. name "gyro1"
  90. }
  91. InertialUnit {
  92. rotation 0 -1 0 0.7853979999999999
  93. name "inertial_unit"
  94. }
  95. Transform {
  96. translation -0.09999999999999999 0 0
  97. rotation -0.5773502691896258 0.5773502691896258 0.5773502691896258 2.094395
  98. children [
  99. Solid {
  100. translation 0 0.35 0
  101. rotation 1 0 0 1.5707959999999999
  102. children [
  103. Propeller {
  104. shaftAxis 0 -1 0
  105. thrustConstants -12.2583125 0
  106. torqueConstants 18 0
  107. device RotationalMotor {
  108. name "motor3"
  109. controlPID 10.001 0 0
  110. maxVelocity 1000
  111. }
  112. fastHelix Solid {
  113. children [
  114. Shape {
  115. appearance Appearance {
  116. material Material {
  117. diffuseColor 1 0 0.1
  118. }
  119. }
  120. geometry Cylinder {
  121. height 0.002
  122. radius 0.02
  123. }
  124. }
  125. ]
  126. }
  127. slowHelix Solid {
  128. rotation 0 1 0 1.1667874781290464
  129. children [
  130. Shape {
  131. appearance Appearance {
  132. material Material {
  133. diffuseColor 1 0 0.1
  134. }
  135. }
  136. geometry Cylinder {
  137. height 0.002
  138. radius 0.02
  139. }
  140. }
  141. ]
  142. }
  143. }
  144. ]
  145. physics Physics {
  146. mass 0.25
  147. }
  148. }
  149. Shape {
  150. appearance Appearance {
  151. material Material {
  152. }
  153. }
  154. geometry DEF DEF_ARM Cylinder {
  155. height 0.1
  156. radius 0.01
  157. }
  158. }
  159. ]
  160. }
  161. Transform {
  162. translation 0 0 0.09999999999999999
  163. rotation 0 0.7071067811865476 0.7071067811865476 -3.1415923071795864
  164. children [
  165. Solid {
  166. translation 0 0.35 0
  167. rotation 1 0 0 1.5707959999999999
  168. children [
  169. Propeller {
  170. shaftAxis 0 1 0
  171. thrustConstants 12.2583125 0
  172. torqueConstants 18 0
  173. device RotationalMotor {
  174. name "motor2"
  175. controlPID 10.001 0 0
  176. maxVelocity 1000
  177. }
  178. fastHelix Solid {
  179. children [
  180. Shape {
  181. appearance Appearance {
  182. material Material {
  183. diffuseColor 1 0 0.1
  184. }
  185. }
  186. geometry Cylinder {
  187. height 0.002
  188. radius 0.02
  189. }
  190. }
  191. ]
  192. }
  193. slowHelix Solid {
  194. rotation 0 -1 0 5.370767303526115
  195. children [
  196. Shape {
  197. appearance Appearance {
  198. material Material {
  199. diffuseColor 1 0 0.1
  200. }
  201. }
  202. geometry Cylinder {
  203. height 0.002
  204. radius 0.02
  205. }
  206. }
  207. ]
  208. }
  209. }
  210. ]
  211. name "solid(2)"
  212. physics Physics {
  213. mass 0.25
  214. }
  215. }
  216. Shape {
  217. appearance Appearance {
  218. material Material {
  219. diffuseColor 1 0.09999999999999999 0
  220. }
  221. }
  222. geometry USE DEF_ARM
  223. }
  224. ]
  225. }
  226. Transform {
  227. translation 0.09999999999999999 0 0
  228. rotation 0.5773502691896258 0.5773502691896258 0.5773502691896258 -2.094395307179586
  229. children [
  230. Solid {
  231. translation 0 0.35 0
  232. rotation 1 0 0 1.5707959999999999
  233. children [
  234. Propeller {
  235. shaftAxis 0 -1 0
  236. thrustConstants -12.2583125 0
  237. torqueConstants 18 0
  238. device RotationalMotor {
  239. name "motor1"
  240. controlPID 10.001 0 0
  241. maxVelocity 1000
  242. }
  243. fastHelix Solid {
  244. children [
  245. Shape {
  246. appearance Appearance {
  247. material Material {
  248. diffuseColor 1 0 0.1
  249. }
  250. }
  251. geometry Cylinder {
  252. height 0.002
  253. radius 0.02
  254. }
  255. }
  256. ]
  257. }
  258. slowHelix Solid {
  259. rotation 0 1 0 5.486397909883531
  260. children [
  261. Shape {
  262. appearance Appearance {
  263. material Material {
  264. diffuseColor 1 0 0.1
  265. }
  266. }
  267. geometry Cylinder {
  268. height 0.002
  269. radius 0.02
  270. }
  271. }
  272. ]
  273. }
  274. }
  275. ]
  276. name "solid(1)"
  277. physics Physics {
  278. mass 0.25
  279. }
  280. }
  281. Shape {
  282. appearance Appearance {
  283. material Material {
  284. diffuseColor 1 0.09999999999999999 0
  285. }
  286. }
  287. geometry USE DEF_ARM
  288. }
  289. ]
  290. }
  291. Transform {
  292. translation 0 0 -0.09999999999999999
  293. rotation 1 0 0 -1.5707963071795863
  294. children [
  295. Solid {
  296. translation 0 0.35 0
  297. rotation 1 0 0 1.5707959999999999
  298. children [
  299. Propeller {
  300. shaftAxis 0 1 0
  301. thrustConstants 12.2583125 0
  302. torqueConstants 18 0
  303. device RotationalMotor {
  304. name "motor4"
  305. controlPID 10.001 0 0
  306. maxVelocity 1000
  307. }
  308. fastHelix Solid {
  309. children [
  310. Shape {
  311. appearance Appearance {
  312. material Material {
  313. diffuseColor 1 0 0.1
  314. }
  315. }
  316. geometry Cylinder {
  317. height 0.002
  318. radius 0.02
  319. }
  320. }
  321. ]
  322. }
  323. slowHelix Solid {
  324. rotation 0 -1 0 5.350616673324008
  325. children [
  326. Shape {
  327. appearance Appearance {
  328. material Material {
  329. diffuseColor 1 0 0.1
  330. }
  331. }
  332. geometry Cylinder {
  333. height 0.002
  334. radius 0.02
  335. }
  336. }
  337. ]
  338. }
  339. }
  340. ]
  341. name "solid(3)"
  342. physics Physics {
  343. mass 0.25
  344. }
  345. }
  346. Shape {
  347. appearance Appearance {
  348. material Material {
  349. diffuseColor 0.7999999999999999 0.7999999999999999 0.7999999999999999
  350. }
  351. }
  352. geometry USE DEF_ARM
  353. }
  354. ]
  355. }
  356. ]
  357. name "quad_x_sitl"
  358. boundingObject Box {
  359. size 0.1 0.1 0.1
  360. }
  361. physics Physics {
  362. density -1
  363. mass 1.5
  364. centerOfMass [
  365. 0 0 0
  366. ]
  367. }
  368. rotationStep 0.261799
  369. controller "ardupilot_SITL_QUAD"
  370. controllerArgs "-p 5599 -df 0.01"
  371. supervisor TRUE
  372. }
  373. DirectionalLight {
  374. direction 0 -1 0
  375. }
  376. UnevenTerrain {
  377. size 500 1 500
  378. }
  379. HouseWithGarage {
  380. translation 174.25 1.88 -157.5
  381. rotation 0 1 0 -1.5707963071795863
  382. }
  383. AdvertisingBoard {
  384. translation 0 2.35 -5.71
  385. }
  386. AdvertisingBoard {
  387. translation 84.03999999999999 2.35 -5.81
  388. rotation 0 1 0 -1.5707963071795863
  389. name "advertising board(1)"
  390. }