Class Gripper
java.lang.Object
com.viam.sdk.core.resource.Resource
com.viam.sdk.core.component.Component
com.viam.sdk.core.component.gripper.Gripper
- Direct Known Subclasses:
GripperRPCClient
Gripper represents a physical robotic gripper.
-
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 TypeMethodDescriptionCreate a generic Status for the Resourcestatic Gripper
fromRobot
(RobotClient robot, String name) Get the component with the provided name from the provided robot.abstract boolean
Instruct the gripper to grab.abstract boolean
isMoving()
Get if the gripper is currently moving.static Common.ResourceName
Get the ResourceName of the componentabstract void
Open the gripper.abstract void
Stop the gripper.Methods inherited from class com.viam.sdk.core.component.Component
getGeometries
-
Field Details
-
SUBTYPE
-
-
Constructor Details
-
Gripper
-
-
Method Details
-
createStatus
Description copied from class:Resource
Create a generic Status for the Resource- Overrides:
createStatus
in classResource
- Returns:
- a Status
-
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
-
open
Open the gripper. -
grab
Instruct the gripper to grab.- Returns:
- Indicates if the gripper grabbed something.
-
stop
Stop the gripper. It is assumed the gripper stops immediately. -
isMoving
public abstract boolean isMoving()Get if the gripper is currently moving.- Returns:
- Whether the gripper is moving.
-