webots_quadPlus.wbt 9.4 KB

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