YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ControlBoardRemapper Class Reference

controlboardremapper : device that takes a list of axes from multiple controlboards and expose them as a single controlboard. More...

#include <controlBoardRemapper/ControlBoardRemapper.h>

+ Inheritance diagram for ControlBoardRemapper:

Public Member Functions

 ControlBoardRemapper ()=default
 
 ControlBoardRemapper (const ControlBoardRemapper &)=delete
 
 ControlBoardRemapper (ControlBoardRemapper &&)=delete
 
ControlBoardRemapper & operator= (const ControlBoardRemapper &)=delete
 
ControlBoardRemapper & operator= (ControlBoardRemapper &&)=delete
 
 ~ControlBoardRemapper () override=default
 
bool verbose () const
 Return the value of the verbose flag.
 
bool close () override
 Close the device driver by deallocating all resources and closing ports.
 
bool open (yarp::os::Searchable &prop) override
 Open the device driver.
 
bool detachAll () override
 Detach the object (you must have first called attach).
 
bool attachAll (const yarp::dev::PolyDriverList &l) override
 Attach to a list of objects.
 
yarp::dev::ReturnValue getAvailablePids (int j, std::vector< yarp::dev::PidControlTypeEnum > &avail) override
 ControlBoard methods.
 
yarp::dev::ReturnValue setPid (const yarp::dev::PidControlTypeEnum &pidtype, int j, const yarp::dev::Pid &p) override
 Set new PID value for a joint axis.
 
yarp::dev::ReturnValue setPids (const yarp::dev::PidControlTypeEnum &pidtype, const yarp::dev::Pid *ps) override
 Set new PID value on multiple axes.
 
yarp::dev::ReturnValue setPidReference (const yarp::dev::PidControlTypeEnum &pidtype, int j, double ref) override
 Set the controller reference for a given axis.
 
yarp::dev::ReturnValue setPidReferences (const yarp::dev::PidControlTypeEnum &pidtype, const double *refs) override
 Set the controller reference, multiple axes.
 
yarp::dev::ReturnValue setPidErrorLimit (const yarp::dev::PidControlTypeEnum &pidtype, int j, double limit) override
 Set the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue setPidErrorLimits (const yarp::dev::PidControlTypeEnum &pidtype, const double *limits) override
 Get the error limit for the controller on all joints.
 
yarp::dev::ReturnValue getPidError (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *err) override
 Get the current error for a joint.
 
yarp::dev::ReturnValue getPidErrors (const yarp::dev::PidControlTypeEnum &pidtype, double *errs) override
 Get the error of all joints.
 
