jointPositions method

  1. @override
Future<List<double>> jointPositions({
  1. Map<String, dynamic>? extra,
})
override

Get the List of current joint angles of each arm joint

List<double> currentJointPositions = await myArm.moveToJointPosition();

For more information, see Arm component.

Implementation

@override
Future<List<double>> jointPositions({Map<String, dynamic>? extra}) async {
  final request = GetJointPositionsRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  final response = await client.getJointPositions(request);
  return response.positions.values;
}