getLocation method

Future<GetLocationResponse> getLocation({
  1. Map<String, dynamic>? extra,
})

Get the current location of the robot as a common_pb.GeoPoint along with its compass heading.

For more information, see the navigation service docs.

Implementation

Future<GetLocationResponse> getLocation({Map<String, dynamic>? extra}) async {
  final request = GetLocationRequest(name: name, extra: extra?.toStruct());
  return await client.getLocation(request, options: callOptions);
}