Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log-agent #1083

Merged
merged 91 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
c64b186
New parsing (#858)
glopezdiest Feb 16, 2022
cf48714
Improve actor flow scenarios (#859)
glopezdiest Feb 16, 2022
a51e9c8
Changes in Actor Flow, implementation of Accident and Construction, c…
jackbart94 Mar 1, 2022
d61329d
Changed ActorFlow to use the TrafficManager
glopezdiest Mar 9, 2022
5c2f349
Routes can now have scenario specific criterias
glopezdiest Mar 11, 2022
2c87574
Scenarios are now route specific
glopezdiest Mar 14, 2022
723878f
Added urban bicycle flow prototype
glopezdiest Mar 16, 2022
1fb6b99
Added CHANGELOG (#870)
glopezdiest Mar 16, 2022
b82a681
Added VehicleOpensDoor scenario
glopezdiest Mar 18, 2022
e86b492
Minor changes
Mar 23, 2022
38cec5a
Fixed bug with new JucntionScenarioManager (#873)
glopezdiest Mar 23, 2022
3f63408
Added dynamic weathers to routes
glopezdiest Mar 25, 2022
92ec277
Improved traffic event handling (#877)
glopezdiest Apr 7, 2022
b784326
Added HighwayExit scenario
TayYim Apr 21, 2022
b424bea
Added minimum speed criteria
glopezdiest Apr 25, 2022
e42c950
Pretty code
Apr 25, 2022
1d6138b
New Parking Exit scenario
TayYim Apr 27, 2022
5835f09
General improvements (#884)
glopezdiest May 2, 2022
d467860
Improve bycicle flow scenario
glopezdiest May 4, 2022
8b223b6
Changed BA 'RemoveLane' for 'SwitchLane'
TayYim May 6, 2022
da308d8
New LB2.0 scenario improvements
glopezdiest May 9, 2022
7a4f9a8
Refined BA's target speed
glopezdiest May 10, 2022
dc6367a
Added HighwayCutIn scenario
glopezdiest May 10, 2022
f8c79fa
Added Idle (#898)
glopezdiest May 20, 2022
69c2ef7
Added ParkingCutIn scenario
glopezdiest May 23, 2022
a40f593
New MergerIntoSlowTraffic scenario
13370724230 May 25, 2022
26f6f7c
Improve night mode (#902)
glopezdiest May 27, 2022
6211150
Add yield to emergency vehicle scenario
TayYim Jun 2, 2022
492ac3b
Add new scenario PedestrianCrossing
TayYim Jun 15, 2022
5b4fb77
New Blocked intersection scenario
TayYim Jun 17, 2022
14ae69e
Added InvadingTurn scenario
TayYim Jun 30, 2022
441033a
Added Static cut in scenario
May-fang Jul 4, 2022
9a7b909
Added BicycleAtSideLane scenario
threewater-wang Jul 4, 2022
84a8c52
Improved route's timeout
glopezdiest Jul 4, 2022
716195e
Leaderboard 2.0 scenario improvements
glopezdiest Jul 4, 2022
21be2d5
Fixed several merge errors
glopezdiest Jul 5, 2022
098a00c
New scenario improvements
glopezdiest Jul 7, 2022
f2cfed2
Removed debug messages
Jul 7, 2022
850eed8
Added scenario timeouts
glopezdiest Jul 12, 2022
93ec2dc
Added frame to traffic events
joel-mb Jul 12, 2022
4fd3009
Added realtime to OutsideRouteLanesTest
glopezdiest Jul 14, 2022
aab83e1
More Leaderboard 2.0 scenario improvements
glopezdiest Jul 26, 2022
05ef0d7
Route obstacles + parked vehicle destruction
Jul 30, 2022
7ccbe74
Scenarios no longer spawn old vehicles
Aug 1, 2022
d63f73d
Added variable flow to route obstacles
Aug 3, 2022
ce3ae65
Added VehicleTurningRotue variations
Aug 8, 2022
da0da43
Added noise to control loss
Aug 12, 2022
d8a251d
Route improvements
Aug 17, 2022
4e93320
MinSpeed criteria checkpoints + Pedestrian patch
Aug 19, 2022
ee68a08
Fix bug PedestrianCrossing
Aug 19, 2022
b90c3d9
Fixed bug pedestrians and parked vehicles (#933)
joel-mb Sep 4, 2022
dbf92a1
Removed old test routes
Sep 15, 2022
13cf802
Fixed bug with YieldtoEV criteria
Sep 16, 2022
e1f82c5
Minor parameter changes
Sep 19, 2022
d706535
Improved scenarios
Oct 11, 2022
5b3c267
Added hand brake to BlockedIntersection
Oct 11, 2022
155c416
Revereted some of the constructions changes
Oct 13, 2022
30d2e2c
Some parameter changes
Oct 14, 2022
5cbc9b6
Removed unused code
Oct 14, 2022
27070a4
Prettyfied some criteria
Oct 17, 2022
cf8590e
Fixed units bug
Oct 17, 2022
97c7908
Parameter change
Oct 18, 2022
65384e8
Changed opposite flow parameters
Oct 18, 2022
e719626
Minor robustness changes
Oct 19, 2022
2f5dd36
Removed police car from several scenarios
Oct 27, 2022
292b717
Updated highway cut in parameters
Oct 28, 2022
7b5894c
Final parameter changes + some minor BA changes
Nov 4, 2022
f10a5b3
Added vehicle opens door stop
Feb 22, 2023
3ea5c91
Fixed VehicleOpensDoor
Mar 3, 2023
38a6868
Added ActroFlow patch
Mar 28, 2023
1e8de38
Minor sensor destruction change
Mar 31, 2023
32c6a4c
Changes numpy version to match CARLA's
Apr 12, 2023
8b5477b
Minor fix
Apr 18, 2023
d6385cb
Added tm ports to BA
Apr 19, 2023
f155a0a
Added the port to all set autopilots
Apr 19, 2023
2775d2c
Minor improvement to result writer and debug
Apr 21, 2023
d35e350
Added missing sensor destruction
Apr 21, 2023
5bbc79d
fix duplicate env initialization during runtime
TayYim May 15, 2023
d770997
check location in DriveDistance
TayYim May 18, 2023
ffffa66
Added spawn transforms to CDP actors
May 18, 2023
41ed9af
Merge branch 'carla-simulator:leaderboard_20_town_13' into leaderboar…
TayYim May 18, 2023
076a7d4
use log agent CDP
TayYim Jun 13, 2023
3285e08
Added ratio to min speed
Jun 13, 2023
b00aab2
Merge branch 'carla-simulator:leaderboard_20_town_13' into leaderboar…
TayYim Jun 13, 2023
a487905
Merge remote-tracking branch 'origin/leaderboard_20_town_13' into log…
TayYim Jun 13, 2023
c8eaf6d
fix min_speed_infractions RATIO 0.8
TayYim Jun 13, 2023
c38b50d
Add scenario name transfer
TayYim May 28, 2024
cb00309
Merge remote-tracking branch 'origin/master' into log_record
TayYim May 28, 2024
447bb3d
Merge remote-tracking branch 'origin/master' into log_record
TayYim May 28, 2024
d826a72
Add ego route setter and getter
TayYim May 28, 2024
0fc813e
Fix duplicate var
TayYim Jun 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions srunner/scenariomanager/carla_data_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class CarlaDataProvider(object): # pylint: disable=too-many-public-methods
_grp = None # type: GlobalRoutePlanner
_runtime_init_flag = False
_lock = threading.Lock()
_latest_scenario = ""

@staticmethod
def set_local_planner(plan):
Expand Down Expand Up @@ -268,6 +269,20 @@ def get_global_route_planner():
"""
return CarlaDataProvider._grp

@staticmethod
def set_ego_route(route):
"""
set the ego route
"""
CarlaDataProvider._ego_vehicle_route = route

@staticmethod
def get_ego_route():
"""
@return the ego route
"""
return CarlaDataProvider._ego_vehicle_route

@staticmethod
def get_all_actors():
"""
Expand Down Expand Up @@ -1023,6 +1038,20 @@ def set_traffic_manager_port(tm_port):
"""
CarlaDataProvider._traffic_manager_port = tm_port

@staticmethod
def set_latest_scenario(scenario_name):
"""
Set the latest scenario
"""
CarlaDataProvider._latest_scenario = scenario_name

@staticmethod
def get_latest_scenario():
"""
Get the latest scenario
"""
return CarlaDataProvider._latest_scenario

@staticmethod
def cleanup():
"""
Expand Down Expand Up @@ -1061,7 +1090,9 @@ def cleanup():
CarlaDataProvider._rng = random.RandomState(CarlaDataProvider._random_seed)
CarlaDataProvider._grp = None
CarlaDataProvider._runtime_init_flag = False
CarlaDataProvider._latest_scenario = ""

@property
def world(self):
return self._world

4 changes: 3 additions & 1 deletion srunner/scenariomanager/scenarioatomics/atomic_behaviors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4425,7 +4425,7 @@ def update(self):

# Check which scenarios can be triggered
blackboard = py_trees.blackboard.Blackboard()
for black_var_name, scen_location in self._blackboard_list:
for black_var_name, scen_location, scen_name in self._blackboard_list:

# Close enough
scen_distance = route_location.distance(scen_location)
Expand All @@ -4442,6 +4442,8 @@ def update(self):
_ = blackboard.set(black_var_name, True)
self._triggered_scenarios.append(black_var_name)

CarlaDataProvider.set_latest_scenario(scen_name)

if self._debug:
self._world.debug.draw_point(
scen_location + carla.Location(z=4),
Expand Down
Loading