Advertisement
kokopelli

diffusion_10_wifi.argos

Feb 1st, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <argos-configuration>
  3.  
  4. <!-- ************************* -->
  5. <!-- * General configuration * -->
  6. <!-- ************************* -->
  7. <framework>
  8. <system threads="0" />
  9. <experiment length="0"
  10. ticks_per_second="10"
  11. random_seed="124" />
  12. </framework>
  13.  
  14. <!-- *************** -->
  15. <!-- * Controllers * -->
  16. <!-- *************** -->
  17. <controllers>
  18.  
  19. <footbot_diffusion_controller id="fdc"
  20. library="build/controllers/footbot_diffusion/libfootbot_diffusion.so">
  21. <actuators>
  22. <wifi implementation="extern" />
  23. <differential_steering implementation="default" />
  24. </actuators>
  25. <sensors>
  26. <footbot_proximity implementation="default" show_rays="true" />
  27. </sensors>
  28. <params alpha="7.5" delta="0.1" velocity="5" />
  29.  
  30.  
  31. </footbot_diffusion_controller>
  32.  
  33. </controllers>
  34.  
  35. <!-- *********************** -->
  36. <!-- * Arena configuration * -->
  37. <!-- *********************** -->
  38. <arena size="5, 5, 1" center="0,0,0.5">
  39.  
  40. <box id="wall_north" size="4,0.1,0.5" movable="false">
  41. <body position="0,2,0" orientation="0,0,0" />
  42. </box>
  43. <box id="wall_south" size="4,0.1,0.5" movable="false">
  44. <body position="0,-2,0" orientation="0,0,0" />
  45. </box>
  46. <box id="wall_east" size="0.1,4,0.5" movable="false">
  47. <body position="2,0,0" orientation="0,0,0" />
  48. </box>
  49. <box id="wall_west" size="0.1,4,0.5" movable="false">
  50. <body position="-2,0,0" orientation="0,0,0" />
  51. </box>
  52.  
  53. <!--
  54. You can distribute entities randomly. Here, we distribute
  55. 10 foot-bots in this way:
  56. - the position is uniformly distributed
  57. on the ground, in the square whose corners are (-2,-2) and (2,2)
  58. - the orientations are non-zero only when rotating around Z and chosen
  59. from a gaussian distribution, whose mean is zero degrees and
  60. standard deviation is 360 degrees.
  61. -->
  62. <distribute>
  63. <position method="uniform" min="-2,-2,0" max="2,2,0" />
  64. <orientation method="gaussian" mean="0,0,0" std_dev="360,0,0" />
  65. <entity quantity="10" max_trials="100">
  66. <foot-bot id="fb">
  67. <controller config="fdc" />
  68. </foot-bot>
  69. </entity>
  70. </distribute>
  71.  
  72. <!--
  73. We distribute 5 boxes uniformly in position and rotation around Z.
  74. -->
  75. <distribute>
  76. <position method="uniform" min="-2,-2,0" max="2,2,0" />
  77. <orientation method="uniform" min="0,0,0" max="360,0,0" />
  78. <entity quantity="5" max_trials="100">
  79. <box id="b" size="0.3,0.3,0.5" movable="false" />
  80. </entity>
  81. </distribute>
  82.  
  83. <!--
  84. We distribute cylinders uniformly in position and with
  85. constant rotation (rotating a cylinder around Z does not
  86. matter)
  87. -->
  88. <distribute>
  89. <position method="uniform" min="-2,-2,0" max="2,2,0" />
  90. <orientation method="constant" values="0,0,0" />
  91. <entity quantity="5" max_trials="100">
  92. <cylinder id="c" height="0.5" radius="0.15" movable="false" />
  93. </entity>
  94. </distribute>
  95. </arena>
  96.  
  97. <!-- ******************* -->
  98. <!-- * Physics engines * -->
  99. <!-- ******************* -->
  100. <physics_engines>
  101. <dynamics2d id="dyn2d" />
  102. </physics_engines>
  103.  
  104. <!-- ********* -->
  105. <!-- * Media * -->
  106. <!-- ********* -->
  107. <media>
  108.  
  109. </media>
  110.  
  111. <!-- ****************** -->
  112. <!-- * Visualization * -->
  113. <!-- ****************** -->
  114. <visualization>
  115. <qt-opengl />
  116. </visualization>
  117.  
  118. </argos-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement