endPosition method

  1. @override
Future<Pose> endPosition({
  1. Map<String, dynamic>? extra,
})
override

Get the current Pose of the end of the arm.

final currentPose = await myArm.endPosition();

For more information, see Arm component.

Implementation

@override
Future<Pose> endPosition({Map<String, dynamic>? extra}) async {
  final request = GetEndPositionRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  final response = await client.getEndPosition(request);
  return response.pose;
}