|
Viam C++ SDK current
|
A Gripper represents a physical robotic gripper.
More...
#include "components/gripper.hpp"
Inheritance diagram for viam::sdk::Gripper:Classes | |
| struct | holding_status |
| whether the gripper is holding something (along with other contextual info) More... | |
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. | |
| holding_status | is_holding_something () |
| Reports whether the gripper is holding onto a object (alongside other information). | |
| virtual holding_status | is_holding_something (const ProtoStruct &extra)=0 |
| Reports whether the gripper is holding onto a object (alongside other information). | |
| 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 GeometryConfigs associated with the calling arm. | |
| 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. | |
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. | |
| void | set_log_level (log_level) const |
| Set the log level for log messages originating from this Resource. | |
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 | |
Protected Attributes inherited from viam::sdk::Resource | |
| LogSource | logger_ |
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 GeometryConfigs 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.
|
inline |
Reports whether the gripper is holding onto a object (alongside other information).
holding_status struct for more info).
|
pure virtual |
Reports whether the gripper is holding onto a object (alongside other information).
| extra | Any additional arguments to the method. |
holding_status struct for more info). Implemented in 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.