MCPcopy Create free account
hub / github.com/AutonomousVehicleLaboratory/SemVecNet / get_sample_pcd

Function get_sample_pcd

tools/nusc_semantic_mapping.py:37–42  ·  view source on GitHub ↗
(nusc, sample)

Source from the content-addressed store, hash-verified

35
36
37def get_sample_pcd(nusc, sample):
38 lidar_data = nusc.get('sample_data', sample['data']['LIDAR_TOP'])
39 file_rel_path = lidar_data['filename']
40 file_abs_path = osp.join(nusc.dataroot, file_rel_path)
41 pcd = LidarPointCloud.from_file(file_abs_path).points
42 return pcd
43
44
45def get_sample_image(nusc, sample):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected