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

Radar file parser and point cloud export script #6

Merged
merged 7 commits into from
Oct 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added typing
  • Loading branch information
holger-motional committed Sep 28, 2018
commit 9cea12fab0710a68ae500e7799dca088315a6007
4 changes: 2 additions & 2 deletions python-sdk/nuscenes_utils/nuscenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PYTHON_VERSION = sys.version_info[0]

if not PYTHON_VERSION == 3:
raise ValueError("nuScenes dev-kit only supports python version 3.")
raise ValueError("nuScenes dev-kit only supports Python version 3.")


class NuScenes:
Expand Down Expand Up @@ -438,7 +438,7 @@ def list_sample(self, sample_token: str) -> None:
ann_record = self.nusc.get('sample_annotation', ann_token)
print('sample_annotation_token: {}, category: {}'.format(ann_record['token'], ann_record['category_name']))

def map_pointcloud_to_image(self, pointsensor_token: str, camera_token: str):
def map_pointcloud_to_image(self, pointsensor_token: str, camera_token: str) -> Tuple:
"""
Given a point sensor (lidar/radar) token and camera sample_data token, load point-cloud and map it to the image
plane.
Expand Down