Class GripperRPCClient


public class GripperRPCClient extends Gripper
gRPC Client for a Gripper component
  • Constructor Details

    • GripperRPCClient

      public GripperRPCClient(String name, Channel chan)
  • Method Details

    • open

      public void open(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: Gripper
      Open the gripper.
      Specified by:
      open in class Gripper
    • grab

      public boolean grab(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: Gripper
      Instruct the gripper to grab.
      Specified by:
      grab in class Gripper
      Returns:
      Indicates if the gripper grabbed something.
    • stop

      public void stop(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: Gripper
      Stop the gripper. It is assumed the gripper stops immediately.
      Specified by:
      stop in class Gripper
    • isMoving

      public boolean isMoving()
      Description copied from class: Gripper
      Get if the gripper is currently moving.
      Specified by:
      isMoving in class Gripper
      Returns:
      Whether the gripper is moving.
    • doCommand

      public com.google.protobuf.Struct doCommand(Map<String,com.google.protobuf.Value> command)
      Description copied from class: Resource
      Send/Receive arbitrary commands to the Resource
      Overrides:
      doCommand in class Resource
      Parameters:
      command - the command to execute
      Returns:
      result of the executed command
    • getGeometries

      public List<Common.Geometry> getGeometries(Optional<com.google.protobuf.Struct> extra)
      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 class Component
      Returns:
      the geometries associated with the Component