8#include <viam/api/common/v1/common.pb.h>
9#include <viam/api/component/gripper/v1/gripper.pb.h>
11#include <viam/sdk/resource/stoppable.hpp>
33 virtual void open(
const AttributeMap& extra) = 0;
44 virtual bool grab(
const AttributeMap& extra) = 0;
52 virtual AttributeMap
do_command(
const AttributeMap& command) = 0;
61 virtual std::vector<GeometryConfig>
get_geometries(
const AttributeMap& extra) = 0;
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
Definition component.hpp:14
A Gripper represents a physical robotic gripper.
Definition gripper.hpp:24
virtual std::vector< GeometryConfig > get_geometries(const AttributeMap &extra)=0
Returns GeometryConfigs associated with the calling arm.
void open()
Open the gripper.
Definition gripper.hpp:27
API api() const override
Returns the API associated with a particular resource.
virtual void open(const AttributeMap &extra)=0
Open the gripper.
bool grab()
Instruct the gripper to grab.
Definition gripper.hpp:37
virtual AttributeMap do_command(const AttributeMap &command)=0
Send/receive arbitrary commands to the resource.
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling arm.
Definition gripper.hpp:55
virtual bool grab(const AttributeMap &extra)=0
Instruct the gripper to grab.
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