getPose method
Get the pose of componentName in destinationFrame, which defaults to the world frame.
supplementalTransforms adds frames that are not part of the machine's config for this call.
var poseInWorld = await machine.getPose('my_arm');
var poseInCamera = await machine.getPose('my_arm', destinationFrame: 'my_camera');
Implementation
Future<PoseInFrame> getPose(
String componentName, {
String destinationFrame = 'world',
List<Transform>? supplementalTransforms,
Map<String, dynamic>? extra,
}) async {
final request = rpb.GetPoseRequest(
componentName: componentName,
destinationFrame: destinationFrame,
supplementalTransforms: supplementalTransforms,
extra: extra?.toStruct(),
);
final response = await _client.getPose(request);
return response.pose;
}