YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::IPidControlRaw Class Referenceabstract

Interface for a generic control board device implementing a PID controller. More...

#include <yarp/dev/IPidControl.h>

+ Inheritance diagram for yarp::dev::IPidControlRaw:

Public Member Functions

virtual ~IPidControlRaw ()
 Destructor.
 
virtual yarp::dev::ReturnValue getAvailablePidsRaw (int j, std::vector< PidControlTypeEnum > &avail)=0
 Return a list of available pid types mode for the given joint.
 
virtual yarp::dev::ReturnValue setPidRaw (const PidControlTypeEnum &pidtype, int j, const Pid &pid)=0
 Set new PID value for a joint axis.
 
virtual yarp::dev::ReturnValue setPidsRaw (const PidControlTypeEnum &pidtype, const Pid *pids)=0
 Set new PID value on multiple axes.
 
virtual yarp::dev::ReturnValue setPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double ref)=0
 Set the controller reference for a given axis.
 
virtual yarp::dev::ReturnValue setPidReferencesRaw (const PidControlTypeEnum &pidtype, const double *refs)=0
 Set the controller reference, multiple axes.
 
virtual yarp::dev::ReturnValue setPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double limit)=0
 Set the error limit for the controller on a specific joint.
 
virtual yarp::dev::ReturnValue setPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, const double *limits)=0
 Get the error limit for the controller on all joints.
 
virtual yarp::dev::ReturnValue getPidErrorRaw (const PidControlTypeEnum &pidtype, int j, double *err)=0
 Get the current error for a joint.
 
virtual yarp::dev::ReturnValue getPidErrorsRaw (const PidControlTypeEnum &pidtype, double *errs)=0
 Get the error of all joints.
 
virtual yarp::dev::ReturnValue getPidOutputRaw (const PidControlTypeEnum &pidtype, int j, double *out)=0
 Get the output of the controller (e.g.
 
virtual yarp::dev::ReturnValue getPidOutputsRaw (const PidControlTypeEnum &pidtype, double *outs)=0
 Get the output of the controllers (e.g.
 
virtual yarp::dev::ReturnValue getPidRaw (const PidControlTypeEnum &pidtype, int j, Pid *pid)=0
 Get current PID value for a specific joint.
 
virtual yarp::dev::ReturnValue getPidsRaw (const PidControlTypeEnum &pidtype, Pid *pids)=0
 Get current PID value for a specific joint.
 
virtual yarp::dev::ReturnValue getPidExtraInfoRaw (const PidControlTypeEnum &pidtype, int j, yarp::dev::PidExtraInfo &info)=0
 Get PID extra info and measurement units for a specific joint.
 
virtual yarp::dev::ReturnValue getPidExtraInfosRaw (const PidControlTypeEnum &pidtype, std::vector< yarp::dev::PidExtraInfo > &info)=0
 Get PID extra info and measurement units for a specific joint.
 
virtual yarp::dev::ReturnValue getPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double *ref)=0
 Get the current reference of the PID controller for a specific joint.
 
virtual yarp::dev::ReturnValue getPidReferencesRaw (const PidControlTypeEnum &pidtype, double *refs)=0
 Get the current reference of all PID controllers.
 
virtual yarp::dev::ReturnValue getPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double *limit)=0
 Get the error limit for the controller on a specific joint.
 
virtual yarp::dev::ReturnValue getPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, double *limits)=0
 Get the error limit for all controllers.
 
virtual yarp::dev::ReturnValue resetPidRaw (const PidControlTypeEnum &pidtype, int j)=0
 Reset the controller of a given joint, usually sets the current status of the joint as the reference value for the PID, and resets the integrator.
 
virtual yarp::dev::ReturnValue disablePidRaw (const PidControlTypeEnum &pidtype, int j)=0
 Disable the PID computation for a joint.
 
virtual yarp::dev::ReturnValue enablePidRaw (const PidControlTypeEnum &pidtype, int j)=0
 Enable the PID computation for a joint.
 
