Skip to content

Commit

Permalink
fix sidewalk
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Sep 21, 2024
1 parent 8be4087 commit 9c1f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadrive/component/map/base_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_semantic_map(
angle = np.arctan2(*dir) / np.pi * 180 + 180
# normalize to 0.4-0.714
angle = angle / 1000 + MapTerrainSemanticColor.get_color(MetaDriveType.CROSSWALK)
cv2.fillPoly(mask, np.array([points]).astype(np.int32), color=angle)
cv2.fillPoly(mask, np.array([points]).astype(np.int32), color=angle.tolist())

# self._semantic_map = mask
# return self._semantic_map
Expand Down

0 comments on commit 9c1f8bc

Please sign in to comment.