getPosition method
Get the robot's current NavigationPosition on the active map. Use this for frequent position polling; getNavigationStatus reports the same position alongside the rest of the navigation state.
// Example:
final position = await myNavigationService.getPosition();
For more information, see the navigation service docs.
Implementation
Future<NavigationPosition> getPosition({Map<String, dynamic>? extra}) async {
final request = GetPositionRequest(name: name, extra: extra?.toStruct());
final response = await client.getPosition(request, options: callOptions);
return response.position;
}