ФЭНДОМ


Файл:Teambots City.jpg

Содержимое .ini файла Править

  1. // turn icons on
  2. view_icons ON
  3.  
  4. // Declare the locations of important places:
  5.  
  6. //Military Hospital
  7. define mil_hosp "-2050 -2990"
  8.  
  9. //Kuwait Regency Plaza 
  10. define krp_hotel "3700 4100"
  11.  
  12. //US Embassy
  13. define us_embassy "0 0"
  14.  
  15. //
  16. // Definition of highway parameters
  17. //
  18. define highway "linearobject EDU.cmu.cs.coral.simulation.HighwaySim" 
  19. //                     width   fg color  bg color  visionclass
  20. define highway_params "  100    x009000   x000000            2"
  21.  
  22. //
  23. // Definition of Road parameters
  24. //
  25. define road "linearobject EDU.cmu.cs.coral.simulation.RoadSim" 
  26. //                     width   fg color  bg color  visionclass
  27. define road_params    "  100    xFFFFFF   x000000            2"
  28.  
  29.  
  30. //======
  31. // SIMULATION BOUNDARY
  32. //======
  33. //
  34. // bounds left right bottom top
  35. //
  36. // bounds statements set the bounds of the visible "playing field" in
  37. // meters for a simulation.   If the aspect ratio of the bounds are not
  38. // the same as the graphical area set aside by the simulation, then
  39. // the robots may wander off the screen. 
  40.  
  41. bounds -25000 7200 -10000 12800
  42.  
  43.  
  44. //======
  45. // SEED
  46. //======
  47. //
  48. // seed number
  49. //
  50. // The seed statement sets the random number seed.  The default is
  51. // -1
  52.  
  53. seed 3
  54.  
  55.  
  56. //======
  57. // TIME
  58. //======
  59. //
  60. // time accel_rate
  61. //
  62. // The time statement sets the rate at which simulation time progresses
  63. // with respect to real time.  "time 0.5" will cause the simulation to
  64. // run at half speed, "time 1.0" will cause it to run at real time,
  65. // while "time 4.0" will run at 4 times normal speed.  Be careful
  66. // about too high of a value though because the simulation will
  67. // lose fidelity.  In fact, for slow computers, values less than 1.0
  68. // may be necessary to avoid jumpy behavior.  Here, we try to run 
  69. // at ten times real time.  In practicality, however, we are limited
  70. // by the maxtimestep, below.
  71.  
  72. time 5.0  // one times realtime
  73.  
  74.  
  75. //======
  76. // TIMEOUT
  77. //======
  78. //
  79. // timeout time
  80. //
  81. // The timeout statement indicates when the simulation will terminate in
  82. // milliseconds.  The program automatically terminates when this time
  83. // is reached.  If no timeout statement is given, the default is no
  84. // termination.  NOTE: you *must* use a timeout with a trials statement.
  85. //
  86. // timeout 10000 // ten seconds
  87.  
  88.  
  89. //======
  90. // TRIALS
  91. //======
  92. //
  93. // trials num_trials
  94. //
  95. // The trials statement indicates that the simulation should be run
  96. // a certain number of times.  Each trial automatically terminates when the
  97. // timeout time is reached, then a new trial is begun.  Note: certain hooks
  98. // are available in the ControlSystem class for you to know when trials
  99. // begin and end.  See the javadoc documentation.
  100. //
  101. // trials 100 // 100 trials
  102.  
  103.  
  104. //======
  105. // MAX TIME STEP
  106. //======
  107. //
  108. // maxtimestep milliseconds
  109. //
  110. // maxtimestep statements set the maximum time (in milliseconds) that can
  111. // transpire between discrete simulation steps.  This will keep the simulation
  112. // from getting jumpy on slow machines, or when/if your process gets
  113. // swapped out.
  114.  
  115. maxtimestep 100 // 1/10th of a second
  116.  
  117. //======
  118. // WINDOWSIZE
  119. //======
  120. //
  121. // windowsize width height
  122. //
  123. // The windowsize statement gives a default window size.  This can be
  124. // overridden on the command line.
  125.  
  126. windowsize 664 470
  127.  
  128.  
  129. //======
  130. // BACKGROUND COLOR
  131. //======
  132. //
  133. // background color
  134. //
  135. // A background statement sets the background color for the simulation.
  136. // The color must be given in hex format as "xRRGGBB" where RR indicates
  137. // the red component (00 for none, FF for full), GG is the green component,
  138. // and BB is the blue.  Here we use white:
  139.  
  140. background xFFFFFF
  141.  
  142. //======
  143. // BACKGROUND IMAGE
  144. //======
  145. //
  146. // background_image imagefile
  147. //
  148. // A background_image statement sets the background image for the simulation.
  149.  
  150. background_image "map1.jpg"
  151.  
  152.  
  153. //embassy
  154. object EDU.gatech.cc.is.simulation.BinSim us_embassy 0 300 x0000c0 x000000 3
  155.  
  156. //mil_hosp
  157. object EDU.gatech.cc.is.simulation.BinSim mil_hosp 0 300 x00FF00 x000000 3
  158.  
  159. //krp_hotel
  160. object EDU.gatech.cc.is.simulation.BinSim krp_hotel 0 300 xFFFFFF x000000 3
  161.  
  162. //highway declarations
  163.  
  164.  
  165. //Fifth Ring Motorway
  166. define frm_a  "-24500 1000"
  167. define frm_b  "-23000 800"
  168. define frm_c  "-17900 900"
  169. define frm_d  "-10200 1850"
  170. define frm_e  "-8350  2050"
  171. define frm_f  "-6800  2200"
  172. define frm_g  "-4900  2400"
  173. define frm_h  "-2600  2650"
  174. define frm_i  " 200   3700"
  175.  
  176. highway frm_a frm_b highway_params
  177. highway frm_b frm_c highway_params
  178. highway frm_c frm_d highway_params
  179. highway frm_d frm_e highway_params
  180. highway frm_e frm_f highway_params
  181. highway frm_f frm_g highway_params
  182. highway frm_g frm_h highway_params
  183. highway frm_h frm_i highway_params
  184.  
  185. // Аналогичое определение других дорожных трасс
  186. //Sixth Ring Road
  187. //King Faisal Motorway
  188. //Subhan Road
  189. //Two Holy Mosques Rd
  190. //Fahaheel Expressway
  191.  
  192.  
  193. //Khaled Ben Abdul Ali Street - определение улиц 
  194. define kbaas_a "-1100 -550"
  195. define kbaas_b "0 0"
  196. define kbaas_c "1900 1300"
  197.  
  198. road kbaas_a kbaas_b road_params
  199. road kbaas_b kbaas_c road_params
  200.  
  201.  
  202. // Определение роботов-агентов
  203. robot EDU.gatech.cc.is.abstractrobot.RescueVanSim 
  204. 	gorescue 0 500 1.0 xFFFFFF x0000c0 2 
  205. robot EDU.gatech.cc.is.abstractrobot.RescueVanSim 
  206. 	gorescue 1500 -500 1.0 xFFFFFF x0000c0 2 
  207. robot EDU.gatech.cc.is.abstractrobot.RescueVanSim 
  208. 	gorescue2 500 0 1.0 xFFFFFF x0000c0 2 
  209.  
  210. //hurt person
  211. object EDU.cmu.cs.coral.simulation.AttractorHurtPersonSim -4000 5000 0 1 x0000c0 xc00000 0
  212. object EDU.cmu.cs.coral.simulation.AttractorHurtPersonSim -4200 5000 0 1 x0000c0 xc00000 0
  213. object EDU.cmu.cs.coral.simulation.AttractorHurtPersonSim -3800 5100 0 1 x0000c0 xc00000 0
  214. object EDU.cmu.cs.coral.simulation.AttractorHurtPersonSim -3900 4900 0 1 x0000c0 xc00000 0
  215.  
  216. //regular person
  217. object EDU.cmu.cs.coral.simulation.AttractorPersonSim krp_hotel 0 1 x0000c0 xc00000 0

Класс 1 Править

Класс 2 Править

См. также Править

Обнаружено использование расширения AdBlock.


Викия — это свободный ресурс, который существует и развивается за счёт рекламы. Для блокирующих рекламу пользователей мы предоставляем модифицированную версию сайта.

Викия не будет доступна для последующих модификаций. Если вы желаете продолжать работать со страницей, то, пожалуйста, отключите расширение для блокировки рекламы.

Также на ФЭНДОМЕ

Случайная вики