My understanding is that planning_all has a shape of 1 x 6 x 3, where the last column has x, y and yaw. So planning_all[0, mask][-1][0] means using x at the future frame to determine the command. Shouldn't it be planning_all[0, mask][-1][-1] so we use the yaw in the last future frame to determine the command?
Hi team,
Would you mind double-checking the following code block on why using the index of 0 to derive the command?
My understanding is that planning_all has a shape of 1 x 6 x 3, where the last column has x, y and yaw. So planning_all[0, mask][-1][0] means using x at the future frame to determine the command. Shouldn't it be planning_all[0, mask][-1][-1] so we use the yaw in the last future frame to determine the command?
https://github.com/OpenDriveLab/UniAD/blob/main/projects/mmdet3d_plugin/datasets/data_utils/trajectory_api.py#L271
Thanks! Xinshuo