yarp::dev::ReturnValue getPidOutput (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *out) override
 Get the output of the controller (e.g.
 
yarp::dev::ReturnValue getPidOutputs (const yarp::dev::PidControlTypeEnum &pidtype, double *outs) override
 Get the output of the controllers (e.g.
 
yarp::dev::ReturnValue setPidOffset (const yarp::dev::PidControlTypeEnum &pidtype, int j, double v) override
 Set an offset value for a given controller.
 
yarp::dev::ReturnValue setPidFeedforward (const yarp::dev::PidControlTypeEnum &pidtype, int j, double v) override
 Set the feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue getPidOffset (const yarp::dev::PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set offset value for the specified PID controller.
 
yarp::dev::ReturnValue getPidFeedforward (const yarp::dev::PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue getPid (const yarp::dev::PidControlTypeEnum &pidtype, int j, yarp::dev::Pid *p) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPids (const yarp::dev::PidControlTypeEnum &pidtype, yarp::dev::Pid *pids) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPidReference (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *ref) override
 Get the current reference of the PID controller for a specific joint.
 
yarp::dev::ReturnValue getPidReferences (const yarp::dev::PidControlTypeEnum &pidtype, double *refs) override
 Get the current reference of all PID controllers.
 
yarp::dev::ReturnValue getPidErrorLimit (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *limit) override
 Get the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue getPidErrorLimits (const yarp::dev::PidControlTypeEnum &pidtype, double *limits) override
 Get the error limit for all controllers.
 
yarp::dev::ReturnValue resetPid (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 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.
 
yarp::dev::ReturnValue disablePid (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 Disable the PID computation for a joint.
 
yarp::dev::ReturnValue enablePid (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 Enable the PID computation for a joint.
 
yarp::dev::ReturnValue isPidEnabled (const yarp::dev::PidControlTypeEnum &pidtype, int j, bool &enabled) override
 Get the current status (enabled/disabled) of the PID.
 
yarp::dev::ReturnValue getPidExtraInfo (const yarp::dev::PidControlTypeEnum &pidtype, int j, yarp::dev::PidExtraInfo &units) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getPidExtraInfos (const yarp::dev::PidControlTypeEnum &pidtype, std::vector< yarp::dev::PidExtraInfo > &units) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue positionMove (int j, double ref) override
 Set new reference point for a single axis.
 
yarp::dev::ReturnValue positionMove (const double *refs) override
 Set new reference point for all axes.
 
yarp::dev::ReturnValue positionMove (const int n_joints, const int *joints, const double *refs) override
 Set new reference point for a subset of joints.
 
yarp::dev::ReturnValue getTargetPosition (const int joint, double *ref) override
 Get the last position reference for the specified axis.
 
yarp::dev::ReturnValue getTargetPositions (double *refs) override
 Get the last position reference for all axes.
 
yarp::dev::ReturnValue getTargetPositions (const int n_joint, const int *joints, double *refs) override
 Get the last position reference for the specified group of axes.
 
yarp::dev::ReturnValue relativeMove (int j, double delta) override
 Set relative position.
 
yarp::dev::ReturnValue relativeMove (const double *deltas) override
 Set relative position, all joints.
 
yarp::dev::ReturnValue relativeMove (const int n_joints, const int *joints, const double *deltas) override
 Set relative position for a subset of joints.
 
yarp::dev::ReturnValue checkMotionDone (int j, bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue checkMotionDone (bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue checkMotionDone (const std::vector< int > &joints, bool &flags) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue setTrajSpeed (int j, double sp) override
 Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
 
yarp::dev::ReturnValue setTrajSpeeds (const double *spds) override
 Set reference speed on all joints.
 
yarp::dev::ReturnValue setTrajSpeeds (const int n_joints, const int *joints, const double *spds) override
 Set reference speed on all joints.
 
yarp::dev::ReturnValue setTrajAcceleration (int j, double acc) override
 Set reference acceleration for a joint.
 
yarp::dev::ReturnValue setTrajAccelerations (const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue setTrajAccelerations (const int n_joints, const int *joints, const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue getTrajSpeed (int j, double *ref) override
 Get reference speed for a joint.
 
yarp::dev::ReturnValue getTrajSpeeds (double *spds) override
 Get reference speed of all joints.
 
yarp::dev::ReturnValue getTrajSpeeds (const int n_joints, const int *joints, double *spds) override
 Get reference speed of all joints.
 
yarp::dev::ReturnValue getTrajAcceleration (int j, double *acc) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue getTrajAccelerations (double *accs) override
 Get reference acceleration of all joints.
 
yarp::dev::ReturnValue getTrajAccelerations (const int n_joints, const int *joints, double *accs) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue stop (int j) override
 Stop motion, single joint.
 
yarp::dev::ReturnValue stop () override
 Stop motion, multiple joints.
 
yarp::dev::ReturnValue stop (const int n_joints, const int *joints) override
 Stop motion for subset of joints.
 
yarp::dev::ReturnValue getLastJointFault (int j, int &fault, std::string &message) override
 
yarp::dev::ReturnValue velocityMove (int j, double v) override
 Start motion at a given speed, single joint.
 
yarp::dev::ReturnValue velocityMove (const double *v) override
 Start motion at a given speed, multiple joints.
 
yarp::dev::ReturnValue resetEncoder (int j) override
 Reset encoder, single joint.
 
yarp::dev::ReturnValue resetEncoders () override
 Reset encoders.
 
yarp::dev::ReturnValue setEncoder (int j, double val) override
 Set the value of the encoder for a given joint.
 
yarp::dev::ReturnValue setEncoders (const double *vals) override
 Set the value of all encoders.
 
yarp::dev::ReturnValue getEncoder (int j, double *v) override
 Read the value of an encoder.
 
yarp::dev::ReturnValue getEncoders (double *encs) override
 Read the position of all axes.
 
yarp::dev::ReturnValue getEncodersTimed (double *encs, double *t) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoderTimed (int j, double *v, double *t) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoderSpeed (int j, double *sp) override
 Read the istantaneous speed of an axis.
 
yarp::dev::ReturnValue getEncoderSpeeds (double *spds) override
 Read the instantaneous speed of all axes.
 
yarp::dev::ReturnValue getEncoderAcceleration (int j, double *acc) override
 Read the instantaneous acceleration of an axis.
 
yarp::dev::ReturnValue getEncoderAccelerations (double *accs) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getNumberOfMotorEncoders (int *num) override
 Get the number of available motor encoders.
 
yarp::dev::ReturnValue resetMotorEncoder (int m) override
 Reset motor encoder, single motor.
 
yarp::dev::ReturnValue resetMotorEncoders () override
 Reset motor encoders.
 
yarp::dev::ReturnValue setMotorEncoderCountsPerRevolution (int m, const double cpr) override
 Sets number of counts per revolution for motor encoder m.
 
yarp::dev::ReturnValue getMotorEncoderCountsPerRevolution (int m, double *cpr) override
 Gets number of counts per revolution for motor encoder m.
 
yarp::dev::ReturnValue setMotorEncoder (int m, const double val) override
 Set the value of the motor encoder for a given motor.
 
yarp::dev::ReturnValue setMotorEncoders (const double *vals) override
 Set the value of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoder (int m, double *v) override
 Read the value of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoders (double *encs) override
 Read the position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncodersTimed (double *encs, double *t) override
 Read the instantaneous position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderTimed (int m, double *v, double *t) override
 Read the instantaneous position of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderSpeed (int m, double *sp) override
 Read the instantaneous speed of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderSpeeds (double *spds) override
 Read the instantaneous speed of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderAcceleration (int m, double *acc) override
 Read the instantaneous acceleration of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderAccelerations (double *accs) override
 Read the instantaneous acceleration of all motor encoders.
 
yarp::dev::ReturnValue enableAmp (int j) override
 Enable the amplifier on a specific joint.
 
yarp::dev::ReturnValue disableAmp (int j) override
 Disable the amplifier on a specific joint.
 
yarp::dev::ReturnValue getAmpStatus (int *st) override
 
yarp::dev::ReturnValue getAmpStatus (int j, int *v) override
 
yarp::dev::ReturnValue setMaxCurrent (int j, double v) override
 
yarp::dev::ReturnValue getMaxCurrent (int j, double *v) override
 Returns the maximum electric current allowed for a given motor.
 
yarp::dev::ReturnValue getNominalCurrent (int m, double *val) override
 
yarp::dev::ReturnValue setNominalCurrent (int m, const double val) override
 
yarp::dev::ReturnValue getPeakCurrent (int m, double *val) override
 
yarp::dev::ReturnValue setPeakCurrent (int m, const double val) override
 
yarp::dev::ReturnValue getPWM (int m, double *val) override
 
yarp::dev::ReturnValue getPWMLimit (int m, double *val) override
 
yarp::dev::ReturnValue setPWMLimit (int m, const double val) override
 
yarp::dev::ReturnValue getPowerSupplyVoltage (int m, double *val) override
 
yarp::dev::ReturnValue setPosLimits (int j, double min, double max) override
 Set the software limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
 
yarp::dev::ReturnValue getPosLimits (int j, double *min, double *max) override
 Get the software limits for a particular axis.
 
yarp::dev::ReturnValue setVelLimits (int j, double min, double max) override
 Set the software speed limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.
 
yarp::dev::ReturnValue getVelLimits (int j, double *min, double *max) override
 Get the software speed limits for a particular axis.
 
yarp::dev::ReturnValue getRemoteVariable (std::string key, yarp::os::Bottle &val) override
 
yarp::dev::ReturnValue setRemoteVariable (std::string key, const yarp::os::Bottle &val) override
 
yarp::dev::ReturnValue getRemoteVariablesList (yarp::os::Bottle *listOfKeys) override
 
yarp::dev::ReturnValue isCalibratorDevicePresent (bool *isCalib) override
 isCalibratorDevicePresent: check if a calibrator device has been set
 
yarp::dev::IRemoteCalibrator * getCalibratorDevice () override
 getCalibratorDevice: return the pointer stored with the setCalibratorDevice
 
yarp::dev::ReturnValue calibrateSingleJoint (int j) override
 calibrateSingleJoint: call the calibration procedure for the single joint
 
yarp::dev::ReturnValue calibrateWholePart () override
 calibrateWholePart: call the procedure for calibrating the whole device
 
yarp::dev::ReturnValue homingSingleJoint (int j) override
 homingSingleJoint: call the homing procedure for a single joint
 
yarp::dev::ReturnValue homingWholePart () override
 homingWholePart: call the homing procedure for a the whole part/device
 
yarp::dev::ReturnValue parkSingleJoint (int j, bool _wait=true) override
 parkSingleJoint(): start the parking procedure for the single joint
 
yarp::dev::ReturnValue parkWholePart () override
 parkWholePart: start the parking procedure for the whole part
 
yarp::dev::ReturnValue quitCalibrate () override
 quitCalibrate: interrupt the calibration procedure
 
yarp::dev::ReturnValue quitPark () override
 quitPark: interrupt the park procedure
 
yarp::dev::ReturnValue calibrateAxisWithParams (int j, unsigned int ui, double v1, double v2, double v3) override
 Start calibration, this method is very often platform specific.
 
yarp::dev::ReturnValue setCalibrationParameters (int j, const yarp::dev::CalibrationParameters &params) override
 Start calibration, this method is very often platform specific.
 
yarp::dev::ReturnValue calibrationDone (int j) override
 Check if the calibration is terminated, on a particular joint.
 
yarp::dev::ReturnValue abortPark () override
 
yarp::dev::ReturnValue abortCalibration () override
 
yarp::dev::ReturnValue getNumberOfMotors (int *num) override
 Retrieves the number of controlled motors from the current physical interface.
 
yarp::dev::ReturnValue getTemperature (int m, double *val) override
 Get temperature of a motor.
 
yarp::dev::ReturnValue getTemperatures (double *vals) override
 Get temperature of all the motors.
 
yarp::dev::ReturnValue getTemperatureLimit (int m, double *val) override
 Retrieves the current temperature limit for a specific motor.
 
yarp::dev::ReturnValue setTemperatureLimit (int m, const double val) override
 Set the temperature limit for a specific motor.
 
yarp::dev::ReturnValue getGearboxRatio (int m, double *val) override
 Get the gearbox ratio for a specific motor.
 
yarp::dev::ReturnValue setGearboxRatio (int m, const double val) override
 Set the gearbox ratio for a specific motor.
 
yarp::dev::ReturnValue getAxisName (int j, std::string &name) override
 
yarp::dev::ReturnValue getJointType (int j, yarp::dev::JointTypeEnum &type) override
 
yarp::dev::ReturnValue getRefTorques (double *refs) override
 Get the reference value of the torque for all joints.
 
yarp::dev::ReturnValue getRefTorque (int j, double *t) override
 Get the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue setRefTorques (const double *t) override
 Set the reference value of the torque for all joints.
 
yarp::dev::ReturnValue setRefTorque (int j, double t) override
 Set the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue setRefTorques (const int n_joint, const int *joints, const double *t) override
 Set new torque reference for a subset of joints.
 
yarp::dev::ReturnValue getMotorTorqueParams (int j, yarp::dev::MotorTorqueParameters *params) override
 Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
yarp::dev::ReturnValue setMotorTorqueParams (int j, const yarp::dev::MotorTorqueParameters params) override
 Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
yarp::dev::ReturnValue setImpedance (int j, double stiff, double damp) override
 Set current impedance gains (stiffness,damping) for a specific joint.
 
yarp::dev::ReturnValue setImpedanceOffset (int j, double offset) override
 Set current force Offset for a specific joint.
 
yarp::dev::ReturnValue getTorque (int j, double *t) override
 Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
 
yarp::dev::ReturnValue getTorques (double *t) override
 Get the value of the torque for all joints (this is the feedback if you have torque sensors).
 
yarp::dev::ReturnValue getTorqueRange (int j, double *min, double *max) override
 Get the full scale of the torque sensor of a given joint.
 
yarp::dev::ReturnValue getTorqueRanges (double *min, double *max) override
 Get the full scale of the torque sensors of all joints.
 
yarp::dev::ReturnValue getImpedance (int j, double *stiff, double *damp) override
 Get current impedance gains (stiffness,damping,offset) for a specific joint.
 
yarp::dev::ReturnValue getImpedanceOffset (int j, double *offset) override
 Get current force Offset for a specific joint.
 
yarp::dev::ReturnValue getCurrentImpedanceLimit (int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override
 Get the current impedance limits for a specific joint.
 
yarp::dev::ReturnValue getAvailableControlModes (int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail) override
 Return a list of available control mode for the given joint.
 
yarp::dev::ReturnValue getControlMode (int j, yarp::dev::ControlModeEnum &mode) override
 Get the current control mode.
 
yarp::dev::ReturnValue getControlModes (const std::vector< int > &joints, std::vector< yarp::dev::ControlModeEnum > &modes) override
 Get the current control mode for a subset of axes.
 
yarp::dev::ReturnValue getControlModes (std::vector< yarp::dev::ControlModeEnum > &mode) override
 Get the current control mode (multiple joints).
 
yarp::dev::ReturnValue setControlMode (int j, yarp::dev::SelectableControlModeEnum mode) override
 Set the current control mode.
 
yarp::dev::ReturnValue setControlModes (const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override
 Set the current control mode for a subset of axes.
 
yarp::dev::ReturnValue setControlModes (const std::vector< yarp::dev::SelectableControlModeEnum > &mode) override
 Set the current control mode (multiple joints).
 
yarp::dev::ReturnValue setPosition (int j, double ref) override
 Set new position for a single axis.
 
yarp::dev::ReturnValue setPositions (const int n_joints, const int *joints, const double *dpos) override
 Set new reference point for all axes.
 
yarp::dev::ReturnValue setPositions (const double *refs) override
 Set new position for a set of axis.
 
yarp::dev::ReturnValue getRefPosition (const int joint, double *ref) override
 Get the last position reference for the specified axis.
 
yarp::dev::ReturnValue getRefPositions (double *refs) override
 Get the last position reference for all axes.
 
yarp::dev::ReturnValue getRefPositions (const int n_joint, const int *joints, double *refs) override
 Get the last position reference for the specified group of axes.
 
yarp::os::Stamp getLastInputStamp () override
 Return the time stamp relative to the last acquisition.
 
yarp::dev::ReturnValue velocityMove (const int n_joints, const int *joints, const double *spds) override
 Start motion at a given speed for a subset of joints.
 
yarp::dev::ReturnValue getTargetVelocity (const int joint, double *vel) override
 Get the last reference speed set by velocityMove for single joint.
 
yarp::dev::ReturnValue getTargetVelocities (double *vels) override
 Get the last reference speed set by velocityMove for all joints.
 
yarp::dev::ReturnValue getTargetVelocities (const int n_joint, const int *joints, double *vels) override
 Get the last reference speed set by velocityMove for a group of joints.
 
yarp::dev::ReturnValue getInteractionMode (int j, yarp::dev::InteractionModeEnum &mode) override
 Get the current interaction mode of the robot, values can be stiff or compliant.
 
yarp::dev::ReturnValue getInteractionModes (const std::vector< int > &joints, std::vector< yarp::dev::InteractionModeEnum > &modes) override
 Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
 
yarp::dev::ReturnValue getInteractionModes (std::vector< yarp::dev::InteractionModeEnum > &modes) override
 Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant.
 
yarp::dev::ReturnValue setInteractionMode (int j, yarp::dev::InteractionModeEnum mode) override
 Set the interaction mode of the robot, values can be stiff or compliant.
 
yarp::dev::ReturnValue setInteractionModes (const std::vector< int > &joints, const std::vector< yarp::dev::InteractionModeEnum > &modes) override
 Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
 
yarp::dev::ReturnValue setInteractionModes (const std::vector< yarp::dev::InteractionModeEnum > &modes) override
 Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
 
yarp::dev::ReturnValue setRefDutyCycle (int m, double ref) override
 Sets the reference dutycycle to a single motor.
 
yarp::dev::ReturnValue setRefDutyCycles (const double *refs) override
 Sets the reference dutycycle for all the motors.
 
yarp::dev::ReturnValue getRefDutyCycle (int m, double *ref) override
 Gets the last reference sent using the setRefDutyCycle function.
 
yarp::dev::ReturnValue getRefDutyCycles (double *refs) override
 Gets the last reference sent using the setRefDutyCycles function.
 
yarp::dev::ReturnValue getDutyCycle (int m, double *val) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue getDutyCycles (double *vals) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue getCurrent (int m, double *curr) override
 Get the instantaneous current measurement for a single motor.
 
yarp::dev::ReturnValue getCurrents (double *currs) override
 Get the instantaneous current measurement for all motors.
 
yarp::dev::ReturnValue getCurrentRange (int m, double *min, double *max) override
 Get the full scale of the current measurement for a given motor (e.g.
 
yarp::dev::ReturnValue getCurrentRanges (double *min, double *max) override
 Get the full scale of the current measurements for all motors motor (e.g.
 
yarp::dev::ReturnValue setRefCurrents (const double *currs) override
 Set the reference value of the currents for all motors.
 
yarp::dev::ReturnValue setRefCurrent (int m, double curr) override
 Set the reference value of the current for a single motor.
 
yarp::dev::ReturnValue setRefCurrents (const int n_motor, const int *motors, const double *currs) override
 Set the reference value of the current for a group of motors.
 
yarp::dev::ReturnValue getRefCurrents (double *currs) override
 Get the reference value of the currents for all motors.
 
yarp::dev::ReturnValue getRefCurrent (int m, double *curr) override
 Get the reference value of the current for a single motor.
 
yarp::dev::ReturnValue isJointBraked (int j, bool &braked) const override
 Check is the joint brake is currently active.
 
yarp::dev::ReturnValue setManualBrakeActive (int j, bool active) override
 Enables/Disables manually the joint brake.
 
yarp::dev::ReturnValue setAutoBrakeEnabled (int j, bool enabled) override
 Enables/Disables the automatic joint brake.
 
yarp::dev::ReturnValue getAutoBrakeEnabled (int j, bool &enabled) const override
 checks if the automatic joint brake mode is enabled or disabled.
 
yarp::dev::ReturnValue setRefVelocity (int jnt, double vel) override
 Set the velocity of single joint.
 
yarp::dev::ReturnValue setRefVelocity (const std::vector< double > &vels) override
 Set the velocity of all joints.
 
yarp::dev::ReturnValue setRefVelocity (const std::vector< int > &jnts, const std::vector< double > &vels) override
 Set the velocity of a subset of joints.
 
yarp::dev::ReturnValue getRefVelocity (const int jnt, double &vel) override
 Get the last reference velocity set by setRefVelocity() for a single joint.
 
yarp::dev::ReturnValue getRefVelocity (std::vector< double > &vels) override
 Get the last reference velocity set by setRefVelocity() for all joints.
 
yarp::dev::ReturnValue getRefVelocity (const std::vector< int > &jnts, std::vector< double > &vels) override
 Get the last reference velocity set by setRefVelocity() for a group of joints.
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 DeviceDriver ()
 
 DeviceDriver (const DeviceDriver &other)=delete
 
 DeviceDriver (DeviceDriver &&other) noexcept=delete
 
DeviceDriver & operator= (const DeviceDriver &other)=delete
 
DeviceDriver & operator= (DeviceDriver &&other) noexcept=delete
 
virtual ~DeviceDriver ()
 
virtual std::string id () const
 Return the id assigned to the PolyDriver.
 
virtual void setId (const std::string &id)
 Set the id for this device.
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver.
 
virtual DeviceDriver * getImplementation ()
 Some drivers are bureaucrats, pointing at others.
 
- Public Member Functions inherited from yarp::dev::IPidControl
virtual ~IPidControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPositionControl
virtual ~IPositionControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPositionDirect
virtual ~IPositionDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityControl
virtual ~IVelocityControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityDirect
virtual ~IVelocityDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPWMControl
virtual ~IPWMControl ()
 
- Public Member Functions inherited from yarp::dev::ICurrentControl
virtual ~ICurrentControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IEncodersTimed
virtual ~IEncodersTimed ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IEncoders
virtual ~IEncoders ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMotor
virtual ~IMotor ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMotorEncoders
virtual ~IMotorEncoders ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IAmplifierControl
virtual ~IAmplifierControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IControlLimits
virtual ~IControlLimits ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IRemoteCalibrator
 IRemoteCalibrator ()
 This interface is meant to remotize the access of the calibration device in order to allow users to remotely call the calibration procedure for a single joint or the whole device and let the calibrator do the job.
 
virtual ~IRemoteCalibrator ()=default
 
virtual yarp::dev::ReturnValue setCalibratorDevice (yarp::dev::IRemoteCalibrator *dev)
 setCalibratorDevice: store the pointer to the calibrator device.
 
virtual yarp::dev::ReturnValue releaseCalibratorDevice ()
 releaseCalibratorDevice: reset the internal pointer to NULL when stop using the calibrator
 
- Public Member Functions inherited from yarp::dev::IControlCalibration
 IControlCalibration ()
 
virtual ~IControlCalibration ()
 Destructor.
 
virtual yarp::dev::ReturnValue setCalibrator (ICalibrator *c)
 Set the calibrator object to be used to calibrate the robot.
 
virtual yarp::dev::ReturnValue calibrateRobot ()
 Calibrate robot by using an external calibrator.
 
virtual yarp::dev::ReturnValue park (bool wait=true)
 
- Public Member Functions inherited from yarp::dev::ITorqueControl
virtual ~ITorqueControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IImpedanceControl
virtual ~IImpedanceControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IControlMode
virtual ~IControlMode ()
 
virtual yarp::dev::ReturnValue getControlMode (int j, int *mode)
 
virtual yarp::dev::ReturnValue setControlMode (const int j, const int mode)
 
- Public Member Functions inherited from yarp::dev::IMultipleWrapper
virtual ~IMultipleWrapper ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IAxisInfo
virtual ~IAxisInfo ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPreciselyTimed
virtual ~IPreciselyTimed ()
 
- Public Member Functions inherited from yarp::dev::IInteractionMode
virtual ~IInteractionMode ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IRemoteVariables
virtual ~IRemoteVariables ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IJointFault
virtual ~IJointFault ()
 
- Public Member Functions inherited from yarp::dev::IJointBrake
virtual ~IJointBrake ()
 

Detailed Description

controlboardremapper : device that takes a list of axes from multiple controlboards and expose them as a single controlboard.

YARP device name
controlboardremapper

Parameters required by this device are:

Parameter name SubParameter Type Units Default Value Required Description Notes
axesNames - vector of strings - - Yes Ordered list of the axes that are part of the remapped device.

The axes are then mapped to the wrapped controlboard in the attachAll method, using the values returned by the getAxisName method of the controlboard. If different axes in two attached controlboard have the same name, the behaviour of this device is undefined.

Configuration file using .ini format.

device controlboardremapper
axesNames (joint1 joint2 joint3)
...

For compatibility with the controlBoard_nws_yarp, the networks keyword can also be used to select the desired joints. For more information on the syntax of the networks, see the controlBoard_nws_yarp class.

networks (net_larm net_lhand)
joints 16
net_larm 0 3 0 3
net_lhand 4 6 0 2

Definition at line 69 of file ControlBoardRemapper.h.

Constructor & Destructor Documentation

◆ ControlBoardRemapper() [1/3]

ControlBoardRemapper::ControlBoardRemapper ( )
default

◆ ControlBoardRemapper() [2/3]

ControlBoardRemapper::ControlBoardRemapper ( const ControlBoardRemapper &  )
delete

◆ ControlBoardRemapper() [3/3]

ControlBoardRemapper::ControlBoardRemapper ( ControlBoardRemapper &&  )
delete

◆ ~ControlBoardRemapper()

ControlBoardRemapper::~ControlBoardRemapper ( )
overridedefault

Member Function Documentation

◆ abortCalibration()

ReturnValue ControlBoardRemapper::abortCalibration ( )
overridevirtual

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 3363 of file ControlBoardRemapper.cpp.

◆ abortPark()

ReturnValue ControlBoardRemapper::abortPark ( )
overridevirtual

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 3357 of file ControlBoardRemapper.cpp.

◆ attachAll()

bool ControlBoardRemapper::attachAll ( const yarp::dev::PolyDriverList &  drivers)
overridevirtual

Attach to a list of objects.

Parameters
driversthe polydriver list that you want to attach to.
Returns
true/false on success failure.

Implements yarp::dev::IMultipleWrapper.

Definition at line 232 of file ControlBoardRemapper.cpp.

◆ calibrateAxisWithParams()

ReturnValue ControlBoardRemapper::calibrateAxisWithParams ( int  axis,
unsigned int  type,
double  p1,
double  p2,
double  p3 
)
overridevirtual

Start calibration, this method is very often platform specific.

Returns
true/false on success failure

Implements yarp::dev::IControlCalibration.

Definition at line 3308 of file ControlBoardRemapper.cpp.

◆ calibrateSingleJoint()

ReturnValue ControlBoardRemapper::calibrateSingleJoint ( int  j)
overridevirtual

calibrateSingleJoint: call the calibration procedure for the single joint

Parameters
jjoint to be calibrated
Returns
true if calibration was successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3110 of file ControlBoardRemapper.cpp.

◆ calibrateWholePart()

yarp::dev::ReturnValue ControlBoardRemapper::calibrateWholePart ( )
overridevirtual

calibrateWholePart: call the procedure for calibrating the whole device

Returns
true if calibration was successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3136 of file ControlBoardRemapper.cpp.

◆ calibrationDone()

ReturnValue ControlBoardRemapper::calibrationDone ( int  j)
overridevirtual

Check if the calibration is terminated, on a particular joint.

Non blocking.

Returns
true/false

Implements yarp::dev::IControlCalibration.

Definition at line 3337 of file ControlBoardRemapper.cpp.

◆ checkMotionDone() [1/3]

ReturnValue ControlBoardRemapper::checkMotionDone ( bool &  flag)
overridevirtual

Check if the current trajectory is terminated.

Non blocking.

Parameters
flagis a pointer to return value ("and" of all joints)
Returns
true/false on network communication (value you actually want is stored in *flag)

Implements yarp::dev::IPositionControl.

Definition at line 1363 of file ControlBoardRemapper.cpp.

◆ checkMotionDone() [2/3]

ReturnValue ControlBoardRemapper::checkMotionDone ( const std::vector< int > &  joints,
bool &  flag 
)
overridevirtual

Check if the current trajectory is terminated.

Non blocking.

Parameters
jointsarray of joint numbers
flaglogical "and" of all set of joints
Returns
true/false if network communication went well.

Implements yarp::dev::IPositionControl.

Definition at line 1395 of file ControlBoardRemapper.cpp.

◆ checkMotionDone() [3/3]

ReturnValue ControlBoardRemapper::checkMotionDone ( int  j,
bool &  flag 
)
overridevirtual

Check if the current trajectory is terminated.

Non blocking.

Parameters
jis the axis number
flagis a pointer to return value
Returns
true/false on network communication (value you actually want is stored in *flag)

Implements yarp::dev::IPositionControl.

Definition at line 1343 of file ControlBoardRemapper.cpp.

◆ close()

bool ControlBoardRemapper::close ( )
overridevirtual

Close the device driver by deallocating all resources and closing ports.

Returns
true if successful or false otherwise.

Reimplemented from yarp::dev::DeviceDriver.

Reimplemented in RemoteControlBoardRemapper.

Definition at line 23 of file ControlBoardRemapper.cpp.

◆ detachAll()

bool ControlBoardRemapper::detachAll ( )
overridevirtual

Detach the object (you must have first called attach).

Returns
true/false on success failure.

Implements yarp::dev::IMultipleWrapper.

Definition at line 475 of file ControlBoardRemapper.cpp.

◆ disableAmp()

ReturnValue ControlBoardRemapper::disableAmp ( int  j)
overridevirtual

Disable the amplifier on a specific joint.

All computations within the board will be carried out normally, but the output will be disabled.

Returns
true/false on success/failure

Implements yarp::dev::IAmplifierControl.

Definition at line 2762 of file ControlBoardRemapper.cpp.

◆ disablePid()

ReturnValue ControlBoardRemapper::disablePid ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 1005 of file ControlBoardRemapper.cpp.

◆ enableAmp()

ReturnValue ControlBoardRemapper::enableAmp ( int  j)
overridevirtual

Enable the amplifier on a specific joint.

Be careful, check that the output of the controller is appropriate (usually zero), to avoid generating abrupt movements.

Returns
true/false on success/failure

Implements yarp::dev::IAmplifierControl.

Definition at line 2742 of file ControlBoardRemapper.cpp.

◆ enablePid()

ReturnValue ControlBoardRemapper::enablePid ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 1020 of file ControlBoardRemapper.cpp.

◆ getAmpStatus() [1/2]

ReturnValue ControlBoardRemapper::getAmpStatus ( int *  st)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2767 of file ControlBoardRemapper.cpp.

◆ getAmpStatus() [2/2]

ReturnValue ControlBoardRemapper::getAmpStatus ( int  j,
int *  v 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2797 of file ControlBoardRemapper.cpp.

◆ getAutoBrakeEnabled()

ReturnValue ControlBoardRemapper::getAutoBrakeEnabled ( int  j,
bool &  enabled 
) const
overridevirtual

checks if the automatic joint brake mode is enabled or disabled.

Parameters
jjoint number
enabledis true the automatic joint brake mode is enabled
Returns
: true/false success failure.

Implements yarp::dev::IJointBrake.

Definition at line 4792 of file ControlBoardRemapper.cpp.

◆ getAvailableControlModes()

ReturnValue ControlBoardRemapper::getAvailableControlModes ( int  j,
std::vector< yarp::dev::SelectableControlModeEnum > &  avail 
)
overridevirtual

Return a list of available control 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 success failure.

Implements yarp::dev::IControlMode.

Definition at line 3766 of file ControlBoardRemapper.cpp.

◆ getAvailablePids()

ReturnValue ControlBoardRemapper::getAvailablePids ( int  j,
std::vector< yarp::dev::PidControlTypeEnum > &  avail 
)
overridevirtual

ControlBoard methods.

Implements yarp::dev::IPidControl.

Definition at line 502 of file ControlBoardRemapper.cpp.

◆ getAxes()

ReturnValue ControlBoardRemapper::getAxes ( size_t &  ax)
overridevirtual

Get the number of controlled axes.

This command asks the number of controlled axes for the current physical interface.

Parameters
axpointer to storage
Returns
true/false.

Implements yarp::dev::IPositionControl.

Definition at line 1110 of file ControlBoardRemapper.cpp.

◆ getAxisName()

ReturnValue ControlBoardRemapper::getAxisName ( int  j,
std::string &  name 
)
overridevirtual

Implements yarp::dev::IAxisInfo.

Definition at line 3371 of file ControlBoardRemapper.cpp.

◆ getCalibratorDevice()

IRemoteCalibrator * ControlBoardRemapper::getCalibratorDevice ( )
overridevirtual

getCalibratorDevice: return the pointer stored with the setCalibratorDevice

Returns
yarp::dev::IRemotizableCalibrator pointer or NULL if not valid.

Reimplemented from yarp::dev::IRemoteCalibrator.

Definition at line 3100 of file ControlBoardRemapper.cpp.

◆ getControlMode()

ReturnValue ControlBoardRemapper::getControlMode ( int  j,
yarp::dev::ControlModeEnum &  mode 
)
overridevirtual

Get the current control mode.

Parameters
jjoint number
modea vocab of the current control mode for joint j.
Returns
: true/false success failure.

Implements yarp::dev::IControlMode.

Definition at line 3788 of file ControlBoardRemapper.cpp.

◆ getControlModes() [1/2]

ReturnValue ControlBoardRemapper::getControlModes ( const std::vector< int > &  joints,
std::vector< yarp::dev::ControlModeEnum > &  mode 
)
overridevirtual

Get the current control mode for a subset of axes.

Parameters
n_jointshow many joints this command is referring to
jointslist of joint numbers, the size of this array is n_joints
modesarray containing the new controlmodes, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 modes VOCAB_CM_POSITION VOCAB_CM_VELOCITY VOCAB_CM_POSITION
Returns
true/false success failure.

Implements yarp::dev::IControlMode.

Definition at line 3841 of file ControlBoardRemapper.cpp.

◆ getControlModes() [2/2]

ReturnValue ControlBoardRemapper::getControlModes ( std::vector< yarp::dev::ControlModeEnum > &  mode)
overridevirtual

Get the current control mode (multiple joints).

Parameters
modesa vector containing vocabs for the current control modes of the joints.
Returns
: true/false success failure.

Implements yarp::dev::IControlMode.

Definition at line 3811 of file ControlBoardRemapper.cpp.

◆ getCurrent()

ReturnValue ControlBoardRemapper::getCurrent ( int  m,
double *  curr 
)
overridevirtual

Get the instantaneous current measurement for a single motor.

Parameters
mmotor number
currpointer to the result value. Value is expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4540 of file ControlBoardRemapper.cpp.

◆ getCurrentImpedanceLimit()

ReturnValue ControlBoardRemapper::getCurrentImpedanceLimit ( int  j,
double *  min_stiff,
double *  max_stiff,
double *  min_damp,
double *  max_damp 
)
overridevirtual

Get the current impedance limits for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 3746 of file ControlBoardRemapper.cpp.

◆ getCurrentRange()

ReturnValue ControlBoardRemapper::getCurrentRange ( int  m,
double *  min,
double *  max 
)
overridevirtual

Get the full scale of the current measurement for a given motor (e.g.

-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.

Parameters
mmotor number
minminimum current of the motor m
maxmaximum current of the motor m
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4587 of file ControlBoardRemapper.cpp.

◆ getCurrentRanges()

ReturnValue ControlBoardRemapper::getCurrentRanges ( double *  min,
double *  max 
)
overridevirtual

Get the full scale of the current measurements for all motors motor (e.g.

-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.

Parameters
minpointer to the array that will store minimum currents
maxpointer to the array that will store maximum currents
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4604 of file ControlBoardRemapper.cpp.

◆ getCurrents()

ReturnValue ControlBoardRemapper::getCurrents ( double *  currs)
overridevirtual

Get the instantaneous current measurement for all motors.

Parameters
currspointer to the array that will store the output. Values are expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4557 of file ControlBoardRemapper.cpp.

◆ getDutyCycle()

ReturnValue ControlBoardRemapper::getDutyCycle ( int  m,
double *  val 
)
overridevirtual

Gets the current dutycycle of the output of the amplifier (i.e.

pwm value sent to the motor)

Parameters
mmotor number
valpointer to storage for return value, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4493 of file ControlBoardRemapper.cpp.

◆ getDutyCycles()

ReturnValue ControlBoardRemapper::getDutyCycles ( double *  vals)
overridevirtual

Gets the current dutycycle of the output of the amplifier (i.e.

pwm values sent to all motors)

Parameters
valspointer to the vector that will store the values, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4510 of file ControlBoardRemapper.cpp.

◆ getEncoder()

ReturnValue ControlBoardRemapper::getEncoder ( int  j,
double *  v 
)
overridevirtual

Read the value of an encoder.

Parameters
jencoder number
vpointer to storage for the return value
Returns
true/false, upon success/failure (you knew it, uh?)

Implements yarp::dev::IEncoders.

Definition at line 1976 of file ControlBoardRemapper.cpp.

◆ getEncoderAcceleration()

ReturnValue ControlBoardRemapper::getEncoderAcceleration ( int  j,
double *  spds 
)
overridevirtual

Read the instantaneous acceleration of an axis.

Parameters
jaxis number
spdspointer to the array that will contain the output

Implements yarp::dev::IEncoders.

Definition at line 2123 of file ControlBoardRemapper.cpp.

◆ getEncoderAccelerations()

ReturnValue ControlBoardRemapper::getEncoderAccelerations ( double *  accs)
overridevirtual

Read the instantaneous acceleration of all axes.

Parameters
accspointer to the array that will contain the output
Returns
true if all goes well, false if anything bad happens.

Implements yarp::dev::IEncoders.

Definition at line 2143 of file ControlBoardRemapper.cpp.

◆ getEncoders()

ReturnValue ControlBoardRemapper::getEncoders ( double *  encs)
overridevirtual

Read the position of all axes.

Parameters
encspointer to the array that will contain the output
Returns
true/false on success/failure

Implements yarp::dev::IEncoders.

Definition at line 1996 of file ControlBoardRemapper.cpp.

◆ getEncoderSpeed()

ReturnValue ControlBoardRemapper::getEncoderSpeed ( int  j,
double *  sp 
)
overridevirtual

Read the istantaneous speed of an axis.

Parameters
jaxis number
sppointer to storage for the output
Returns
true if successful, false ... otherwise.

Implements yarp::dev::IEncoders.

Definition at line 2074 of file ControlBoardRemapper.cpp.

◆ getEncoderSpeeds()

ReturnValue ControlBoardRemapper::getEncoderSpeeds ( double *  spds)
overridevirtual

Read the instantaneous speed of all axes.

Parameters
spdspointer to storage for the output values
Returns
guess what? (true/false on success or failure).

Implements yarp::dev::IEncoders.

Definition at line 2094 of file ControlBoardRemapper.cpp.

◆ getEncodersTimed()

ReturnValue ControlBoardRemapper::getEncodersTimed ( double *  encs,
double *  time 
)
overridevirtual

Read the instantaneous acceleration of all axes.

Parameters
encspointer to the array that will contain the output
timepointer to the array that will contain individual timestamps
Returns
true if all goes well, false if anything bad happens.

Implements yarp::dev::IEncodersTimed.

Definition at line 2025 of file ControlBoardRemapper.cpp.

◆ getEncoderTimed()

ReturnValue ControlBoardRemapper::getEncoderTimed ( int  j,
double *  encs,
double *  time 
)
overridevirtual

Read the instantaneous acceleration of all axes.

Parameters
jaxis index
encsencoder value (pointer to)
timecorresponding timestamp (pointer to)
Returns
true if all goes well, false if anything bad happens.

Implements yarp::dev::IEncodersTimed.

Definition at line 2054 of file ControlBoardRemapper.cpp.

◆ getGearboxRatio()

ReturnValue ControlBoardRemapper::getGearboxRatio ( int  m,
double *  val 
)
overridevirtual

Get the gearbox ratio for a specific motor.

Parameters
mmotor number
valretrieved gearbox ratio
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2265 of file ControlBoardRemapper.cpp.

◆ getImpedance()

ReturnValue ControlBoardRemapper::getImpedance ( int  j,
double *  stiffness,
double *  damping 
)
overridevirtual

Get current impedance gains (stiffness,damping,offset) for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 3706 of file ControlBoardRemapper.cpp.

◆ getImpedanceOffset()

ReturnValue ControlBoardRemapper::getImpedanceOffset ( int  j,
double *  offset 
)
overridevirtual

Get current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 3726 of file ControlBoardRemapper.cpp.

◆ getInteractionMode()

ReturnValue ControlBoardRemapper::getInteractionMode ( int  axis,
yarp::dev::InteractionModeEnum &  mode 
)
overridevirtual

Get the current interaction mode of the robot, values can be stiff or compliant.

Parameters
axisjoint number
modecontains the requested information about interaction mode of the joint
Returns
true or false on success or failure.

Implements yarp::dev::IInteractionMode.

Definition at line 4259 of file ControlBoardRemapper.cpp.

◆ getInteractionModes() [1/2]

ReturnValue ControlBoardRemapper::getInteractionModes ( const std::vector< int > &  joints,
std::vector< yarp::dev::InteractionModeEnum > &  modes 
)
overridevirtual

Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.

Parameters
n_jointshow many joints this command is referring to
jointslist of joints controlled. The size of this array is n_joints
modesarray containing the requested information about interaction mode, one value for each joint, the size is n_joints. for example: n_joint 3 joints 0 2 4 refs VOCAB_IM_STIFF VOCAB_IM_STIFF VOCAB_IM_COMPLIANT
Returns
true or false on success or failure.

Implements yarp::dev::IInteractionMode.

Definition at line 4279 of file ControlBoardRemapper.cpp.

◆ getInteractionModes() [2/2]

ReturnValue ControlBoardRemapper::getInteractionModes ( std::vector< yarp::dev::InteractionModeEnum > &  modes)
overridevirtual

Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant.

Parameters
modearray containing the requested information about interaction mode, one value for each joint.
Returns
true or false on success or failure.

Implements yarp::dev::IInteractionMode.

Definition at line 4311 of file ControlBoardRemapper.cpp.

◆ getJointType()

ReturnValue ControlBoardRemapper::getJointType ( int  j,
yarp::dev::JointTypeEnum &  type 
)
overridevirtual

Reimplemented from yarp::dev::IAxisInfo.

Definition at line 3391 of file ControlBoardRemapper.cpp.

◆ getLastInputStamp()

yarp::os::Stamp ControlBoardRemapper::getLastInputStamp ( )
overridevirtual

Return the time stamp relative to the last acquisition.

Implements yarp::dev::IPreciselyTimed.

Definition at line 4021 of file ControlBoardRemapper.cpp.

◆ getLastJointFault()

ReturnValue ControlBoardRemapper::getLastJointFault ( int  j,
int &  fault,
std::string &  message 
)
overridevirtual

Implements yarp::dev::IJointFault.

Definition at line 1811 of file ControlBoardRemapper.cpp.

◆ getMaxCurrent()

ReturnValue ControlBoardRemapper::getMaxCurrent ( int  j,
double *  v 
)
overridevirtual

Returns the maximum electric current allowed for a given motor.

Exceeding this value will trigger instantaneous hardware fault.

Parameters
jmotor number
vthe return value
Returns
probably true, might return false in bad times

Implements yarp::dev::IAmplifierControl.

Definition at line 2837 of file ControlBoardRemapper.cpp.

◆ getMotorEncoder()

ReturnValue ControlBoardRemapper::getMotorEncoder ( int  m,
double *  v 
)
overridevirtual

Read the value of a motor encoder.

Parameters
mmotor encoder number
vpointer to storage for the return value
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2542 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderAcceleration()

ReturnValue ControlBoardRemapper::getMotorEncoderAcceleration ( int  m,
double *  acc 
)
overridevirtual

Read the instantaneous acceleration of a motor encoder.

Parameters
mmotor number
accpointer to the array that will contain the output
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2684 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderAccelerations()

ReturnValue ControlBoardRemapper::getMotorEncoderAccelerations ( double *  accs)
overridevirtual

Read the instantaneous acceleration of all motor encoders.

Parameters
accspointer to the array that will contain the output
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2704 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderCountsPerRevolution()

ReturnValue ControlBoardRemapper::getMotorEncoderCountsPerRevolution ( int  m,
double *  cpr 
)
overridevirtual

Gets number of counts per revolution for motor encoder m.

Parameters
mmotor number
cprvals pointer to the new value
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2522 of file ControlBoardRemapper.cpp.

◆ getMotorEncoders()

ReturnValue ControlBoardRemapper::getMotorEncoders ( double *  encs)
overridevirtual

Read the position of all motor encoders.

Parameters
encspointer to the array that will contain the output
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2562 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderSpeed()

ReturnValue ControlBoardRemapper::getMotorEncoderSpeed ( int  m,
double *  sp 
)
overridevirtual

Read the instantaneous speed of a motor encoder.

Parameters
mmotor number
sppointer to storage for the output
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2635 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderSpeeds()

ReturnValue ControlBoardRemapper::getMotorEncoderSpeeds ( double *  spds)
overridevirtual

Read the instantaneous speed of all motor encoders.

Parameters
spdspointer to storage for the output values
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2655 of file ControlBoardRemapper.cpp.

◆ getMotorEncodersTimed()

ReturnValue ControlBoardRemapper::getMotorEncodersTimed ( double *  encs,
double *  time 
)
overridevirtual

Read the instantaneous position of all motor encoders.

Parameters
encspointer to the array that will contain the output
timepointer to the array that will contain individual timestamps
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2586 of file ControlBoardRemapper.cpp.

◆ getMotorEncoderTimed()

ReturnValue ControlBoardRemapper::getMotorEncoderTimed ( int  m,
double *  encs,
double *  time 
)
overridevirtual

Read the instantaneous position of a motor encoder.

Parameters
mmotor index
encsencoder value (pointer to)
timecorresponding timestamp (pointer to)
Returns
true if successful, false otherwise.

Implements yarp::dev::IMotorEncoders.

Definition at line 2615 of file ControlBoardRemapper.cpp.

◆ getMotorTorqueParams()

ReturnValue ControlBoardRemapper::getMotorTorqueParams ( int  j,
yarp::dev::MotorTorqueParameters *  params 
)
overridevirtual

Get a subset of motor parameters (bemf, ktau etc) useful for torque control.

Parameters
jjoint number
paramsa struct containing the motor parameters to be retrieved
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3527 of file ControlBoardRemapper.cpp.

◆ getNominalCurrent()

ReturnValue ControlBoardRemapper::getNominalCurrent ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2857 of file ControlBoardRemapper.cpp.

◆ getNumberOfMotorEncoders()

ReturnValue ControlBoardRemapper::getNumberOfMotorEncoders ( int *  num)
overridevirtual

Get the number of available motor encoders.

Parameters
mpointer to a value representing the number of available motor encoders.
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2735 of file ControlBoardRemapper.cpp.

◆ getNumberOfMotors()

ReturnValue ControlBoardRemapper::getNumberOfMotors ( int *  number)
overridevirtual

Retrieves the number of controlled motors from the current physical interface.

Parameters
numberreturns the number of controlled motors.
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 2173 of file ControlBoardRemapper.cpp.

◆ getPeakCurrent()

ReturnValue ControlBoardRemapper::getPeakCurrent ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2877 of file ControlBoardRemapper.cpp.

◆ getPid()

ReturnValue ControlBoardRemapper::getPid ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
yarp::dev::Pid *  pid 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 840 of file ControlBoardRemapper.cpp.

◆ getPidError()

ReturnValue ControlBoardRemapper::getPidError ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double *  err 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 669 of file ControlBoardRemapper.cpp.

◆ getPidErrorLimit()

ReturnValue ControlBoardRemapper::getPidErrorLimit ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double *  limit 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 936 of file ControlBoardRemapper.cpp.

◆ getPidErrorLimits()

ReturnValue ControlBoardRemapper::getPidErrorLimits ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  limits 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 955 of file ControlBoardRemapper.cpp.

◆ getPidErrors()

ReturnValue ControlBoardRemapper::getPidErrors ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  errs 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 689 of file ControlBoardRemapper.cpp.

◆ getPidExtraInfo()

ReturnValue ControlBoardRemapper::getPidExtraInfo ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
yarp::dev::PidExtraInfo &  info 
)
overridevirtual

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
infothe measurement units for the specified PID.
Returns
success/failure

Implements yarp::dev::IPidControl.

Definition at line 1060 of file ControlBoardRemapper.cpp.

◆ getPidExtraInfos()

ReturnValue ControlBoardRemapper::getPidExtraInfos ( const yarp::dev::PidControlTypeEnum &  pidtype,
std::vector< yarp::dev::PidExtraInfo > &  info 
)
overridevirtual

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)
infovector that will store the info about of the pids.
Returns
success/failure

Implements yarp::dev::IPidControl.

Definition at line 1080 of file ControlBoardRemapper.cpp.

◆ getPidFeedforward()

ReturnValue ControlBoardRemapper::getPidFeedforward ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double &  v 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 821 of file ControlBoardRemapper.cpp.

◆ getPidOffset()

ReturnValue ControlBoardRemapper::getPidOffset ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double &  v 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 783 of file ControlBoardRemapper.cpp.

◆ getPidOutput()

ReturnValue ControlBoardRemapper::getPidOutput ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double *  out 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 717 of file ControlBoardRemapper.cpp.

◆ getPidOutputs()

ReturnValue ControlBoardRemapper::getPidOutputs ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  outs 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 736 of file ControlBoardRemapper.cpp.

◆ getPidReference()

ReturnValue ControlBoardRemapper::getPidReference ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double *  ref 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 888 of file ControlBoardRemapper.cpp.

◆ getPidReferences()

ReturnValue ControlBoardRemapper::getPidReferences ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  refs 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 907 of file ControlBoardRemapper.cpp.

◆ getPids()

ReturnValue ControlBoardRemapper::getPids ( const yarp::dev::PidControlTypeEnum &  pidtype,
yarp::dev::Pid *  pids 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 859 of file ControlBoardRemapper.cpp.

◆ getPosLimits()

ReturnValue ControlBoardRemapper::getPosLimits ( int  axis,
double *  min,
double *  max 
)
overridevirtual

Get the software limits for a particular axis.

Parameters
axisjoint number
pointerto store the value of the lower limit
pointerto store the value of the upper limit
Returns
true if everything goes fine, false otherwise.

Implements yarp::dev::IControlLimits.

Definition at line 3039 of file ControlBoardRemapper.cpp.

◆ getPowerSupplyVoltage()

ReturnValue ControlBoardRemapper::getPowerSupplyVoltage ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2996 of file ControlBoardRemapper.cpp.

◆ getPWM()

ReturnValue ControlBoardRemapper::getPWM ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2937 of file ControlBoardRemapper.cpp.

◆ getPWMLimit()

ReturnValue ControlBoardRemapper::getPWMLimit ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2956 of file ControlBoardRemapper.cpp.

◆ getRefCurrent()

ReturnValue ControlBoardRemapper::getRefCurrent ( int  m,
double *  curr 
)
overridevirtual

Get the reference value of the current for a single motor.

Parameters
mmotor number
currthe current reference value for motor m. Value is expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4697 of file ControlBoardRemapper.cpp.

◆ getRefCurrents()

ReturnValue ControlBoardRemapper::getRefCurrents ( double *  currs)
overridevirtual

Get the reference value of the currents for all motors.

Parameters
currspointer to the array to be filled with reference current values. Values are expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4714 of file ControlBoardRemapper.cpp.

◆ getRefDutyCycle()

ReturnValue ControlBoardRemapper::getRefDutyCycle ( int  m,
double *  ref 
)
overridevirtual

Gets the last reference sent using the setRefDutyCycle function.

Parameters
mmotor number
refpointer to storage for return value, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4446 of file ControlBoardRemapper.cpp.

◆ getRefDutyCycles()

ReturnValue ControlBoardRemapper::getRefDutyCycles ( double *  refs)
overridevirtual

Gets the last reference sent using the setRefDutyCycles function.

Parameters
refspointer to the vector that will store the values, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4463 of file ControlBoardRemapper.cpp.

◆ getRefPosition()

ReturnValue ControlBoardRemapper::getRefPosition ( const int  joint,
double *  ref 
)
overridevirtual

Get the last position reference for the specified axis.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
reflast reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 4059 of file ControlBoardRemapper.cpp.

◆ getRefPositions() [1/2]

ReturnValue ControlBoardRemapper::getRefPositions ( const int  n_joint,
const int *  joints,
double *  refs 
)
overridevirtual

Get the last position reference for the specified group of axes.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
refarray containing last reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 4111 of file ControlBoardRemapper.cpp.

◆ getRefPositions() [2/2]

ReturnValue ControlBoardRemapper::getRefPositions ( double *  refs)
overridevirtual

Get the last position reference for all axes.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
refarray containing last reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 4080 of file ControlBoardRemapper.cpp.

◆ getRefTorque()

ReturnValue ControlBoardRemapper::getRefTorque ( int  j,
double *  t 
)
overridevirtual

Get the reference value of the torque for a given joint.

This is NOT the feedback (see getTorque instead).

Parameters
jjoint number
tthe returned reference torque of joint j
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3440 of file ControlBoardRemapper.cpp.

◆ getRefTorques()

ReturnValue ControlBoardRemapper::getRefTorques ( double *  t)
overridevirtual

Get the reference value of the torque for all joints.

This is NOT the feedback (see getTorques instead).

Parameters
tpointer to the array of torque values
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3411 of file ControlBoardRemapper.cpp.

◆ getRefVelocity() [1/3]

yarp::dev::ReturnValue ControlBoardRemapper::getRefVelocity ( const int  jnt,
double &  vel 
)
overridevirtual

Get the last reference velocity set by setRefVelocity() for a single joint.

Parameters
jntjoint number
velreturns the velocity reference for the specified joint.
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4871 of file ControlBoardRemapper.cpp.

◆ getRefVelocity() [2/3]

yarp::dev::ReturnValue ControlBoardRemapper::getRefVelocity ( const std::vector< int > &  jnts,
std::vector< double > &  vels 
)
overridevirtual

Get the last reference velocity set by setRefVelocity() for a group of joints.

Parameters
jntsvector containing the ids of the joints to control.
velsvector containing the velocity references of the joints belonging to the required subset.
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4905 of file ControlBoardRemapper.cpp.

◆ getRefVelocity() [3/3]

yarp::dev::ReturnValue ControlBoardRemapper::getRefVelocity ( std::vector< double > &  vels)
overridevirtual

Get the last reference velocity set by setRefVelocity() for all joints.

Parameters
velsvector containing the velocity references of all joints.
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4884 of file ControlBoardRemapper.cpp.

◆ getRemoteVariable()

ReturnValue ControlBoardRemapper::getRemoteVariable ( std::string  key,
yarp::os::Bottle &  val 
)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 2306 of file ControlBoardRemapper.cpp.

◆ getRemoteVariablesList()

ReturnValue ControlBoardRemapper::getRemoteVariablesList ( yarp::os::Bottle *  listOfKeys)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 2381 of file ControlBoardRemapper.cpp.

◆ getTargetPosition()

ReturnValue ControlBoardRemapper::getTargetPosition ( const int  joint,
double *  ref 
)
overridevirtual

Get the last position reference for the specified axis.

This is the dual of PositionMove and shall return only values sent using IPositionControl interface. If other interfaces like IPositionDirect are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionDirect::SetPosition

Parameters
reflast reference sent using PositionMove functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1188 of file ControlBoardRemapper.cpp.

◆ getTargetPositions() [1/2]

ReturnValue ControlBoardRemapper::getTargetPositions ( const int  n_joint,
const int *  joints,
double *  refs 
)
overridevirtual

Get the last position reference for the specified group of axes.

This is the dual of PositionMove and shall return only values sent using IPositionControl interface. If other interfaces like IPositionDirect are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionDirect::SetPosition

Parameters
reflast reference sent using PositionMove functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1240 of file ControlBoardRemapper.cpp.

◆ getTargetPositions() [2/2]

ReturnValue ControlBoardRemapper::getTargetPositions ( double *  refs)
overridevirtual

Get the last position reference for all axes.

This is the dual of PositionMove and shall return only values sent using IPositionControl interface. If other interfaces like IPositionDirect are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionDirect::SetPosition

Parameters
reflast reference sent using PositionMove functions
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1209 of file ControlBoardRemapper.cpp.

◆ getTargetVelocities() [1/2]

ReturnValue ControlBoardRemapper::getTargetVelocities ( const int  n_joint,
const int *  joints,
double *  vels 
)
overridevirtual

Get the last reference speed set by velocityMove for a group of joints.

Parameters
n_jointhow many joints this command is referring to
jointsof joints controlled. The size of this array is n_joints
velspointer to the array containing the requested values, one value for each joint. The size of the array is n_joints.
Returns
true/false on success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 4226 of file ControlBoardRemapper.cpp.

◆ getTargetVelocities() [2/2]

ReturnValue ControlBoardRemapper::getTargetVelocities ( double *  vels)
overridevirtual

Get the last reference speed set by velocityMove for all joints.

Parameters
velspointer to the array containing the new speed values, one value for each joint
Returns
true/false on success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 4196 of file ControlBoardRemapper.cpp.

◆ getTargetVelocity()

ReturnValue ControlBoardRemapper::getTargetVelocity ( const int  joint,
double *  vel 
)
overridevirtual

Get the last reference speed set by velocityMove for single joint.

Parameters
jjoint number
velreturns the requested reference.
Returns
true/false on success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 4174 of file ControlBoardRemapper.cpp.

◆ getTemperature()

ReturnValue ControlBoardRemapper::getTemperature ( int  m,
double *  val 
)
overridevirtual

Get temperature of a motor.

Parameters
mmotor number
valretrieved motor temperature
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2179 of file ControlBoardRemapper.cpp.

◆ getTemperatureLimit()

ReturnValue ControlBoardRemapper::getTemperatureLimit ( int  m,
double *  temp 
)
overridevirtual

Retrieves the current temperature limit for a specific motor.

The specific behavior of the motor when the temperature limit is exceeded depends on the implementation (power off recommended)

Parameters
mmotor number
tempthe current temperature limit.
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2225 of file ControlBoardRemapper.cpp.

◆ getTemperatures()

ReturnValue ControlBoardRemapper::getTemperatures ( double *  vals)
overridevirtual

Get temperature of all the motors.

Parameters
valspointer to an array containing all motor temperatures
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2199 of file ControlBoardRemapper.cpp.

◆ getTorque()

ReturnValue ControlBoardRemapper::getTorque ( int  j,
double *  t 
)
overridevirtual

Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).

Parameters
jjoint number
tpointer to the result value
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3607 of file ControlBoardRemapper.cpp.

◆ getTorqueRange()

ReturnValue ControlBoardRemapper::getTorqueRange ( int  j,
double *  min,
double *  max 
)
overridevirtual

Get the full scale of the torque sensor of a given joint.

Parameters
jjoint number
minminimum torque of the joint j
maxmaximum torque of the joint j
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3657 of file ControlBoardRemapper.cpp.

◆ getTorqueRanges()

ReturnValue ControlBoardRemapper::getTorqueRanges ( double *  min,
double *  max 
)
overridevirtual

Get the full scale of the torque sensors of all joints.

Parameters
minpointer to the array that will store minimum torques of the joints
maxpointer to the array that will store maximum torques of the joints
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3677 of file ControlBoardRemapper.cpp.

◆ getTorques()

ReturnValue ControlBoardRemapper::getTorques ( double *  t)
overridevirtual

Get the value of the torque for all joints (this is the feedback if you have torque sensors).

Parameters
tpointer to the array that will store the output
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3627 of file ControlBoardRemapper.cpp.

◆ getTrajAcceleration()

ReturnValue ControlBoardRemapper::getTrajAcceleration ( int  j,
double *  acc 
)
overridevirtual

Get reference acceleration for a joint.

Returns the acceleration used to generate the trajectory profile.

Parameters
jjoint number
accpointer to storage for the return value
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1657 of file ControlBoardRemapper.cpp.

◆ getTrajAccelerations() [1/2]

ReturnValue ControlBoardRemapper::getTrajAccelerations ( const int  n_joint,
const int *  joints,
double *  accs 
)
overridevirtual

Get reference acceleration for a joint.

Returns the acceleration used to generate the trajectory profile.

Parameters
jointspointer to the array of joint numbers
accspointer to the array that will store the acceleration values
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1707 of file ControlBoardRemapper.cpp.

◆ getTrajAccelerations() [2/2]

ReturnValue ControlBoardRemapper::getTrajAccelerations ( double *  accs)
overridevirtual

Get reference acceleration of all joints.

These are the values used during the interpolation of the trajectory.

Parameters
accspointer to the array that will store the acceleration values.
Returns
true/false on success or failure

Implements yarp::dev::IPositionControl.

Definition at line 1677 of file ControlBoardRemapper.cpp.

◆ getTrajSpeed()

ReturnValue ControlBoardRemapper::getTrajSpeed ( int  j,
double *  ref 
)
overridevirtual

Get reference speed for a joint.

Returns the speed used to generate the trajectory profile.

Parameters
jjoint number
refpointer to storage for the return value
Returns
true/false on success or failure

Implements yarp::dev::IPositionControl.

Definition at line 1574 of file ControlBoardRemapper.cpp.

◆ getTrajSpeeds() [1/2]

ReturnValue ControlBoardRemapper::getTrajSpeeds ( const int  n_joint,
const int *  joints,
double *  spds 
)
overridevirtual

Get reference speed of all joints.

These are the values used during the interpolation of the trajectory.

Parameters
jointspointer to the array of joint numbers
spdspointer to the array that will store the speed values.
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1624 of file ControlBoardRemapper.cpp.

◆ getTrajSpeeds() [2/2]

ReturnValue ControlBoardRemapper::getTrajSpeeds ( double *  spds)
overridevirtual

Get reference speed of all joints.

These are the values used during the interpolation of the trajectory.

Parameters
spdspointer to the array that will store the speed values.

Implements yarp::dev::IPositionControl.

Definition at line 1594 of file ControlBoardRemapper.cpp.

◆ getVelLimits()

ReturnValue ControlBoardRemapper::getVelLimits ( int  axis,
double *  min,
double *  max 
)
overridevirtual

Get the software speed limits for a particular axis.

Parameters
axisjoint number
minpointer to store the value of the lower limit
maxpointer to store the value of the upper limit
Returns
true if everything goes fine, false otherwise.

Implements yarp::dev::IControlLimits.

Definition at line 3079 of file ControlBoardRemapper.cpp.

◆ homingSingleJoint()

yarp::dev::ReturnValue ControlBoardRemapper::homingSingleJoint ( int  j)
overridevirtual

homingSingleJoint: call the homing procedure for a single joint

Parameters
jjoint to be calibrated
Returns
true if homing was successful, false otherwise

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3162 of file ControlBoardRemapper.cpp.

◆ homingWholePart()

yarp::dev::ReturnValue ControlBoardRemapper::homingWholePart ( )
overridevirtual

homingWholePart: call the homing procedure for a the whole part/device

Returns
true if homing was successful, false otherwise

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3188 of file ControlBoardRemapper.cpp.

◆ isCalibratorDevicePresent()

ReturnValue ControlBoardRemapper::isCalibratorDevicePresent ( bool *  isCalib)
overridevirtual

isCalibratorDevicePresent: check if a calibrator device has been set

Returns
true if a valid calibrator device has been found

Reimplemented from yarp::dev::IRemoteCalibrator.

Definition at line 3105 of file ControlBoardRemapper.cpp.

◆ isJointBraked()

ReturnValue ControlBoardRemapper::isJointBraked ( int  j,
bool &  braked 
) const
overridevirtual

Check is the joint brake is currently active.

Parameters
jjoint number
brakedis true if the joint is currently braked
Returns
: true/false success failure.

Implements yarp::dev::IJointBrake.

Definition at line 4747 of file ControlBoardRemapper.cpp.

◆ isPidEnabled()

ReturnValue ControlBoardRemapper::isPidEnabled ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
bool &  enabled 
)
overridevirtual

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

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.

Implements yarp::dev::IPidControl.

Definition at line 1040 of file ControlBoardRemapper.cpp.

◆ open()

bool ControlBoardRemapper::open ( yarp::os::Searchable &  prop)
overridevirtual

Open the device driver.

Parameters
propis a Searchable object which contains the parameters. Allowed parameters are described in the class documentation.

Reimplemented from yarp::dev::DeviceDriver.

Reimplemented in RemoteControlBoardRemapper.

Definition at line 28 of file ControlBoardRemapper.cpp.

◆ operator=() [1/2]

ControlBoardRemapper & ControlBoardRemapper::operator= ( const ControlBoardRemapper &  )
delete

◆ operator=() [2/2]

ControlBoardRemapper & ControlBoardRemapper::operator= ( ControlBoardRemapper &&  )
delete

◆ parkSingleJoint()

yarp::dev::ReturnValue ControlBoardRemapper::parkSingleJoint ( int  j,
bool  _wait = true 
)
overridevirtual

parkSingleJoint(): start the parking procedure for the single joint

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3207 of file ControlBoardRemapper.cpp.

◆ parkWholePart()

ReturnValue ControlBoardRemapper::parkWholePart ( )
overridevirtual

parkWholePart: start the parking procedure for the whole part

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3233 of file ControlBoardRemapper.cpp.

◆ positionMove() [1/3]

ReturnValue ControlBoardRemapper::positionMove ( const double *  refs)
overridevirtual

Set new reference point for all axes.

Parameters
refsarray, new reference points.
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1136 of file ControlBoardRemapper.cpp.

◆ positionMove() [2/3]

ReturnValue ControlBoardRemapper::positionMove ( const int  n_joint,
const int *  joints,
const double *  refs 
)
overridevirtual

Set new reference point for a subset of joints.

Parameters
jointspointer to the array of joint numbers
refspointer to the array specifying the new reference points
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1162 of file ControlBoardRemapper.cpp.

◆ positionMove() [3/3]

ReturnValue ControlBoardRemapper::positionMove ( int  j,
double  ref 
)
overridevirtual

Set new reference point for a single axis.

Parameters
jjoint number
refspecifies the new ref point
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1116 of file ControlBoardRemapper.cpp.

◆ quitCalibrate()

yarp::dev::ReturnValue ControlBoardRemapper::quitCalibrate ( )
overridevirtual

quitCalibrate: interrupt the calibration procedure

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3254 of file ControlBoardRemapper.cpp.

◆ quitPark()

yarp::dev::ReturnValue ControlBoardRemapper::quitPark ( )
overridevirtual

quitPark: interrupt the park procedure

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 3280 of file ControlBoardRemapper.cpp.

◆ relativeMove() [1/3]

ReturnValue ControlBoardRemapper::relativeMove ( const double *  deltas)
overridevirtual

Set relative position, all joints.

Parameters
deltaspointer to the relative commands
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1293 of file ControlBoardRemapper.cpp.

◆ relativeMove() [2/3]

ReturnValue ControlBoardRemapper::relativeMove ( const int  n_joint,
const int *  joints,
const double *  deltas 
)
overridevirtual

Set relative position for a subset of joints.

Parameters
jointspointer to the array of joint numbers
deltaspointer to the array of relative commands
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1318 of file ControlBoardRemapper.cpp.

◆ relativeMove() [3/3]

ReturnValue ControlBoardRemapper::relativeMove ( int  j,
double  delta 
)
overridevirtual

Set relative position.

The command is relative to the current position of the axis.

Parameters
jjoint axis number
deltarelative command
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1273 of file ControlBoardRemapper.cpp.

◆ resetEncoder()

ReturnValue ControlBoardRemapper::resetEncoder ( int  j)
overridevirtual

Reset encoder, single joint.

Set the encoder value to zero

Parameters
jencoder number
Returns
true/false

Implements yarp::dev::IEncoders.

Definition at line 1880 of file ControlBoardRemapper.cpp.

◆ resetEncoders()

ReturnValue ControlBoardRemapper::resetEncoders ( )
overridevirtual

Reset encoders.

Set the encoders value to zero

Returns
true/false

Implements yarp::dev::IEncoders.

Definition at line 1899 of file ControlBoardRemapper.cpp.

◆ resetMotorEncoder()

ReturnValue ControlBoardRemapper::resetMotorEncoder ( int  m)
overridevirtual

Reset motor encoder, single motor.

Set the encoder value to zero.

Parameters
mmotor number
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2403 of file ControlBoardRemapper.cpp.

◆ resetMotorEncoders()

ReturnValue ControlBoardRemapper::resetMotorEncoders ( )
overridevirtual

Reset motor encoders.

Set the motor encoders value to zero.

Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2423 of file ControlBoardRemapper.cpp.

◆ resetPid()

ReturnValue ControlBoardRemapper::resetPid ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 985 of file ControlBoardRemapper.cpp.

◆ setAutoBrakeEnabled()

ReturnValue ControlBoardRemapper::setAutoBrakeEnabled ( int  j,
bool  enabled 
)
overridevirtual

Enables/Disables the automatic joint brake.

If enabled, the firmware can automatically choose when to enable the joint brake (for example when the joint is in hardware_fault mode).

Parameters
jjoint number
enabledtrue to enable the automatic joint brake
Returns
: true/false success failure.

Implements yarp::dev::IJointBrake.

Definition at line 4777 of file ControlBoardRemapper.cpp.

◆ setCalibrationParameters()

ReturnValue ControlBoardRemapper::setCalibrationParameters ( int  axis,
const yarp::dev::CalibrationParameters &  params 
)
overridevirtual

Start calibration, this method is very often platform specific.

Returns
true/false on success failure

Implements yarp::dev::IControlCalibration.

Definition at line 3322 of file ControlBoardRemapper.cpp.

◆ setControlMode()

ReturnValue ControlBoardRemapper::setControlMode ( int  j,
yarp::dev::SelectableControlModeEnum  mode 
)
overridevirtual

Set the current control mode.

Parameters
jjoint number
modea vocab of the desired control mode for joint j.
Returns
true if the new controlMode was successfully set, false if the message was not received or the joint was unable to switch to the desired controlMode (e.g. the joint is on a fault condition or the desired mode is not implemented).

Implements yarp::dev::IControlMode.

Definition at line 3873 of file ControlBoardRemapper.cpp.

◆ setControlModes() [1/2]

ReturnValue ControlBoardRemapper::setControlModes ( const std::vector< int > &  joints,
const std::vector< yarp::dev::SelectableControlModeEnum > &  mode 
)
overridevirtual

Set the current control mode for a subset of axes.

Parameters
n_jointshow many joints this command is referring to
jointslist of joint numbers, the size of this array is n_joints
modesarray containing the new controlmodes, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 modes VOCAB_CM_POSITION VOCAB_CM_VELOCITY VOCAB_CM_POSITION
Returns
true if the new controlMode was successfully set, false if the message was not received or the joint was unable to switch to the desired controlMode (e.g. the joint is on a fault condition or the desired mode is not implemented).

Implements yarp::dev::IControlMode.

Definition at line 3899 of file ControlBoardRemapper.cpp.

◆ setControlModes() [2/2]

ReturnValue ControlBoardRemapper::setControlModes ( const std::vector< yarp::dev::SelectableControlModeEnum > &  mode)
overridevirtual

Set the current control mode (multiple joints).

Parameters
modesa vector containing vocabs for the desired control modes of the joints.
Returns
true if the new controlMode was successfully set, false if the message was not received or the joint was unable to switch to the desired controlMode (e.g. the joint is on a fault condition or the desired mode is not implemented).

Implements yarp::dev::IControlMode.

Definition at line 3924 of file ControlBoardRemapper.cpp.

◆ setEncoder()

ReturnValue ControlBoardRemapper::setEncoder ( int  j,
double  val 
)
overridevirtual

Set the value of the encoder for a given joint.

Parameters
jencoder number
valnew value
Returns
true/false

Implements yarp::dev::IEncoders.

Definition at line 1927 of file ControlBoardRemapper.cpp.

◆ setEncoders()

ReturnValue ControlBoardRemapper::setEncoders ( const double *  vals)
overridevirtual

Set the value of all encoders.

Parameters
valspointer to the new values
Returns
true/false

Implements yarp::dev::IEncoders.

Definition at line 1947 of file ControlBoardRemapper.cpp.

◆ setGearboxRatio()

ReturnValue ControlBoardRemapper::setGearboxRatio ( int  m,
const double  val 
)
overridevirtual

Set the gearbox ratio for a specific motor.

Parameters
mmotor number
gearboxratio to be set
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2285 of file ControlBoardRemapper.cpp.

◆ setImpedance()

ReturnValue ControlBoardRemapper::setImpedance ( int  j,
double  stiffness,
double  damping 
)
overridevirtual

Set current impedance gains (stiffness,damping) for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 3567 of file ControlBoardRemapper.cpp.

◆ setImpedanceOffset()

ReturnValue ControlBoardRemapper::setImpedanceOffset ( int  j,
double  offset 
)
overridevirtual

Set current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 3587 of file ControlBoardRemapper.cpp.

◆ setInteractionMode()

ReturnValue ControlBoardRemapper::setInteractionMode ( int  axis,
yarp::dev::InteractionModeEnum  mode 
)
overridevirtual

Set the interaction mode of the robot, values can be stiff or compliant.

Please note that some robot may not implement certain types of interaction, so always check the return value.

Parameters
axisjoint number
modethe desired interaction mode
Returns
true or false on success or failure.

Implements yarp::dev::IInteractionMode.

Definition at line 4340 of file ControlBoardRemapper.cpp.

◆ setInteractionModes() [1/2]

ReturnValue ControlBoardRemapper::setInteractionModes ( const std::vector< int > &  joints,
const std::vector< yarp::dev::InteractionModeEnum > &  modes 
)
overridevirtual

Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.

Please note that some robot may not implement certain types of interaction, so always check the return value.

Parameters
n_jointshow many joints this command is referring to
jointslist of joints controlled. The size of this array is n_joints
modesarray containing the desired interaction mode, one value for each joint, the size is n_joints. for example: n_joint 3 joints 0 2 4 refs VOCAB_IM_STIFF VOCAB_IM_STIFF VOCAB_IM_COMPLIANT
Returns
true or false on success or failure. If one or more joint fails, the return value will be false.

Implements yarp::dev::IInteractionMode.

Definition at line 4360 of file ControlBoardRemapper.cpp.

◆ setInteractionModes() [2/2]

ReturnValue ControlBoardRemapper::setInteractionModes ( const std::vector< yarp::dev::InteractionModeEnum > &  modes)
overridevirtual

Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.

Some robot may not implement some types of interaction, so always check the return value

Parameters
modearray with the desired interaction mode for all joints, length is the total number of joints for the part
Returns
true or false on success or failure. If one or more joint fails, the return value will be false.

Implements yarp::dev::IInteractionMode.

Definition at line 4379 of file ControlBoardRemapper.cpp.

◆ setManualBrakeActive()

ReturnValue ControlBoardRemapper::setManualBrakeActive ( int  j,
bool  active 
)
overridevirtual

Enables/Disables manually the joint brake.

Parameters
jjoint number
activetrue to enable the joint brake
Returns
: true/false success failure.

Implements yarp::dev::IJointBrake.

Definition at line 4762 of file ControlBoardRemapper.cpp.

◆ setMaxCurrent()

ReturnValue ControlBoardRemapper::setMaxCurrent ( int  j,
double  v 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2817 of file ControlBoardRemapper.cpp.

◆ setMotorEncoder()

ReturnValue ControlBoardRemapper::setMotorEncoder ( int  m,
const double  val 
)
overridevirtual

Set the value of the motor encoder for a given motor.

Parameters
mmotor number
valnew value
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2452 of file ControlBoardRemapper.cpp.

◆ setMotorEncoderCountsPerRevolution()

ReturnValue ControlBoardRemapper::setMotorEncoderCountsPerRevolution ( int  m,
const double  cpr 
)
overridevirtual

Sets number of counts per revolution for motor encoder m.

Parameters
mmotor number
cprnew value
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2502 of file ControlBoardRemapper.cpp.

◆ setMotorEncoders()

ReturnValue ControlBoardRemapper::setMotorEncoders ( const double *  vals)
overridevirtual

Set the value of all motor encoders.

Parameters
valspointer to the new values
Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 2472 of file ControlBoardRemapper.cpp.

◆ setMotorTorqueParams()

ReturnValue ControlBoardRemapper::setMotorTorqueParams ( int  j,
const yarp::dev::MotorTorqueParameters  params 
)
overridevirtual

Set a subset of motor parameters (bemf, ktau etc) useful for torque control.

Parameters
jjoint number
paramsa struct containing the motor parameters to be set
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3547 of file ControlBoardRemapper.cpp.

◆ setNominalCurrent()

ReturnValue ControlBoardRemapper::setNominalCurrent ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2917 of file ControlBoardRemapper.cpp.

◆ setPeakCurrent()

ReturnValue ControlBoardRemapper::setPeakCurrent ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2897 of file ControlBoardRemapper.cpp.

◆ setPid()

ReturnValue ControlBoardRemapper::setPid ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
const yarp::dev::Pid &  pid 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 524 of file ControlBoardRemapper.cpp.

◆ setPidErrorLimit()

ReturnValue ControlBoardRemapper::setPidErrorLimit ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double  limit 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 621 of file ControlBoardRemapper.cpp.

◆ setPidErrorLimits()

ReturnValue ControlBoardRemapper::setPidErrorLimits ( const yarp::dev::PidControlTypeEnum &  pidtype,
const double *  limits 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 640 of file ControlBoardRemapper.cpp.

◆ setPidFeedforward()

ReturnValue ControlBoardRemapper::setPidFeedforward ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double  v 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 802 of file ControlBoardRemapper.cpp.

◆ setPidOffset()

ReturnValue ControlBoardRemapper::setPidOffset ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double  v 
)
overridevirtual

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.

Implements yarp::dev::IPidControl.

Definition at line 764 of file ControlBoardRemapper.cpp.

◆ setPidReference()

ReturnValue ControlBoardRemapper::setPidReference ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j,
double  ref 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 572 of file ControlBoardRemapper.cpp.

◆ setPidReferences()

ReturnValue ControlBoardRemapper::setPidReferences ( const yarp::dev::PidControlTypeEnum &  pidtype,
const double *  refs 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 592 of file ControlBoardRemapper.cpp.

◆ setPids()

ReturnValue ControlBoardRemapper::setPids ( const yarp::dev::PidControlTypeEnum &  pidtype,
const yarp::dev::Pid *  pids 
)
overridevirtual

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

Implements yarp::dev::IPidControl.

Definition at line 543 of file ControlBoardRemapper.cpp.

◆ setPosition()

ReturnValue ControlBoardRemapper::setPosition ( int  j,
double  ref 
)
overridevirtual

Set new position for a single axis.

Parameters
jjoint number
refspecifies the new ref point
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 3949 of file ControlBoardRemapper.cpp.

◆ setPositions() [1/2]

ReturnValue ControlBoardRemapper::setPositions ( const double *  refs)
overridevirtual

Set new position for a set of axis.

Parameters
refsspecifies the new reference points
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 3995 of file ControlBoardRemapper.cpp.

◆ setPositions() [2/2]

ReturnValue ControlBoardRemapper::setPositions ( const int  n_joint,
const int *  joints,
const double *  refs 
)
overridevirtual

Set new reference point for all axes.

Parameters
n_jointhow many joints this command is referring to
jointslist of joints controlled. The size of this array is n_joints
refsarray, new reference points, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 refs 10 30 40
Returns
true/false on success/failure

Implements yarp::dev::IPositionDirect.

Definition at line 3969 of file ControlBoardRemapper.cpp.

◆ setPosLimits()

ReturnValue ControlBoardRemapper::setPosLimits ( int  axis,
double  min,
double  max 
)
overridevirtual

Set the software limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.

Parameters
axisjoint number (why am I telling you this)
minthe value of the lower limit
maxthe value of the upper limit
Returns
true or false on success or failure

Implements yarp::dev::IControlLimits.

Definition at line 3019 of file ControlBoardRemapper.cpp.

◆ setPWMLimit()

ReturnValue ControlBoardRemapper::setPWMLimit ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2976 of file ControlBoardRemapper.cpp.

◆ setRefCurrent()

ReturnValue ControlBoardRemapper::setRefCurrent ( int  m,
double  curr 
)
overridevirtual

Set the reference value of the current for a single motor.

Parameters
mmotor number
currthe current reference value for motor m. Value is expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4634 of file ControlBoardRemapper.cpp.

◆ setRefCurrents() [1/2]

ReturnValue ControlBoardRemapper::setRefCurrents ( const double *  currs)
overridevirtual

Set the reference value of the currents for all motors.

Parameters
currsthe array containing the reference current values. Values are expressed in amperes.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4677 of file ControlBoardRemapper.cpp.

◆ setRefCurrents() [2/2]

ReturnValue ControlBoardRemapper::setRefCurrents ( const int  n_motor,
const int *  motors,
const double *  currs 
)
overridevirtual

Set the reference value of the current for a group of motors.

Parameters
n_motorsize of motors ans currs arrays
motorspointer to the array containing the list of motor numbers
currspointer to the array specifying the new current references
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControl.

Definition at line 4651 of file ControlBoardRemapper.cpp.

◆ setRefDutyCycle()

ReturnValue ControlBoardRemapper::setRefDutyCycle ( int  m,
double  ref 
)
overridevirtual

Sets the reference dutycycle to a single motor.

Parameters
mmotor number
refthe dutycycle, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4399 of file ControlBoardRemapper.cpp.

◆ setRefDutyCycles()

ReturnValue ControlBoardRemapper::setRefDutyCycles ( const double *  refs)
overridevirtual

Sets the reference dutycycle for all the motors.

Parameters
refsthe dutycycle, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implements yarp::dev::IPWMControl.

Definition at line 4416 of file ControlBoardRemapper.cpp.

◆ setRefTorque()

ReturnValue ControlBoardRemapper::setRefTorque ( int  j,
double  t 
)
overridevirtual

Set the reference value of the torque for a given joint.

Parameters
jjoint number
tnew value
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3489 of file ControlBoardRemapper.cpp.

◆ setRefTorques() [1/2]

ReturnValue ControlBoardRemapper::setRefTorques ( const double *  t)
overridevirtual

Set the reference value of the torque for all joints.

Parameters
tpointer to the array of torque values
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3459 of file ControlBoardRemapper.cpp.

◆ setRefTorques() [2/2]

ReturnValue ControlBoardRemapper::setRefTorques ( const int  n_joint,
const int *  joints,
const double *  t 
)
overridevirtual

Set new torque reference for a subset of joints.

Parameters
jointspointer to the array of joint numbers
refspointer to the array specifying the new torque reference
Returns
true/false on success/failure

Implements yarp::dev::ITorqueControl.

Definition at line 3507 of file ControlBoardRemapper.cpp.

◆ setRefVelocity() [1/3]

yarp::dev::ReturnValue ControlBoardRemapper::setRefVelocity ( const std::vector< double > &  vels)
overridevirtual

Set the velocity of all joints.

Parameters
velsvector containing joint velocities for all joints
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4822 of file ControlBoardRemapper.cpp.

◆ setRefVelocity() [2/3]

yarp::dev::ReturnValue ControlBoardRemapper::setRefVelocity ( const std::vector< int > &  jnts,
const std::vector< double > &  vels 
)
overridevirtual

Set the velocity of a subset of joints.

Parameters
jntsvector containing the ids of the joints to control.
velsvector containing the joint velocities for the required subset.
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4846 of file ControlBoardRemapper.cpp.

◆ setRefVelocity() [3/3]

yarp::dev::ReturnValue ControlBoardRemapper::setRefVelocity ( int  jnt,
double  vel 
)
overridevirtual

Set the velocity of single joint.

Parameters
jntjoint number
velspeed value
Returns
true on success

Implements yarp::dev::IVelocityDirect.

Definition at line 4809 of file ControlBoardRemapper.cpp.

◆ setRemoteVariable()

ReturnValue ControlBoardRemapper::setRemoteVariable ( std::string  key,
const yarp::os::Bottle &  val 
)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 2340 of file ControlBoardRemapper.cpp.

◆ setTemperatureLimit()

ReturnValue ControlBoardRemapper::setTemperatureLimit ( int  m,
const double  temp 
)
overridevirtual

Set the temperature limit for a specific motor.

The specific behavior of the motor when the temperature limit is exceeded depends on the implementation (power off recommended)

Parameters
mmotor number
tempthe temperature limit to be set
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 2245 of file ControlBoardRemapper.cpp.

◆ setTrajAcceleration()

ReturnValue ControlBoardRemapper::setTrajAcceleration ( int  j,
double  acc 
)
overridevirtual

Set reference acceleration for a joint.

This value is used during the trajectory generation.

Parameters
jjoint number
accacceleration value
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1502 of file ControlBoardRemapper.cpp.

◆ setTrajAccelerations() [1/2]

ReturnValue ControlBoardRemapper::setTrajAccelerations ( const double *  accs)
overridevirtual

Set reference acceleration on all joints.

This is the value that is used during the generation of the trajectory.

Parameters
accspointer to the array of acceleration values
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1522 of file ControlBoardRemapper.cpp.

◆ setTrajAccelerations() [2/2]

ReturnValue ControlBoardRemapper::setTrajAccelerations ( const int  n_joint,
const int *  joints,
const double *  accs 
)
overridevirtual

Set reference acceleration on all joints.

This is the value that is used during the generation of the trajectory.

Parameters
jointspointer to the array of joint numbers
accspointer to the array with acceleration values
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1548 of file ControlBoardRemapper.cpp.

◆ setTrajSpeed()

ReturnValue ControlBoardRemapper::setTrajSpeed ( int  j,
double  sp 
)
overridevirtual

Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.

Parameters
jjoint number
spspeed value
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1430 of file ControlBoardRemapper.cpp.

◆ setTrajSpeeds() [1/2]

ReturnValue ControlBoardRemapper::setTrajSpeeds ( const double *  spds)
overridevirtual

Set reference speed on all joints.

These values are used during the interpolation of the trajectory.

Parameters
spdspointer to the array of speed values.
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1450 of file ControlBoardRemapper.cpp.

◆ setTrajSpeeds() [2/2]

ReturnValue ControlBoardRemapper::setTrajSpeeds ( const int  n_joint,
const int *  joints,
const double *  spds 
)
overridevirtual

Set reference speed on all joints.

These values are used during the interpolation of the trajectory.

Parameters
jointspointer to the array of joint numbers
spdspointer to the array with speed values.
Returns
true/false upon success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1476 of file ControlBoardRemapper.cpp.

◆ setVelLimits()

ReturnValue ControlBoardRemapper::setVelLimits ( int  axis,
double  min,
double  max 
)
overridevirtual

Set the software speed limits for a particular axis, the behavior of the control card when these limits are exceeded, depends on the implementation.

Parameters
axisjoint number
minthe value of the lower limit
maxthe value of the upper limit
Returns
true or false on success or failure

Implements yarp::dev::IControlLimits.

Definition at line 3059 of file ControlBoardRemapper.cpp.

◆ stop() [1/3]

ReturnValue ControlBoardRemapper::stop ( )
overridevirtual

Stop motion, multiple joints.

Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1759 of file ControlBoardRemapper.cpp.

◆ stop() [2/3]

ReturnValue ControlBoardRemapper::stop ( const int  n_joint,
const int *  joints 
)
overridevirtual

Stop motion for subset of joints.

Parameters
jointspointer to the array of joint numbers
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1783 of file ControlBoardRemapper.cpp.

◆ stop() [3/3]

ReturnValue ControlBoardRemapper::stop ( int  j)
overridevirtual

Stop motion, single joint.

Parameters
jjoint number
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1739 of file ControlBoardRemapper.cpp.

◆ velocityMove() [1/3]

ReturnValue ControlBoardRemapper::velocityMove ( const double *  sp)
overridevirtual

Start motion at a given speed, multiple joints.

Parameters
sppointer to the array containing the new speed values
Returns
true/false upon success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 1853 of file ControlBoardRemapper.cpp.

◆ velocityMove() [2/3]

ReturnValue ControlBoardRemapper::velocityMove ( const int  n_joint,
const int *  joints,
const double *  spds 
)
overridevirtual

Start motion at a given speed for a subset of joints.

Parameters
n_jointhow many joints this command is referring to
jointsof joints controlled. The size of this array is n_joints
spdspointer to the array containing the new speed values, one value for each joint, the size of the array is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 spds 10 30 40
Returns
true/false on success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 4147 of file ControlBoardRemapper.cpp.

◆ velocityMove() [3/3]

ReturnValue ControlBoardRemapper::velocityMove ( int  j,
double  sp 
)
overridevirtual

Start motion at a given speed, single joint.

Parameters
jjoint number
spspeed value
Returns
bool/false upon success/failure

Implements yarp::dev::IVelocityControl.

Definition at line 1833 of file ControlBoardRemapper.cpp.

◆ verbose()

bool ControlBoardRemapper::verbose ( ) const
inline

Return the value of the verbose flag.

Returns
the verbose flag.

Definition at line 182 of file ControlBoardRemapper.h.


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