Skip to content

Add status for IsHoldingSomething to gripper test widgets #64

@DTCurrie

Description

@DTCurrie

IsHoldingSomething is an API on grippers now, but nothing is exposed in the app UI to know the status.

type Gripper interface {
	resource.Resource
	resource.Shaped
	resource.Actuator
	framesystem.InputEnabled

	// Open opens the gripper.
	// This will block until done or a new operation cancels this one.
	Open(ctx context.Context, extra map[string]interface{}) error

	// Grab makes the gripper grab.
	// returns true if we grabbed something.
	// This will block until done or a new operation cancels this one.
	Grab(ctx context.Context, extra map[string]interface{}) (bool, error)

	// IsHoldingSomething returns whether the gripper is currently holding onto an object.
	IsHoldingSomething(ctx context.Context, extra map[string]interface{}) (HoldingStatus, error)
}

see: https://github.com/viamrobotics/viam-typescript-sdk/blob/main/src/components/gripper/client.ts#L90-L100

@claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions