gRPC client implementation of a GenericService
.
More...
#include <generic_client.hpp>
|
| GenericServiceClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
|
AttributeMap | do_command (const AttributeMap &command) override |
| Send/receive arbitrary commands to the resource.
|
|
API | api () const override |
| Creates a GenericService API .
|
|
viam::common::v1::ResourceName | get_resource_name (std::string name) const override |
| Returns a ResourceName for a particular resource name.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
|
| GenericServiceClient (std::string name, std::unique_ptr< viam::service::generic::v1::GenericService::StubInterface > stub) |
|
| GenericService (std::string name) |
|
| Service (std::string name) |
|
gRPC client implementation of a GenericService
.
◆ do_command()
AttributeMap viam::sdk::impl::GenericServiceClient::do_command |
( |
const AttributeMap & | 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::GenericService.
The documentation for this class was generated from the following file: