Skip to content

Commit

Permalink
Add ego route setter and getter
Browse files Browse the repository at this point in the history
  • Loading branch information
TayYim committed May 28, 2024
1 parent 447bb3d commit d826a72
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions srunner/scenariomanager/carla_data_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,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

0 comments on commit d826a72

Please sign in to comment.