8#include <viam/api/component/gripper/v1/gripper.grpc.pb.h>
11#include <viam/sdk/rpc/dial.hpp>
29 void open(
const ProtoStruct& extra)
override;
31 bool grab(
const ProtoStruct& extra)
override;
35 void stop(
const ProtoStruct& extra)
override;
39 ProtoStruct
do_command(
const ProtoStruct& command)
override;
41 std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra)
override;
50 using StubType = viam::component::gripper::v1::GripperService::StubInterface;
51 std::unique_ptr<StubType> stub_;
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
void open()
Open the gripper.
Definition gripper.hpp:32
bool grab()
Instruct the gripper to grab.
Definition gripper.hpp:42
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling arm.
Definition gripper.hpp:71
virtual std::string name() const
Return the resource's name.
void stop()
Stops a resource from running.
Definition stoppable.hpp:16
gRPC client implementation of a Gripper component
Definition gripper_client.hpp:20
bool grab(const ProtoStruct &extra) override
Instruct the gripper to grab.
void open(const ProtoStruct &extra) override
Open the gripper.
void stop(const ProtoStruct &extra) override
Stops a resource from running.
Gripper::holding_status is_holding_something(const ProtoStruct &extra) override
Reports whether the gripper is holding onto a object (alongside other information).
bool is_moving() override
Reports if the gripper is in motion.
std::vector< GeometryConfig > get_geometries(const ProtoStruct &extra) override
Returns GeometryConfigs associated with the calling arm.
ProtoStruct do_command(const ProtoStruct &command) override
Send/receive arbitrary commands to the resource.
Defines a Gripper component.
whether the gripper is holding something (along with other contextual info)
Definition gripper.hpp:26