Class PoseTrackerRPCClient
java.lang.Object
com.viam.sdk.core.resource.Resource
com.viam.sdk.core.component.Component
com.viam.sdk.core.component.posetracker.PoseTracker
com.viam.sdk.core.component.posetracker.PoseTrackerRPCClient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.viam.sdk.core.resource.Resource
Resource.Reconfigurable, Resource.Stoppable -
Field Summary
Fields inherited from class com.viam.sdk.core.component.posetracker.PoseTracker
SUBTYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.StructSend/Receive arbitrary commands to the ResourcegetGeometries(Optional<com.google.protobuf.Struct> extra) Get all geometries associated with the Component, in their current configuration, in the frame of the Component.Returns the current pose of each body tracked by the pose tracker.Methods inherited from class com.viam.sdk.core.component.posetracker.PoseTracker
fromRobot, getPoses, namedMethods inherited from class com.viam.sdk.core.resource.Resource
close, createStatus, getName, getSubtype, named
-
Constructor Details
-
PoseTrackerRPCClient
-
-
Method Details
-
doCommand
Description copied from class:ResourceSend/Receive arbitrary commands to the Resource -
getPoses
public Map<String,Common.PoseInFrame> getPoses(List<String> bodyNames, com.google.protobuf.Struct extra) Description copied from class:PoseTrackerReturns the current pose of each body tracked by the pose tracker.- Specified by:
getPosesin classPoseTracker- Parameters:
bodyNames- Names of the bodies whose poses are being requested. In the event this parameter is not supplied or is an empty list, all available poses are returned.- Returns:
- the mapping of each body name to the pose representing the center of the body
-
getGeometries
Description copied from class:ComponentGet all geometries associated with the Component, in their current configuration, in the frame of the Component.- Overrides:
getGeometriesin classComponent- Returns:
- the geometries associated with the Component
-