virtual yarp::dev::ReturnValue setPidOffsetRaw (const PidControlTypeEnum &pidtype, int j, double v)=0
 Set an offset value for a given controller.
 
virtual yarp::dev::ReturnValue setPidFeedforwardRaw (const PidControlTypeEnum &pidtype, int j, double v)=0
 Set the feedforward value for the specified PID controller.
 
virtual yarp::dev::ReturnValue getPidOffsetRaw (const PidControlTypeEnum &pidtype, int j, double &v)=0
 Get the currently set offset value for the specified PID controller.
 
virtual yarp::dev::ReturnValue getPidFeedforwardRaw (const PidControlTypeEnum &pidtype, int j, double &v)=0
 Get the currently set feedforward value for the specified PID controller.
 
virtual yarp::dev::ReturnValue isPidEnabledRaw (const PidControlTypeEnum &pidtype, int j, bool &enabled)=0
 Get the current status (enabled/disabled) of the PID controller.
 

Detailed Description

Interface for a generic control board device implementing a PID controller.

Definition at line 30 of file IPidControl.h.

Constructor & Destructor Documentation

◆ ~IPidControlRaw()

virtual yarp::dev::IPidControlRaw::~IPidControlRaw ( )
inlinevirtual

Destructor.

Definition at line 36 of file IPidControl.h.

Member Function Documentation

◆ disablePidRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::disablePidRaw ( const PidControlTypeEnum &  pidtype,
int  j 
)
pure virtual

Disable the PID computation for a joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ enablePidRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::enablePidRaw ( const PidControlTypeEnum &  pidtype,
int  j 
)
pure virtual

Enable the PID computation for a joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ getAvailablePidsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getAvailablePidsRaw ( int  j,
std::vector< PidControlTypeEnum > &  avail 
)
pure virtual

Return a list of available pid types mode for the given joint.

Parameters
jjoint number
availa vector that will contain the list of available control modes for joint j.
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getPidErrorLimitRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidErrorLimitRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double *  limit 
)
pure virtual

Get the error limit for the controller on a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
limitpointer to storage
Returns
success/failure

Implemented in FakeMotionControl.

◆ getPidErrorLimitsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidErrorLimitsRaw ( const PidControlTypeEnum &  pidtype,
double *  limits 
)
pure virtual

Get the error limit for all controllers.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
limitspointer to the array that will store the output
Returns
success or failure

Implemented in FakeMotionControl.

◆ getPidErrorRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidErrorRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double *  err 
)
pure virtual

Get the current error for a joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
errpointer to the storage for the return value
Returns
true/false on success failure

Implemented in FakeMotionControl.

◆ getPidErrorsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidErrorsRaw ( const PidControlTypeEnum &  pidtype,
double *  errs 
)
pure virtual

Get the error of all joints.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
errspointer to the vector that will store the errors

Implemented in FakeMotionControl.

◆ getPidExtraInfoRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidExtraInfoRaw ( const PidControlTypeEnum &  pidtype,
int  j,
yarp::dev::PidExtraInfo &  info 
)
pure virtual

Get PID extra info and measurement units for a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
unitsthe measurement units for the specified PID.
Returns
success/failure

Implemented in FakeMotionControl.

◆ getPidExtraInfosRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidExtraInfosRaw ( const PidControlTypeEnum &  pidtype,
std::vector< yarp::dev::PidExtraInfo > &  info 
)
pure virtual

Get PID extra info and measurement units for a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
unitsvector that will store the info about of the pids.
Returns
success/failure

Implemented in FakeMotionControl.

◆ getPidFeedforwardRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidFeedforwardRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double &  v 
)
pure virtual

Get the currently set feedforward value for the specified PID controller.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
vthe feedforward value
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ getPidOffsetRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidOffsetRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double &  v 
)
pure virtual

Get the currently set offset value for the specified PID controller.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
vthe offset value
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ getPidOutputRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidOutputRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double *  out 
)
pure virtual

Get the output of the controller (e.g.

pwm value)

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
outpointer to storage for return value
Returns
success/failure

Implemented in FakeMotionControl.

◆ getPidOutputsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidOutputsRaw ( const PidControlTypeEnum &  pidtype,
double *  outs 
)
pure virtual

Get the output of the controllers (e.g.

pwm value)

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
outspointer to the vector that will store the output values

Implemented in FakeMotionControl.

◆ getPidRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidRaw ( const PidControlTypeEnum &  pidtype,
int  j,
Pid *  pid 
)
pure virtual

Get current PID value for a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
pidpointer to storage for the return value.
Returns
success/failure

Implemented in FakeMotionControl.

◆ getPidReferenceRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidReferenceRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double *  ref 
)
pure virtual

Get the current reference of the PID controller for a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
refpointer to storage for return value
Returns
reference value

Implemented in FakeMotionControl.

◆ getPidReferencesRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidReferencesRaw ( const PidControlTypeEnum &  pidtype,
double *  refs 
)
pure virtual

Get the current reference of all PID controllers.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
refsvector that will store the output.

Implemented in FakeMotionControl.

◆ getPidsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::getPidsRaw ( const PidControlTypeEnum &  pidtype,
Pid *  pids 
)
pure virtual

Get current PID value for a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
pidsvector that will store the values of the pids.
Returns
success/failure

Implemented in FakeMotionControl.

◆ isPidEnabledRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::isPidEnabledRaw ( const PidControlTypeEnum &  pidtype,
int  j,
bool &  enabled 
)
pure virtual

Get the current status (enabled/disabled) of the PID controller.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
enabledthe current status of the PID controller.
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ resetPidRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::resetPidRaw ( const PidControlTypeEnum &  pidtype,
int  j 
)
pure virtual

Reset the controller of a given joint, usually sets the current status of the joint as the reference value for the PID, and resets the integrator.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ setPidErrorLimitRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidErrorLimitRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double  limit 
)
pure virtual

Set the error limit for the controller on a specific joint.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
limitlimit value
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPidErrorLimitsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidErrorLimitsRaw ( const PidControlTypeEnum &  pidtype,
const double *  limits 
)
pure virtual

Get the error limit for the controller on all joints.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
limitspointer to the vector with the new limits
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPidFeedforwardRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidFeedforwardRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double  v 
)
pure virtual

Set the feedforward value for the specified PID controller.

This value will be multiplied by the PID feedforward gain.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
vthe feedforward value
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ setPidOffsetRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidOffsetRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double  v 
)
pure virtual

Set an offset value for a given controller.

The value will added to the output of the PID controller

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
vthe offset value
Returns
true on success, false on failure.

Implemented in FakeMotionControl.

◆ setPidRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidRaw ( const PidControlTypeEnum &  pidtype,
int  j,
const Pid &  pid 
)
pure virtual

Set new PID value for a joint axis.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
pidnew PID value
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPidReferenceRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidReferenceRaw ( const PidControlTypeEnum &  pidtype,
int  j,
double  ref 
)
pure virtual

Set the controller reference for a given axis.

Warning this method can result in very large torques and should be used carefully. If you do not understand this warning you should avoid using this method. Have a look at other interfaces (e.g. position control).

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
jjoint number
refnew reference point
Returns
true/false upon success/failure

Implemented in FakeMotionControl.

◆ setPidReferencesRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidReferencesRaw ( const PidControlTypeEnum &  pidtype,
const double *  refs 
)
pure virtual

Set the controller reference, multiple axes.

Warning this method can result in very large torques and should be used carefully. If you do not understand this warning you should avoid using this method. Have a look at other interfaces (e.g. position control).

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
refspointer to the vector that contains the new reference points.
Returns
true/false upon success/failure

Implemented in FakeMotionControl.

◆ setPidsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPidControlRaw::setPidsRaw ( const PidControlTypeEnum &  pidtype,
const Pid *  pids 
)
pure virtual

Set new PID value on multiple axes.

Parameters
pidtypethe id of the PID that will be affected by the command (e.g. position, velocity etc)
pidspointer to a vector of pids
Returns
true/false upon success/failure

Implemented in FakeMotionControl.


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