(self,
kinect_id,
frame_id,
mode='color2depth',
threshold=0)
| 366 | return np.stack(frames, axis=0) |
| 367 | |
| 368 | def get_kinect_rgbd(self, |
| 369 | kinect_id, |
| 370 | frame_id, |
| 371 | mode='color2depth', |
| 372 | threshold=0): |
| 373 | if mode == 'color2depth': |
| 374 | mapped_color = \ |
| 375 | self.__map_color_to_depth__( |
| 376 | kinect_id, frame_id, threshold=threshold |
| 377 | ) |
| 378 | depth = self.get_kinect_depth(kinect_id, frame_id)[0] |
| 379 | return mapped_color, depth |
| 380 | else: |
| 381 | print('Model {} is not supported...'.format(mode)) |
| 382 | |
| 383 | def get_kinect_depth(self, kinect_id, frame_id=None, disable_tqdm=True): |
| 384 | """Get several frames captured by a kinect depth camera. |
nothing calls this directly
no test coverage detected