Viam C++ SDK current
|
gRPC client implementation of a Gantry
component.
More...
#include <gantry_client.hpp>
Public Types | |
using | interface_type = Gantry |
Public Member Functions | |
GantryClient (std::string names, std::shared_ptr< grpc::Channel > channel) | |
std::vector< double > | get_position (const ProtoStruct &extra) override |
Get the positions of the axes of the gantry in millimeters. | |
void | move_to_position (const std::vector< movement_coordinate > &coordinates, const ProtoStruct &extra) override |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec). | |
bool | home (const ProtoStruct &extra) override |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches. | |
std::vector< double > | get_lengths (const ProtoStruct &extra) override |
Get the lengths of the axes of the gantry in millimeters. | |
bool | is_moving () override |
Reports if the gantry is in motion. | |
void | stop (const ProtoStruct &extra) override |
Stops a resource from running. | |
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 gantry. | |
std::vector< GeometryConfig > | get_geometries () |
Returns GeometryConfig s associated with the calling gantry. | |
virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
Returns GeometryConfig s associated with the calling gantry. | |
std::vector< double > | get_lengths () |
Get the lengths of the axes of the gantry in millimeters. | |
virtual std::vector< double > | get_lengths (const ProtoStruct &extra)=0 |
Get the lengths of the axes of the gantry in millimeters. | |
std::vector< double > | get_position () |
Get the positions of the axes of the gantry in millimeters. | |
virtual std::vector< double > | get_position (const ProtoStruct &extra)=0 |
Get the positions of the axes of the gantry in millimeters. | |
bool | home () |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches. | |
virtual bool | home (const ProtoStruct &extra)=0 |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches. | |
void | move_to_position (const std::vector< movement_coordinate > &coordinates) |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec). | |
virtual void | move_to_position (const std::vector< movement_coordinate > &coordinates, const ProtoStruct &extra)=0 |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec). | |
Public Member Functions inherited from viam::sdk::Gantry | |
std::vector< double > | get_position () |
Get the positions of the axes of the gantry in millimeters. | |
void | move_to_position (const std::vector< movement_coordinate > &coordinates) |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec). | |
bool | home () |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches. | |
std::vector< double > | get_lengths () |
Get the lengths of the axes of the gantry in millimeters. | |
std::vector< GeometryConfig > | get_geometries () |
Returns GeometryConfig s associated with the calling gantry. | |
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. | |
Public Member Functions inherited from viam::sdk::Stoppable | |
void | stop () |
Stops a resource from running. | |
Additional Inherited Members | |
Static Public Member Functions inherited from viam::sdk::Stoppable | |
static void | stop_if_stoppable (const std::shared_ptr< Resource > &resource, const ProtoStruct &extra) |
Stops a Resource if it is Stoppable. | |
static void | stop_if_stoppable (const std::shared_ptr< Resource > &resource) |
Stops a Resource if it is Stoppable. | |
Protected Member Functions inherited from viam::sdk::Gantry | |
Component () | |
Component (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 |
gRPC client implementation of a Gantry
component.
|
overridevirtual |
Send/receive arbitrary commands to the resource.
Command | the command to execute. |
Implements viam::sdk::Gantry.
|
overridevirtual |
Returns GeometryConfig
s associated with the calling gantry.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
virtual |
Returns GeometryConfig
s associated with the calling gantry.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
overridevirtual |
Get the lengths of the axes of the gantry in millimeters.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
virtual |
Get the lengths of the axes of the gantry in millimeters.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
overridevirtual |
Get the positions of the axes of the gantry in millimeters.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
virtual |
Get the positions of the axes of the gantry in millimeters.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
inline |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches.
|
overridevirtual |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
virtual |
Run the homing sequence of the gantry to re-calibrate the axes with respect to the limit switches.
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
overridevirtual |
Reports if the gantry is in motion.
Implements viam::sdk::Gantry.
|
inline |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec).
coordinates | A vector whose entries represent the position and speed pairs for each axis. |
|
overridevirtual |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec).
coordinates | A vector whose entries represent the position and speed pairs for each axis. |
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
virtual |
Move the axes of the gantry to the desired positions (mm) at the requested speeds (mm/sec).
coordinates | A vector whose entries represent the position and speed pairs for each axis. |
extra | Any additional arguments to the method |
Implements viam::sdk::Gantry.
|
overridevirtual |
Stops a resource from running.
extra | Extra arguments to pass to the resource's stop method. |
Implements viam::sdk::Stoppable.