Class PoseTracker
java.lang.Object
com.viam.sdk.core.resource.Resource
com.viam.sdk.core.component.Component
com.viam.sdk.core.component.posetracker.PoseTracker
- Direct Known Subclasses:
PoseTrackerRPCClient
PoseTracker represents a physical pose or motion tracking device.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.viam.sdk.core.resource.Resource
Resource.Reconfigurable, Resource.Stoppable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PoseTracker
fromRobot
(RobotClient robot, String name) Get the component with the provided name from the provided robot.Returns the current pose of each body tracked by the pose tracker.abstract Map<String,
Common.PoseInFrame> Returns the current pose of each body tracked by the pose tracker.static Common.ResourceName
Get the ResourceName of the componentMethods inherited from class com.viam.sdk.core.component.Component
getGeometries
Methods inherited from class com.viam.sdk.core.resource.Resource
close, createStatus, doCommand, getName, getSubtype, named
-
Field Details
-
SUBTYPE
-
-
Constructor Details
-
PoseTracker
-
-
Method Details
-
named
Get the ResourceName of the component- Parameters:
name
- the name of the component- Returns:
- the component's ResourceName
-
fromRobot
Get the component with the provided name from the provided robot.- Parameters:
robot
- the RobotClientname
- the name of the component- Returns:
- the component
-
getPoses
public abstract Map<String,Common.PoseInFrame> getPoses(List<String> bodyNames, com.google.protobuf.Struct extra) Returns the current pose of each body tracked by the pose tracker.- 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
-
getPoses
Returns the current pose of each body tracked by the pose tracker.- 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
-