Skip to content

Commit

Permalink
fix sidewalk rendering (#762)
Browse files Browse the repository at this point in the history
fix sidewalk
  • Loading branch information
QuanyiLi authored Sep 23, 2024
1 parent 8be4087 commit ee5e1f8
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 ee5e1f8

Please sign in to comment.