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
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Struct
Send/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, named
Methods inherited from class com.viam.sdk.core.resource.Resource
close, createStatus, getName, getSubtype, named
-
Constructor Details
-
PoseTrackerRPCClient
-
-
Method Details
-
doCommand
Description copied from class:Resource
Send/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:PoseTracker
Returns the current pose of each body tracked by the pose tracker.- Specified by:
getPoses
in 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:Component
Get all geometries associated with the Component, in their current configuration, in the frame of the Component.- Overrides:
getGeometries
in classComponent
- Returns:
- the geometries associated with the Component
-