MCPcopy Create free account

hub / github.com/Thinklab-SJTU/Bench2Drive / types & classes

Types & classes340 in github.com/Thinklab-SJTU/Bench2Drive

↓ 60 callersClassParameterRef
This class stores osc parameter reference in its original form. Returns the converted value whenever it is used.
scenario_runner/srunner/tools/openscenario_parser.py:90
↓ 42 callersClassCollisionTest
This class contains an atomic test for collisions. Args: - actor (carla.Actor): CARLA actor to be used for this test - other_actor (
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:281
↓ 36 callersClassActorDestroy
This class contains an actor destroy behavior. Given an actor this behavior will delete it. Important parameters: - actor: CARLA act
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2601
↓ 36 callersClassDriveDistance
This class contains an atomic behavior to drive a certain distance. Important parameters: - actor: CARLA actor to execute the condition
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:1112
↓ 28 callersClassScenarioTimeout
This class is an idle behavior that waits for a set amount of time before stoping. It is meant to be used with the `ScenarioTimeoutTest`
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:4269
↓ 26 callersClassInTriggerDistanceToLocation
This class contains the trigger (condition) for a distance to a fixed location of a scenario Important parameters: - actor: CARLA ac
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:616
↓ 25 callersClassChangeOppositeBehavior
Updates the blackboard to change the parameters of the opposite road behavior. None values imply that these values won't be changed Args
scenario_runner/srunner/tools/background_manager.py:43
↓ 23 callersClassActorTransformSetter
This class contains an atomic behavior to set the transform of an actor. Important parameters: - actor: CARLA actor to execute the b
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2630
↓ 23 callersClassIdle
This class contains an idle behavior scenario Important parameters: - duration[optional]: Duration in seconds of this behavior A te
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2164
↓ 22 callersClassWaitEndIntersection
Atomic behavior that waits until the vehicles has gone outside the junction. If currently inside no intersection, it will wait until one is f
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:1240
↓ 20 callersClassHandleJunctionScenario
Updates the blackboard to tell the background activity to adapt to a junction scenario Args: clear_junction (bool): Remove all actor
scenario_runner/srunner/tools/background_manager.py:254
↓ 20 callersClassScenarioTimeoutTest
Atomic Criterion to detect if the actor has been incapable of finishing an scenario Args: actor (carla.Actor): CARLA actor to be use
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:2152
↓ 18 callersClassTrafficLightFreezer
Behavior that freezes a group of traffic lights for a specific amount of time, returning them to their original state after ending it Im
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3453
↓ 17 callersClassTrafficEvent
TrafficEvent definition
scenario_runner/srunner/scenariomanager/traffic_events.py:38
↓ 14 callersClassActorFlow
Behavior that indefinitely creates actors at a location, controls them until another location, and then destroys them. Therefore, a paral
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2846
↓ 13 callersClassGlobalRoutePlanner
This class provides a very high level route plan.
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:19
↓ 12 callersClassInTriggerDistanceToVehicle
This class contains the trigger distance (condition) between to actors of a scenario Important parameters: - actor: CARLA actor to e
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:556
↓ 12 callersClassWaitForever
This class contains a behavior that just waits forever. Useful to stop some behavior sequences from stopping unwated parts of the behavior tr
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2203
↓ 11 callersClassChangeRoadBehavior
Updates the blackboard to change the parameters of the road behavior. None values imply that these values won't be changed. Args:
scenario_runner/srunner/tools/background_manager.py:18
↓ 11 callersClassInTimeToArrivalToLocation
This class contains a check if a actor arrives within a given time at a given location. Important parameters: - actor: CARLA actor t
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:766
↓ 11 callersClassLeaveSpaceInFront
Updates the blackboard to tell the background activity that the ego needs more space in front. This only works at roads, not junctions.
scenario_runner/srunner/tools/background_manager.py:159
↓ 10 callersClassSource
Source object to store its position and its responsible actors
scenario_runner/srunner/scenarios/background_activity.py:104
↓ 10 callersClassSwitchRouteSources
Updates the blackboard to tell the background activity to (de)activate all route sources
scenario_runner/srunner/tools/background_manager.py:174
↓ 10 callersClassSwitchWrongDirectionTest
Atomic that switch the OutsideRouteLanesTest criterion. Args: active (bool): True: activated; False: deactivated name (str):
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:4047
↓ 9 callersClassWaitUntilInFrontPosition
Behavior that support the creation of cut ins. It waits until the actor has passed another actor Parameters: - actor: the one getting in
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:1061
↓ 9 callersClassWaypointFollower
This is an atomic behavior to follow waypoints while maintaining a given speed. If no plan is provided, the actor will follow its foward wayp
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2226
↓ 8 callersClassSensorConfigurationInvalid
Exceptions thrown when the sensors used by the agent are not allowed for that specific submissions
leaderboard/leaderboard/envs/sensor_interface.py:26
↓ 8 callersClassSetMaxSpeed
Updates the blackboard to tell the background activity that its behavior is restriced to a maximum speed
scenario_runner/srunner/tools/background_manager.py:90
↓ 7 callersClassActorConfigurationData
This is a configuration base class to hold model and transform attributes
scenario_runner/srunner/scenarioconfigs/scenario_configuration.py:15
↓ 7 callersClassBasicAgent
BasicAgent implements an agent that navigates the scene. This agent respects traffic lights and other vehicles, but ignores stop signs. I
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:20
↓ 7 callersClassKeepVelocity
This class contains an atomic behavior to keep the provided velocity. The controlled traffic participant will accelerate as fast as possible
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1393
↓ 6 callersClassRemoveRoadLane
Updates the blackboard to tell the background activity to remove its actors from the given lane and stop generating new ones on this lane, o
scenario_runner/srunner/tools/background_manager.py:188
↓ 5 callersClassReAddRoadLane
Updates the blackboard to tell the background activity to readd the ego road lane. Args: offset: 0 to readd the ego lane, 1 for the
scenario_runner/srunner/tools/background_manager.py:207
↓ 5 callersClassStopVehicle
This class contains an atomic stopping behavior. The controlled traffic participant will decelerate with _bake_value_ until reaching a full s
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1567
↓ 5 callersClassStoryElementStatusToBlackboard
Reflect the status of the decorator's child story element to the blackboard. Args: child: the child behaviour or subtree sto
scenario_runner/srunner/scenarios/open_scenario.py:75
↓ 5 callersClassWaitForBlackboardVariable
Atomic behavior that keeps running until the blackboard variable is set to the corresponding value. Used to avoid returning FAILURE if the bl
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:1280
↓ 4 callersClassBasicAgentBehavior
This class contains an atomic behavior, which uses the basic_agent from CARLA to control the actor until reaching a target location.
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1965
↓ 4 callersClassHandBrakeVehicle
This class contains an atomic hand brake behavior. To set the hand brake value of the vehicle. Important parameters: - vehicle: CARL
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2561
↓ 4 callersClassInTriggerRegion
This class contains the trigger region (condition) of a scenario Important parameters: - actor: CARLA actor to execute the behavior
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:509
↓ 4 callersClassLocation
scenario_runner/srunner/tests/carla_mocks/carla.py:88
↓ 4 callersClassMovePedestrianWithEgo
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:4327
↓ 4 callersClassOppositeActorFlow
Similar to ActorFlow, but this is meant as an actor flow in the opposite direction. As such, some configurations are different and for clarit
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3010
↓ 4 callersClassRotation
scenario_runner/srunner/tests/carla_mocks/carla.py:102
↓ 4 callersClassStandStill
This class contains a standstill behavior of a scenario Important parameters: - actor: CARLA actor to execute the behavior - name: N
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:223
↓ 4 callersClassWatchdog
Simple watchdog timer to detect timeouts Args: timeout (float): Timeout value of the watchdog [seconds]. If triggered, raises a Keyb
scenario_runner/srunner/scenariomanager/watchdog.py:21
↓ 3 callersClassAddNoiseToRouteEgo
This class contains an atomic jitter behavior. To add noise to steer as well as throttle of the vehicle. Important parameters: - act
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1876
↓ 3 callersClassChangeActorControl
Atomic to change the longitudinal/lateral control logic for an actor. The (actor, controller) pair is stored inside the Blackboard. The
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:311
↓ 3 callersClassChangeActorTargetSpeed
Atomic to change the target speed for an actor controller. The behavior is in RUNNING state until the distance/duration conditions are s
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:408
↓ 3 callersClassLaneChange
This class inherits from the class WaypointFollower. This class contains an atomic lane change behavior to a parallel lane. The vehicle
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2447
↓ 3 callersClassLeaveCrossingSpace
Updates the blackboard to tell the background activity that the ego needs more space in front. This only works at roads, not junctions.
scenario_runner/srunner/tools/background_manager.py:240
↓ 3 callersClassLocalPlanner
LocalPlanner implements the basic behavior of following a trajectory of waypoints that is generated on-the-fly. The low-level motion of
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:31
↓ 3 callersClassROSLauncher
leaderboard/leaderboard/autoagents/ros_base_agent.py:60
↓ 3 callersClassScenarioConfiguration
This class provides a basic scenario configuration incl.: - configurations for all actors - town, where the scenario should be executed
scenario_runner/srunner/scenarioconfigs/scenario_configuration.py:87
↓ 3 callersClassTimeOut
This class contains an atomic timeout behavior. It uses the CARLA game time, not the system time which is used by the py_trees timer.
scenario_runner/srunner/scenariomanager/timer.py:134
↓ 3 callersClassWaitUntilInFront
Behavior that support the creation of cut ins. It waits until the actor has passed another actor Parameters: - actor: the one getting in
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:985
↓ 2 callersClassActorBlockedTest
This test will fail if the actor has had its linear velocity lower than a specific value for a specific amount of time Important paramete
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:417
↓ 2 callersClassBackgroundBehavior
Handles the background activity
scenario_runner/srunner/scenarios/background_activity.py:165
↓ 2 callersClassBatchActorTransformSetter
This class contains an atomic behavior to set the transform of an actor. Important parameters: - actor_transform_list: list [carla.A
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2683
↓ 2 callersClassCallBack
leaderboard/leaderboard/envs/sensor_interface.py:133
↓ 2 callersClassCarlaBluePrint
scenario_runner/srunner/tests/carla_mocks/carla.py:45
↓ 2 callersClassChangeActorLaneOffset
OpenSCENARIO atomic. Atomic to change the offset of the controller. The behavior is in RUNNING state until the offset os reached (if 'co
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1030
↓ 2 callersClassChangeActorWaypoints
Atomic to change the waypoints for an actor controller. The behavior is in RUNNING state until the last waypoint is reached, or if a sec
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:728
↓ 2 callersClassChangeAutoPilot
This class contains an atomic behavior to disable/enable the use of the autopilot. Important parameters: - actor: CARLA actor to execute
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1502
↓ 2 callersClassChangeParameter
This is an atomic behavior to change the osc parameter value. Args: parameter_ref (str): parameter name value (any): Paramet
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:191
↓ 2 callersClassChangeRoadFriction
Atomic to update the road friction in CARLA. The behavior immediately terminates with SUCCESS after updating the friction. Args:
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:262
↓ 2 callersClassChangeWeather
Atomic to write a new weather configuration into the blackboard. Used in combination with OSCWeatherBehavior() to have a continuous weather s
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:227
↓ 2 callersClassConstantVelocityAgentBehavior
This class contains an atomic behavior, which uses the constant_velocity_agent from CARLA to control the actor until reaching a target lo
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2025
↓ 2 callersClassCutIn
Atomic to make an actor lane change using a Python API agent, cutting in front of another one The behavior creates a lane change path and is
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1774
↓ 2 callersClassInRouteTest
The test is a success if the actor is never outside route. The actor can go outside of the route but only for a certain amount of distance
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1387
↓ 2 callersClassInTimeToArrivalToVehicle
This class contains a check if a actor arrives within a given time at another actor. Important parameters: - actor: CARLA actor to e
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:821
↓ 2 callersClassInTriggerDistanceToNextIntersection
This class contains the trigger (condition) for a distance to the next intersection of a scenario Important parameters: - actor: CAR
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:668
↓ 2 callersClassInTriggerDistanceToOSCPosition
OpenSCENARIO atomic This class contains the trigger condition for a distance to an OpenSCENARIO position Args: actor (carla.Acto
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:80
↓ 2 callersClassMinimumSpeedRouteTest
Check at which stage of the route is the actor at each tick Important parameters: - actor: CARLA actor to be used for this test - ro
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1957
↓ 2 callersClassOSCStartEndCondition
This class contains a check if a named story element has started/terminated. Important parameters: - element_name: The story element's n
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:460
↓ 2 callersClassOpenDriveMapReader
leaderboard/leaderboard/envs/sensor_interface.py:128
↓ 2 callersClassOpenScenario
Implementation of the OpenSCENARIO scenario
scenario_runner/srunner/scenarios/open_scenario.py:172
↓ 2 callersClassOpenScenarioConfiguration
Limitations: - Only one Story + Init is supported per Storyboard
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:27
↓ 2 callersClassOutsideRouteLanesTest
Atomic to detect if the vehicle is either on a sidewalk or at a wrong lane. The distance spent outside is computed and it is returned as a pe
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:984
↓ 2 callersClassRotatedRectangle
This class contains method to draw rectangle and find intersection point.
scenario_runner/srunner/tools/scenario_helper.py:805
↓ 2 callersClassRouteCompletionTest
Check at which stage of the route is the actor at each tick Important parameters: - actor: CARLA actor to be used for this test - ro
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1513
↓ 2 callersClassRouteLightsBehavior
Behavior responsible for turning the street lights on and off depending on the weather conditions. Only those around the ego vehicle will be
scenario_runner/srunner/scenariomanager/lights_sim.py:20
↓ 2 callersClassRouteRecord
leaderboard/leaderboard/utils/statistics_manager.py:70
↓ 2 callersClassRouteScenarioConfiguration
Basic configuration of a RouteScenario
scenario_runner/srunner/scenarioconfigs/route_scenario_configuration.py:43
↓ 2 callersClassRouteTimeoutBehavior
Behavior responsible of the route's timeout. With an initial value, it increases every time the agent advanced through the route, and is depe
scenario_runner/srunner/scenariomanager/timer.py:162
↓ 2 callersClassRouteWeatherBehavior
Given a set of route weathers ([position, carla.WeatherParameters]), monitors the ego vehicle to dynamically change the weather as the ego ad
scenario_runner/srunner/scenariomanager/weather_sim.py:169
↓ 2 callersClassRunningRedLightTest
Check if an actor is running a red light Important parameters: - actor: CARLA actor to be used for this test - terminate_on_failure
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1620
↓ 2 callersClassRunningStopTest
Check if an actor is running a stop sign Important parameters: - actor: CARLA actor to be used for this test - terminate_on_failure
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1799
↓ 2 callersClassScenarioTriggerer
Handles the triggering of the scenarios that are part of a route. Initializes a list of blackboard variables to False, and only sets them to
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3843
↓ 2 callersClassSensorInterface
leaderboard/leaderboard/envs/sensor_interface.py:198
↓ 2 callersClassSpeedometerReader
Sensor to measure the speed of the vehicle.
leaderboard/leaderboard/envs/sensor_interface.py:90
↓ 2 callersClassStatisticsManager
This is the statistics manager for the CARLA leaderboard. It gathers data at runtime via the scenario evaluation criteria.
leaderboard/leaderboard/utils/statistics_manager.py:193
↓ 2 callersClassSyncArrivalOSC
Atomic to make two actors arrive at their corresponding places at the same time The behavior is in RUNNING state until the "main" actor has
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:570
↓ 2 callersClassTrack
This enum represents the different tracks of the CARLA AD leaderboard.
leaderboard/leaderboard/autoagents/autonomous_agent.py:21
↓ 2 callersClassTransform
scenario_runner/srunner/tests/carla_mocks/carla.py:116
↓ 2 callersClassVehicle
scenario_runner/srunner/tests/carla_mocks/carla.py:242
↓ 2 callersClassWaypoint
scenario_runner/srunner/tests/carla_mocks/carla.py:125
↓ 2 callersClassWeather
Class to simulate weather in CARLA according to the astronomic behavior of the sun The sun position (azimuth and altitude angles) is obtaine
scenario_runner/srunner/scenariomanager/weather_sim.py:26
↓ 2 callersClassWorld
scenario_runner/srunner/tests/carla_mocks/carla.py:246
↓ 1 callersClassAccelerateToCatchUp
This class contains an atomic acceleration behavior. The car will accelerate until it is faster than another car, in order to catch up distan
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1314
↓ 1 callersClassActorControl
This class provides a wrapper (access mechanism) for user-defined actor controls. The controllers are loaded via importlib. Therefore, the mo
scenario_runner/srunner/scenariomanager/actorcontrols/actor_control.py:28
next →1–100 of 340, ranked by callers