Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lane centre polylines in nuscenes after conversion seem to be uncentred wrt map #66

Closed
samueleruffino99 opened this issue Feb 23, 2024 · 2 comments

Comments

@samueleruffino99
Copy link

samueleruffino99 commented Feb 23, 2024

Hello,
I have converted a nuscenes scenario, and when i am printing out the whole map element I get this strange behavior, the lanes' center lines are not centered with the other map elements.
Screenshot 2024-02-23 145823
I think it might be an error on how to compute the map_centre of the polylines in converter/nuscenes.utils.py?
result[SD.TRACKS], map_center = get_tracks_from_frames(nuscenes, scene_info, frames, num_to_interpolate=5) ....... Normalize place all object to (0,0) map_center = np.array(interpolate_tracks["ego"]["state"]["position"][0]) map_center[-1] = 0 normalized_ret = {} for id, track, in interpolate_tracks.items(): pos = track["state"]["position"] - map_center track["state"]["position"] = np.asarray(pos) normalized_ret[id] = track

@QuanyiLi
Copy link
Member

I confirmed this error. It is introduced in a recent PR. I have fixed it now. Please pull the latest code

@samueleruffino99
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants