8#include <viam/sdk/common/proto_value.hpp>
9#include <viam/sdk/resource/stoppable.hpp>
27 bool is_holding_something;
38 virtual void open(
const ProtoStruct& extra) = 0;
49 virtual bool grab(
const ProtoStruct& extra) = 0;
68 virtual ProtoStruct
do_command(
const ProtoStruct& command) = 0;
77 virtual std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra) = 0;
Definition resource_api.hpp:21
Definition component.hpp:10
A Gripper represents a physical robotic gripper.
Definition gripper.hpp:22
holding_status is_holding_something()
Reports whether the gripper is holding onto a object (alongside other information).
Definition gripper.hpp:53
virtual void open(const ProtoStruct &extra)=0
Open the gripper.
void open()
Open the gripper.
Definition gripper.hpp:32
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:42
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:71
virtual bool is_moving()=0
Reports if the gripper is in motion.
virtual holding_status is_holding_something(const ProtoStruct &extra)=0
Reports whether the gripper is holding onto a object (alongside other information).
virtual std::string name() const
Return the resource's name.
Definition stoppable.hpp:8
Definition resource_api.hpp:46
whether the gripper is holding something (along with other contextual info)
Definition gripper.hpp:26