grab method

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

Close the Gripper

await myGripper.grab();

For more information, see Gripper component.

Implementation

@override
Future<void> grab({Map<String, dynamic>? extra}) async {
  final request = GrabRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  await client.grab(request);
}