23bool SubDevice::configure(
size_t wb,
size_t wt,
size_t b,
size_t t,
size_t n,
const std::string& key,
const std::string& _parentName)
42 yCError(
CONTROLBOARD) <<
"Check configuration file, number of axes and top/base parameters do not match";
169 size_t deviceJoints = 0;
187 if (
pos !=
nullptr) {
197 deviceJoints =
static_cast<size_t>(tmp_axes);
208 deviceJoints =
static_cast<size_t>(tmp_axes);
211 if (deviceJoints <
axes) {
212 yCError(
CONTROLBOARD,
"Part <%s>: check device configuration, number of joints of attached device '%zu' less \
213 than the one specified during configuration '%zu' for %s.",
224 <<
"Please check the device has been correctly created and all required initialization actions has been performed.";
const yarp::os::LogComponent & CONTROLBOARD()
yarp::dev::IControlLimits * lim
yarp::dev::IImpedanceControl * iImpedance
yarp::dev::IMotorEncoders * iMotEnc
bool configure(size_t wbase, size_t wtop, size_t base, size_t top, size_t axes, const std::string &id, const std::string &_parentName)
yarp::dev::IControlMode * iMode
yarp::dev::IEncodersTimed * iJntEnc
yarp::dev::IVelocityControl * vel
yarp::sig::Vector subDev_motor_encoders
yarp::sig::Vector subDev_joint_encoders
yarp::sig::Vector motorEncodersTimes
yarp::dev::PolyDriver * subdevice
yarp::dev::IAmplifierControl * amp
yarp::dev::IAxisInfo * info
yarp::dev::IMotor * imotor
yarp::dev::IInteractionMode * iInteract
yarp::sig::Vector jointEncodersTimes
yarp::dev::IPositionControl * pos
yarp::dev::ITorqueControl * iTorque
yarp::dev::IPidControl * pid
yarp::dev::IPreciselyTimed * iTimed
bool attach(yarp::dev::PolyDriver *d, const std::string &id)
yarp::dev::IRemoteVariables * iVar
yarp::dev::IPWMControl * iPWM
yarp::dev::IPositionDirect * posDir
yarp::dev::IControlCalibration * calib
yarp::dev::ICurrentControl * iCurr
bool view(T *&x)
Get an interface to the device driver.
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
A container for a device driver.
bool isValid() const
Check if device is valid.
void resize(size_t size) override
Resize the vector.
#define yCError(component,...)
#define yCDebug(component,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.