@@ -34,9 +34,9 @@ def nonlinear_smoother(gt_bboxes_3d, gt_fut_traj, gt_fut_traj_mask, bbox_tensor)
34
34
gt_fut_traj_xy_diff = np .diff (gt_fut_traj_xy_diff , axis = 1 )
35
35
gt_fut_traj_yaw = np .arctan2 (
36
36
gt_fut_traj_xy_diff [:, :, 1 ], gt_fut_traj_xy_diff [:, :, 0 ])
37
- # TODO(box3d): we have changed yaw to mmdet3d 1.0.0rc6 format, maybe we should change this.
37
+ # TODO(box3d): we have changed yaw to mmdet3d 1.0.0rc6 format, maybe we should change this. [DONE]
38
38
gt_fut_traj_yaw = np .concatenate (
39
- [- np . pi / 2 - gt_bboxes_3d [:, None , 6 :7 ], gt_fut_traj_yaw [:, :, None ]], axis = 1 )
39
+ [gt_bboxes_3d [:, None , 6 :7 ], gt_fut_traj_yaw [:, :, None ]], axis = 1 )
40
40
gt_fut_traj = np .concatenate (
41
41
[gt_bboxes_3d [:, None , :2 ], gt_fut_traj ], axis = 1 )
42
42
@@ -71,9 +71,9 @@ def _check_ade(traj_pert, traj_ref, thres):
71
71
perturb_used_count = 0
72
72
for i in range (gt_fut_traj .shape [0 ]):
73
73
ts = ts_limit [i ]
74
- # TODO(box3d): we have changed yaw to mmdet3d 1.0.0rc6 format, maybe we should change this.
75
- x_curr = [bbox_tensor [i , 0 ], bbox_tensor [i , 1 ], -
76
- np . pi / 2 - yaw_preds [i ], speed_preds [i ]]
74
+ # TODO(box3d): we have changed yaw to mmdet3d 1.0.0rc6 format, maybe we should change this. [DONE]
75
+ x_curr = [bbox_tensor [i , 0 ], bbox_tensor [i , 1 ],
76
+ yaw_preds [i ], speed_preds [i ]]
77
77
reference_trajectory = np .concatenate (
78
78
[gt_fut_traj [i ], gt_fut_traj_yaw [i ]], axis = - 1 )
79
79
if ts > 1 and _is_dynamic (gt_fut_traj [i ], int (ts ), 2 ) and _check_diff (x_curr , reference_trajectory ):
0 commit comments