gRPC client implementation of a Gripper
component
More...
#include <gripper_client.hpp>
|
| GripperClient (std::string names, std::shared_ptr< grpc::Channel > channel) |
|
void | open (const ProtoStruct &extra) override |
| Open the gripper.
|
|
bool | grab (const ProtoStruct &extra) override |
| Instruct the gripper to grab.
|
|
void | stop (const ProtoStruct &extra) override |
| Stops a resource from running.
|
|
bool | is_moving () override |
| Reports if the gripper is in motion.
|
|
ProtoStruct | do_command (const ProtoStruct &command) override |
| Send/receive arbitrary commands to the resource.
|
|
std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra) override |
| Returns GeometryConfig s associated with the calling arm.
|
|
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.
|
|
bool | grab () |
| Instruct the gripper to grab.
|
|
virtual bool | grab (const ProtoStruct &extra)=0 |
| Instruct the gripper to grab.
|
|
void | open () |
| Open the gripper.
|
|
virtual void | open (const ProtoStruct &extra)=0 |
| Open the gripper.
|
|
void | open () |
| Open the gripper.
|
|
bool | grab () |
| Instruct the gripper to grab.
|
|
std::vector< GeometryConfig > | get_geometries () |
| Returns GeometryConfig s associated with the calling arm.
|
|
API | api () const override |
| Returns the API associated with a particular resource.
|
|
Name | get_resource_name () const override |
| Returns the Name for a particular resource.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
void | stop () |
| Stops a resource from running.
|
|
gRPC client implementation of a Gripper
component
◆ do_command()
ProtoStruct viam::sdk::impl::GripperClient::do_command |
( |
const ProtoStruct & | command | ) |
|
|
overridevirtual |
Send/receive arbitrary commands to the resource.
- Parameters
-
Command | the command to execute. |
- Returns
- The result of the executed command.
Implements viam::sdk::Gripper.
◆ get_geometries() [1/2]
std::vector< GeometryConfig > viam::sdk::impl::GripperClient::get_geometries |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
◆ get_geometries() [2/2]
virtual std::vector< GeometryConfig > viam::sdk::Gripper::get_geometries |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
◆ grab() [1/3]
bool viam::sdk::Gripper::grab |
( |
| ) |
|
|
inline |
Instruct the gripper to grab.
- Returns
- bool indicating if the gripper grabbed something.
◆ grab() [2/3]
bool viam::sdk::impl::GripperClient::grab |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Instruct the gripper to grab.
- Parameters
-
extra | Any additional arguments to the method. |
- Returns
- bool indicating if the gripper grabbed something.
Implements viam::sdk::Gripper.
◆ grab() [3/3]
virtual bool viam::sdk::Gripper::grab |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
Instruct the gripper to grab.
- Parameters
-
extra | Any additional arguments to the method. |
- Returns
- bool indicating if the gripper grabbed something.
Implements viam::sdk::Gripper.
◆ is_moving()
bool viam::sdk::impl::GripperClient::is_moving |
( |
| ) |
|
|
overridevirtual |
◆ open() [1/2]
void viam::sdk::impl::GripperClient::open |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Open the gripper.
- Parameters
-
extra | Any additional arguments to the method. |
Implements viam::sdk::Gripper.
◆ open() [2/2]
virtual void viam::sdk::Gripper::open |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
Open the gripper.
- Parameters
-
extra | Any additional arguments to the method. |
Implements viam::sdk::Gripper.
◆ stop()
void viam::sdk::impl::GripperClient::stop |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Stops a resource from running.
- Parameters
-
extra | Extra arguments to pass to the resource's stop method. |
Implements viam::sdk::Stoppable.
The documentation for this class was generated from the following file: