getCostmap method
Get the local or global costmap as a downsampled grid, for display in UIs. layer is auto, local, or
global, and stride is the downsample factor.
// Example:
final costmap = await myNavigationService.getCostmap(layer: 'local');
For more information, see the navigation service docs.
Implementation
Future<GetCostmapResponse> getCostmap({String? layer, int? stride, Map<String, dynamic>? extra}) async {
final request = GetCostmapRequest(name: name, layer: layer, stride: stride, extra: extra?.toStruct());
return await client.getCostmap(request, options: callOptions);
}