gRPC client implementation of a Discovery
service.
More...
#include <discovery_client.hpp>
|
| DiscoveryClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
|
std::vector< ResourceConfig > | discover_resources (const ProtoStruct &extra) override |
| Discover valid viam configuration of resources that are physically connected to your machine.
|
|
ProtoStruct | do_command (const ProtoStruct &command) override |
| Do an arbitrary command.
|
|
std::vector< ResourceConfig > | discover_resources () |
| Discover valid viam configuration of resources that are physically connected to your machine.
|
|
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.
|
|
|
| Discovery (std::string name) |
|
| Service (std::string name) |
|
Name | get_resource_name (const std::string &type) const |
|
gRPC client implementation of a Discovery
service.
◆ discover_resources()
std::vector< ResourceConfig > viam::sdk::impl::DiscoveryClient::discover_resources |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Discover valid viam configuration of resources that are physically connected to your machine.
- Parameters
-
extra | Any additional arguments to the method. |
- Returns
- array of potential viam configurations for hardware physically
Implements viam::sdk::Discovery.
◆ do_command()
ProtoStruct viam::sdk::impl::DiscoveryClient::do_command |
( |
const ProtoStruct & | command | ) |
|
|
overridevirtual |
Do an arbitrary command.
- Parameters
-
command | Freeform fields that are service-specific. |
- Returns
- Freeform result of the command.
Implements viam::sdk::Discovery.
The documentation for this class was generated from the following file: