Viam C++ SDK current
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
viam::sdk::impl::MotorServer Class Reference

gRPC server implementation of a Motor component. More...

#include <motor_server.hpp>

+ Inheritance diagram for viam::sdk::impl::MotorServer:

Public Types

using interface_type = Motor
 
using service_type = component::motor::v1::MotorService
 

Public Member Functions

 MotorServer (std::shared_ptr< ResourceManager > manager)
 
::grpc::Status SetPower (::grpc::ServerContext *context, const ::viam::component::motor::v1::SetPowerRequest *request, ::viam::component::motor::v1::SetPowerResponse *response) noexcept override
 
::grpc::Status GoFor (::grpc::ServerContext *context, const ::viam::component::motor::v1::GoForRequest *request, ::viam::component::motor::v1::GoForResponse *response) noexcept override
 
::grpc::Status GoTo (::grpc::ServerContext *context, const ::viam::component::motor::v1::GoToRequest *request, ::viam::component::motor::v1::GoToResponse *response) noexcept override
 
::grpc::Status SetRPM (::grpc::ServerContext *context, const ::viam::component::motor::v1::SetRPMRequest *request, ::viam::component::motor::v1::SetRPMResponse *response) noexcept override
 
::grpc::Status ResetZeroPosition (::grpc::ServerContext *context, const ::viam::component::motor::v1::ResetZeroPositionRequest *request, ::viam::component::motor::v1::ResetZeroPositionResponse *response) noexcept override
 
::grpc::Status GetPosition (::grpc::ServerContext *context, const ::viam::component::motor::v1::GetPositionRequest *request, ::viam::component::motor::v1::GetPositionResponse *response) noexcept override
 
::grpc::Status GetProperties (::grpc::ServerContext *context, const ::viam::component::motor::v1::GetPropertiesRequest *request, ::viam::component::motor::v1::GetPropertiesResponse *response) noexcept override
 
::grpc::Status Stop (::grpc::ServerContext *context, const ::viam::component::motor::v1::StopRequest *request, ::viam::component::motor::v1::StopResponse *response) noexcept override
 
::grpc::Status IsPowered (::grpc::ServerContext *context, const ::viam::component::motor::v1::IsPoweredRequest *request, ::viam::component::motor::v1::IsPoweredResponse *response) noexcept override
 
::grpc::Status IsMoving (::grpc::ServerContext *context, const ::viam::component::motor::v1::IsMovingRequest *request, ::viam::component::motor::v1::IsMovingResponse *response) noexcept override
 
::grpc::Status GetGeometries (::grpc::ServerContext *context, const ::viam::common::v1::GetGeometriesRequest *request, ::viam::common::v1::GetGeometriesResponse *response) noexcept override
 
::grpc::Status DoCommand (grpc::ServerContext *context, const viam::common::v1::DoCommandRequest *request, viam::common::v1::DoCommandResponse *response) noexcept override
 
- Public Member Functions inherited from viam::sdk::ResourceServer
const std::shared_ptr< ResourceManager > & resource_manager () const
 

Additional Inherited Members

- Protected Member Functions inherited from viam::sdk::ResourceServer
 ResourceServer (std::shared_ptr< ResourceManager > manager)
 

Detailed Description

gRPC server implementation of a Motor component.


The documentation for this class was generated from the following file: