6#include <viam/sdk/common/proto_value.hpp> 
    7#include <viam/sdk/common/utils.hpp> 
    8#include <viam/sdk/config/resource.hpp> 
    9#include <viam/sdk/resource/stoppable.hpp> 
   31    inline void move(uint32_t angle_deg) {
 
   32        return move(angle_deg, {});
 
 
   38    virtual void move(uint32_t angle_deg, 
const ProtoStruct& extra) = 0;
 
   57    virtual ProtoStruct 
do_command(
const ProtoStruct& command) = 0;
 
   68    virtual std::vector<GeometryConfig> 
get_geometries(
const ProtoStruct& extra) = 0;
 
 
Definition resource_api.hpp:21
Definition component.hpp:10
virtual std::string name() const
Return the resource's name.
virtual ProtoStruct do_command(const ProtoStruct &command)=0
Send/receive arbitrary commands to the resource.
API api() const override
Returns the API associated with a particular resource.
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling servo.
Definition servo.hpp:61
void move(uint32_t angle_deg)
Move the servo to the provided angle.
Definition servo.hpp:31
virtual position get_position(const ProtoStruct &extra)=0
Reports the position of the robot's servo relative to its zero position.
virtual bool is_moving()=0
Reports if a component is in motion.
position get_position()
Get the current angle (degrees) of the servo.
Definition servo.hpp:42
virtual void move(uint32_t angle_deg, const ProtoStruct &extra)=0
Move the servo to the provided angle.
virtual std::vector< GeometryConfig > get_geometries(const ProtoStruct &extra)=0
Returns GeometryConfigs associated with the calling servo.
Definition stoppable.hpp:8
Current position of the motor relative to its home.
Definition resource_api.hpp:46