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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a generic Status for the Resourcestatic GripperfromRobot(RobotClient robot, String name) Get the component with the provided name from the provided robot.abstract booleanInstruct the gripper to grab.abstract booleanisMoving()Get if the gripper is currently moving.static Common.ResourceNameGet the ResourceName of the componentabstract voidOpen the gripper.abstract voidStop 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:ResourceCreate a generic Status for the Resource- Overrides:
createStatusin 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.
-