Readonly
nameThe name of the resource.
Get the geometries of the component in their current configuration.
const gripper = new VIAM.GripperClient(machine, 'my_gripper');
// Get the geometries of this component
const geometries = await gripper.getGeometries();
console.log('Geometries:', geometries);
For more information, see Gripper API.
Request a gripper of the underlying robot to grab.
const gripper = new VIAM.GripperClient(machine, 'my_gripper');
// Close the gripper to grab
await gripper.grab();
For more information, see Gripper API.
Report if the gripper is in motion.
const gripper = new VIAM.GripperClient(machine, 'my_gripper');
// Check if the gripper is currently moving
const moving = await gripper.isMoving();
console.log('Gripper is moving:', moving);
For more information, see Gripper API.
Open a gripper of the underlying robot.
const gripper = new VIAM.GripperClient(machine, 'my_gripper');
// Open the gripper
await gripper.open();
For more information, see Gripper API.
Stop a robot's gripper.
const gripper = new VIAM.GripperClient(machine, 'my_gripper');
// Stop the gripper's current motion
await gripper.stop();
For more information, see Gripper API.
A gRPC-web client for the Gripper component.