nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.25k stars 620 forks source link

How does the num_radar_pts parameter is obtained? #1098

Open HYY-ying opened 1 month ago

HYY-ying commented 1 month ago

Hello! I would like to ask how the num_radar_pts parameter is obtained? Is it to convert the lidar bounding box and radar point cloud data into the same coordinate system and then use the function points_in_box from nuscenes.utils.geometry_utils to count? And how many radar sweeps were used? The result I got by converting the lidar bounding box and radar pcd data into the global coordinate and counting pts using function points_in_box from nuscenes.utils.geometry_utils is different from the num_radar_pts given in the sample_annotation. I only used just a single radar sweep and didn't do any invalid point filtering.

whyekit-motional commented 1 month ago

@HYY-ying there are multiple radars on the ego, so you might have to consolidate all the points for all the radars at a given keyframe and then use that consolidated radar point cloud for the counting

HYY-ying commented 1 month ago

Thank you for your answer! I have one more question, what is the relationship between radial velocity V_r and V_x(V_y)?

HYY-ying commented 1 month ago

And what's the definition of steering angle? Is it α or (π/2-α) in the image? QQ图片20240801154350

whyekit-motional commented 1 month ago

@HYY-ying

what is the relationship between radial velocity V_r and V_x(V_y)?

v_r (the radial velocity) is the velocity vector that points radially (wrt the ego) - it can be decomposed into a velocity vector that points in the x-direction (wrt the ego) v_x and a velocity vector that points in the y-direction (wrt the ego)

And what's the definition of steering angle?

The steering angle of the agent depends on the coordinate frame you are taking reference from - pls see https://www.nuscenes.org/static/media/data.9ef46c59.png for the various coordinates frames

HYY-ying commented 1 month ago

yep, suppose this picture is in radar coordinate system, I'm trying to figure out if the steering angle is (π/2-α) in nuscenes? I think so, but I'm not sure. image