(nusc, sample)
| 35 | |
| 36 | |
| 37 | def 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 | |
| 45 | def get_sample_image(nusc, sample): |
no outgoing calls
no test coverage detected