Slalom.xosc 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0"?>
  2. <OpenSCENARIO>
  3. <FileHeader revMajor="1" revMinor="0" date="2020-07-30T12:00:00" description="CARLA:Slalom" author="Dimitri Scheftelowitsch"/>
  4. <ParameterDeclarations/>
  5. <CatalogLocations/>
  6. <RoadNetwork>
  7. <LogicFile filepath="Town01"/>
  8. <SceneGraphFile filepath=""/>
  9. </RoadNetwork>
  10. <Entities>
  11. <ScenarioObject name="hero">
  12. <Vehicle name="vehicle.nissan.micra" vehicleCategory="car">
  13. <ParameterDeclarations/>
  14. <Performance maxSpeed="69.444" maxAcceleration="200" maxDeceleration="10.0"/>
  15. <BoundingBox>
  16. <Center x="1.5" y="0.0" z="0.9"/>
  17. <Dimensions width="2.1" length="4.5" height="1.8"/>
  18. </BoundingBox>
  19. <Axles>
  20. <FrontAxle maxSteering="0.5" wheelDiameter="0.6" trackWidth="1.8" positionX="3.1" positionZ="0.3"/>
  21. <RearAxle maxSteering="0.0" wheelDiameter="0.6" trackWidth="1.8" positionX="0.0" positionZ="0.3"/>
  22. </Axles>
  23. <Properties>
  24. <Property name="type" value="ego_vehicle"/>
  25. </Properties>
  26. </Vehicle>
  27. </ScenarioObject>
  28. <ScenarioObject name="c1">
  29. <MiscObject mass="500.0" name="static.prop.container" miscObjectCategory="obstacle">
  30. <ParameterDeclarations/>
  31. <BoundingBox>
  32. <Center x="-1.0" y="0.0" z="0.85"/>
  33. <Dimensions width="1.0" length="2.0" height="1.7"/>
  34. </BoundingBox>
  35. <Properties>
  36. <Property name="type" value="simulation"/>
  37. </Properties>
  38. </MiscObject>
  39. </ScenarioObject>
  40. <ScenarioObject name="c2">
  41. <MiscObject mass="500.0" name="static.prop.container" miscObjectCategory="obstacle">
  42. <ParameterDeclarations/>
  43. <BoundingBox>
  44. <Center x="-1.0" y="0.0" z="0.85"/>
  45. <Dimensions width="1.0" length="2.0" height="1.7"/>
  46. </BoundingBox>
  47. <Properties>
  48. <Property name="type" value="simulation"/>
  49. </Properties>
  50. </MiscObject>
  51. </ScenarioObject>
  52. <ScenarioObject name="c3">
  53. <MiscObject mass="500.0" name="static.prop.container" miscObjectCategory="obstacle">
  54. <ParameterDeclarations/>
  55. <BoundingBox>
  56. <Center x="-1.0" y="0.0" z="0.85"/>
  57. <Dimensions width="1.0" length="2.0" height="1.7"/>
  58. </BoundingBox>
  59. <Properties>
  60. <Property name="type" value="simulation"/>
  61. </Properties>
  62. </MiscObject>
  63. </ScenarioObject>
  64. <ScenarioObject name="c4">
  65. <MiscObject mass="500.0" name="static.prop.container" miscObjectCategory="obstacle">
  66. <ParameterDeclarations/>
  67. <BoundingBox>
  68. <Center x="-1.0" y="0.0" z="0.85"/>
  69. <Dimensions width="1.0" length="2.0" height="1.7"/>
  70. </BoundingBox>
  71. <Properties>
  72. <Property name="type" value="simulation"/>
  73. </Properties>
  74. </MiscObject>
  75. </ScenarioObject>
  76. <ScenarioObject name="c5">
  77. <MiscObject mass="500.0" name="static.prop.container" miscObjectCategory="obstacle">
  78. <ParameterDeclarations/>
  79. <BoundingBox>
  80. <Center x="-1.0" y="0.0" z="0.85"/>
  81. <Dimensions width="1.0" length="2.0" height="1.7"/>
  82. </BoundingBox>
  83. <Properties>
  84. <Property name="type" value="simulation"/>
  85. </Properties>
  86. </MiscObject>
  87. </ScenarioObject>
  88. </Entities>
  89. <Storyboard>
  90. <Init>
  91. <Actions>
  92. <GlobalAction>
  93. <EnvironmentAction>
  94. <Environment name="Environment1">
  95. <TimeOfDay animation="false" dateTime="2019-06-25T12:00:00"/>
  96. <Weather cloudState="free">
  97. <Sun intensity="0.35" azimuth="0" elevation="1.31"/>
  98. <Fog visualRange="100000.0"/>
  99. <Precipitation precipitationType="rain" intensity="0.2"/>
  100. </Weather>
  101. <RoadCondition frictionScaleFactor="1.0"/>
  102. </Environment>
  103. </EnvironmentAction>
  104. </GlobalAction>
  105. <Private entityRef="hero">
  106. <PrivateAction>
  107. <TeleportAction>
  108. <Position>
  109. <WorldPosition x="92.44" y="314" z="0" h="-1.5707963267948966"/>
  110. </Position>
  111. </TeleportAction>
  112. </PrivateAction>
  113. <PrivateAction>
  114. <ControllerAction>
  115. <AssignControllerAction>
  116. <Controller name="HeroAgent">
  117. <Properties>
  118. <Property name="module" value="external_control"/>
  119. </Properties>
  120. </Controller>
  121. </AssignControllerAction>
  122. <OverrideControllerValueAction>
  123. <Throttle value="0" active="false"/>
  124. <Brake value="0" active="false"/>
  125. <Clutch value="0" active="false"/>
  126. <ParkingBrake value="0" active="false"/>
  127. <SteeringWheel value="0" active="false"/>
  128. <Gear number="0" active="false"/>
  129. </OverrideControllerValueAction>
  130. </ControllerAction>
  131. </PrivateAction>
  132. </Private>
  133. <Private entityRef="c1">
  134. <PrivateAction>
  135. <TeleportAction>
  136. <Position>
  137. <WorldPosition x="90" y="308" z="0.0" h="-1.57079632679"/>
  138. </Position>
  139. </TeleportAction>
  140. </PrivateAction>
  141. </Private>
  142. <Private entityRef="c2">
  143. <PrivateAction>
  144. <TeleportAction>
  145. <Position>
  146. <WorldPosition x="95" y="298" z="0.3" h="1.57079632679"/>
  147. </Position>
  148. </TeleportAction>
  149. </PrivateAction>
  150. </Private>
  151. <Private entityRef="c3">
  152. <PrivateAction>
  153. <TeleportAction>
  154. <Position>
  155. <WorldPosition x="91" y="288" z="0.3" h="0"/>
  156. </Position>
  157. </TeleportAction>
  158. </PrivateAction>
  159. </Private>
  160. <Private entityRef="c4">
  161. <PrivateAction>
  162. <TeleportAction>
  163. <Position>
  164. <WorldPosition x="93" y="278" z="0.0" h="0"/>
  165. </Position>
  166. </TeleportAction>
  167. </PrivateAction>
  168. </Private>
  169. <Private entityRef="c5">
  170. <PrivateAction>
  171. <TeleportAction>
  172. <Position>
  173. <WorldPosition x="91" y="268" z="0.0" h="0"/>
  174. </Position>
  175. </TeleportAction>
  176. </PrivateAction>
  177. </Private>
  178. </Actions>
  179. </Init>
  180. <Story name="MyStory">
  181. <Act name="Behavior">
  182. <ManeuverGroup name="NoManeuver" maximumExecutionCount="1">
  183. <Actors selectTriggeringEntities="false">
  184. <EntityRef entityRef="hero"/>
  185. </Actors>
  186. </ManeuverGroup>
  187. <StartTrigger>
  188. <ConditionGroup>
  189. <Condition name="OverallStartCondition" delay="0" conditionEdge="rising">
  190. <ByValueCondition>
  191. <SimulationTimeCondition value="120.0" rule="greaterThan"/>
  192. </ByValueCondition>
  193. </Condition>
  194. </ConditionGroup>
  195. </StartTrigger>
  196. <StopTrigger>
  197. <ConditionGroup>
  198. <Condition name="EndCondition" delay="1" conditionEdge="rising">
  199. <ByValueCondition>
  200. <SimulationTimeCondition value="120.0" rule="greaterThan"/>
  201. </ByValueCondition>
  202. </Condition>
  203. </ConditionGroup>
  204. </StopTrigger>
  205. </Act>
  206. </Story>
  207. <StopTrigger>
  208. <ConditionGroup>
  209. <Condition name="criteria_RunningStopTest" delay="0" conditionEdge="rising">
  210. <ByValueCondition>
  211. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  212. </ByValueCondition>
  213. </Condition>
  214. <Condition name="criteria_RunningRedLightTest" delay="0" conditionEdge="rising">
  215. <ByValueCondition>
  216. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  217. </ByValueCondition>
  218. </Condition>
  219. <Condition name="criteria_WrongLaneTest" delay="0" conditionEdge="rising">
  220. <ByValueCondition>
  221. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  222. </ByValueCondition>
  223. </Condition>
  224. <Condition name="criteria_OnSidewalkTest" delay="0" conditionEdge="rising">
  225. <ByValueCondition>
  226. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  227. </ByValueCondition>
  228. </Condition>
  229. <Condition name="criteria_KeepLaneTest" delay="0" conditionEdge="rising">
  230. <ByValueCondition>
  231. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  232. </ByValueCondition>
  233. </Condition>
  234. <Condition name="criteria_CollisionTest" delay="0" conditionEdge="rising">
  235. <ByValueCondition>
  236. <ParameterCondition parameterRef="" value="" rule="lessThan"/>
  237. </ByValueCondition>
  238. </Condition>
  239. <Condition name="criteria_DrivenDistanceTest" delay="0" conditionEdge="rising">
  240. <ByValueCondition>
  241. <ParameterCondition parameterRef="distance_success" value="70" rule="lessThan"/>
  242. </ByValueCondition>
  243. </Condition>
  244. </ConditionGroup>
  245. </StopTrigger>
  246. </Storyboard>
  247. </OpenSCENARIO>