Viam C++ SDK current
|
A GenericComponent
represents any component that can execute arbitrary commands.
More...
#include "components/generic.hpp"
Public Member Functions | |
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 camera. | |
virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
API | api () const override |
Creates a GenericComponent API . | |
![]() | |
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. | |
Protected Member Functions | |
GenericComponent (std::string name) | |
![]() | |
Component (std::string name) | |
![]() | |
Name | get_resource_name (const std::string &type) const |
A GenericComponent
represents any component that can execute arbitrary commands.
This acts as an abstract base class to be inherited from by any drivers representing specific generic implementations. This class cannot be used on its own.
|
overridevirtual |
Creates a GenericComponent
API
.
Implements viam::sdk::Resource.
|
pure virtual |
Send/receive arbitrary commands to the resource.
command | the command to execute. |
Implemented in viam::sdk::impl::GenericComponentClient.
|
inline |
Returns GeometryConfig
s associated with the calling camera.
GeometryConfig
s associated with the component.