pointCloud method
override
Get the next point cloud from the camera.
var nextPointCloud = await myCamera.pointCloud();
For more information, see Camera component.
Implementation
@override
Future<ViamImage> pointCloud({Map<String, dynamic>? extra}) async {
final request = GetPointCloudRequest()
..name = name
..mimeType = MimeType.pcd.name
..extra = extra?.toStruct() ?? Struct();
final response = await client.getPointCloud(request);
final actualMimeType = MimeType.fromString(response.mimeType);
return ViamImage(response.pointCloud, actualMimeType);
}