Exception on specific scenario

In scenario USA_US101-3_2_S-1 the following exception occurs:

File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/batch_processing/process_scenario.py”, line 119, in solve_scenario
list_of_list_of_states, list_of_motion_primitives, _ = motion_planner.execute_search()
File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/motion_planner/search_algorithms/best_first_search.py”, line 136, in execute_search
f_child = self.evaluation_function(node_current=node_child)
File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/motion_planner/search_algorithms/student.py”, line 81, in evaluation_function
# if hasattr(self.planningProblem.goal.state_list[0], ‘position’) == False:
File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/motion_planner/search_algorithms/student.py”, line 111, in heuristic_function
else:
File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/motion_planner/search_algorithms/base_class.py”, line 777, in num_obstacles_in_lanelet_at_time_step
time_step)
File “/home/commonroad-search/tutorials/4_batch_processing/…/…/SMP/motion_planner/search_algorithms/base_class.py”, line 651, in get_obstacles
if any(laneletObj.contains_points(np.array(vertices))):
File “/home/anaconda3/envs/commonroad-py37/lib/python3.7/site-packages/commonroad/scenario/lanelet.py”, line 751, in contains_points
point_list)
AssertionError: Lanelet/contains_points>: provided list of points is malformed! points = [array([[ 94.6428, -81.2155],
[ 95.0642, -80.7454],
[ 98.5033, -83.8281],
[100.5157, -85.5775],
[ 98.2276, -88.2096],
[ 95.8244, -86.1205],
[ 92.7559, -83.3696],
[ 94.6428, -81.2155]]) array([[ 92.7554, -83.3701],
[ 95.8067, -86.1046],
[ 97.496 , -87.5736],
[ 96.9291, -88.2259],
[ 93.3125, -85.0578],
[ 92.398 , -83.7782],
[ 92.7554, -83.3701]])]

Has anynone faced the same issue?

Hi Vpa,

The Error message indicates that there might be a problem with the points list you passed to contains_points() method. According to the method, the list of points should be in the form [[px1,py1],[px2,py2,],…].