Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwlambert authored Jun 30, 2021
1 parent 3240ddd commit 529365c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions argoverse/evaluation/competition_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,22 @@ def poly_to_label(poly: Polygon, category: str = "VEHICLE", track_id: str = "")

height = max(z) - min(z)

# location of object in egovehicle coordinates
# translation = center
center = np.array([bbox.centroid.xy[0][0], bbox.centroid.xy[1][0], min(z) + height / 2])

c = np.cos(angle_rad)
s = np.sin(angle_rad)
R = np.array(
[
[np.cos(angle), -np.sin(angle), 0],
[np.sin(angle), np.cos(angle), 0],
[c, -s, 0],
[s, c, 0],
[0, 0, 1],
]
)

# location of object in egovehicle coordinates
center = np.array([centroid[0], centroid[1], min(z) + height / 2])

return ObjectLabelRecord(
quaternion=q,
translation=center,
Expand Down

0 comments on commit 529365c

Please sign in to comment.