Closed kpavitrak closed 1 year ago
Made the following changes to cell 19 in the DeepRacer loganalysis.ipynb
l_center_line = LineString(waypoints[:,0:2]) l_inner_border = LineString(waypoints[:,2:4]) l_outer_border = LineString(waypoints[:,4:6])
road_poly = Polygon(np.vstack((l_outer_border.coords, np.flipud(l_inner_border.coords)))) road_poly
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Made the following changes to cell 19 in the DeepRacer loganalysis.ipynb
Use Shapely to generate lines for the inner
and outer track borders, and centerline
l_center_line = LineString(waypoints[:,0:2]) l_inner_border = LineString(waypoints[:,2:4]) l_outer_border = LineString(waypoints[:,4:6])
Create a shapely Polygon representing the track
road_poly = Polygon(np.vstack((l_outer_border.coords, np.flipud(l_inner_border.coords)))) road_poly
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.