8#include <viam/sdk/resource/stoppable.hpp>
30 virtual void open(
const ProtoStruct& extra) = 0;
41 virtual bool grab(
const ProtoStruct& extra) = 0;
49 virtual ProtoStruct
do_command(
const ProtoStruct& command) = 0;
58 virtual std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra) = 0;
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
Definition component.hpp:10
A Gripper represents a physical robotic gripper.
Definition gripper.hpp:21
virtual void open(const ProtoStruct &extra)=0
Open the gripper.
void open()
Open the gripper.
Definition gripper.hpp:24
virtual std::vector< GeometryConfig > get_geometries(const ProtoStruct &extra)=0
Returns GeometryConfigs associated with the calling arm.
API api() const override
Returns the API associated with a particular resource.
virtual ProtoStruct do_command(const ProtoStruct &command)=0
Send/receive arbitrary commands to the resource.
bool grab()
Instruct the gripper to grab.
Definition gripper.hpp:34
virtual bool grab(const ProtoStruct &extra)=0
Instruct the gripper to grab.
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling arm.
Definition gripper.hpp:52
virtual bool is_moving()=0
Reports if the gripper is in motion.
virtual std::string name() const
Return the resource's name.
Definition stoppable.hpp:8
Definition resource_api.hpp:50