Viam C++ SDK current
|
A Gripper
represents a physical robotic gripper.
More...
#include "components/gripper.hpp"
Public Member Functions | |
void | open () |
Open the gripper. | |
virtual void | open (const ProtoStruct &extra)=0 |
Open the gripper. | |
bool | grab () |
Instruct the gripper to grab. | |
virtual bool | grab (const ProtoStruct &extra)=0 |
Instruct the gripper to grab. | |
virtual bool | is_moving ()=0 |
Reports if the gripper is in motion. | |
virtual ProtoStruct | do_command (const ProtoStruct &command)=0 |
Send/receive arbitrary commands to the resource. | |
std::vector< GeometryConfig > | get_geometries () |
Returns GeometryConfig s associated with the calling arm. | |
virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
Returns GeometryConfig s associated with the calling arm. | |
API | api () const override |
Returns the API associated with a particular resource. | |
Public Member Functions inherited from viam::sdk::Component | |
Name | get_resource_name () const override |
Returns the Name for a particular resource. | |
Public Member Functions inherited from viam::sdk::Resource | |
Resource (std::string name) | |
virtual std::string | name () const |
Return the resource's name. | |
Public Member Functions inherited from viam::sdk::Stoppable | |
virtual void | stop (const ProtoStruct &extra)=0 |
Stops a resource from running. | |
void | stop () |
Stops a resource from running. | |
Protected Member Functions | |
Gripper (std::string name) | |
Protected Member Functions inherited from viam::sdk::Component | |
Component (std::string name) | |
Protected Member Functions inherited from viam::sdk::Resource | |
Name | get_resource_name (const std::string &type) const |
Additional Inherited Members | |
Static Public Member Functions inherited from viam::sdk::Stoppable | |
static void | stop_if_stoppable (const std::shared_ptr< Resource > &resource, const ProtoStruct &extra) |
Stops a Resource if it is Stoppable. | |
static void | stop_if_stoppable (const std::shared_ptr< Resource > &resource) |
Stops a Resource if it is Stoppable. | |
A Gripper
represents a physical robotic gripper.
This acts as an abstract parent class to be inherited from by any drivers representing specific gripper implementations. This class cannot be used on its own.
|
overridevirtual |
Returns the API
associated with a particular resource.
Implements viam::sdk::Resource.
|
pure virtual |
Send/receive arbitrary commands to the resource.
Command | the command to execute. |
Implemented in viam::sdk::impl::GripperClient.
|
pure virtual |
Returns GeometryConfig
s associated with the calling arm.
extra | Any additional arguments to the method |
Implemented in viam::sdk::impl::GripperClient, and viam::sdk::impl::GripperClient.
|
inline |
Instruct the gripper to grab.
|
pure virtual |
Instruct the gripper to grab.
extra | Any additional arguments to the method. |
Implemented in viam::sdk::impl::GripperClient, and viam::sdk::impl::GripperClient.
|
pure virtual |
Reports if the gripper is in motion.
Implemented in viam::sdk::impl::GripperClient.
|
pure virtual |
Open the gripper.
extra | Any additional arguments to the method. |
Implemented in viam::sdk::impl::GripperClient, and viam::sdk::impl::GripperClient.