YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches

ControlBoard_nwc_yarp: The client side of the control board, connects to a remote controlboard using the YARP network. More...

#include <networkWrappers/controlBoard_nwc_yarp/ControlBoard_nwc_yarp.h>

+ Inheritance diagram for ControlBoard_nwc_yarp:

Public Member Functions

 ControlBoard_nwc_yarp ()=default
 
 ControlBoard_nwc_yarp (const ControlBoard_nwc_yarp &)=delete
 
 ControlBoard_nwc_yarp (ControlBoard_nwc_yarp &&)=delete
 
ControlBoard_nwc_yarp & operator= (const ControlBoard_nwc_yarp &)=delete
 
ControlBoard_nwc_yarp & operator= (ControlBoard_nwc_yarp &&)=delete
 
 ~ControlBoard_nwc_yarp () override=default
 
bool open (Searchable &config) override
 Open the DeviceDriver.
 
bool close () override
 Close the device driver and stop the port connections.
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue getAvailablePids (int j, std::vector< yarp::dev::PidControlTypeEnum > &avail) override
 Return a list of available pid types mode for the given joint.
 
yarp::dev::ReturnValue setPid (const PidControlTypeEnum &pidtype, int j, const Pid &pid) override
 Set new PID value for a joint axis.
 
yarp::dev::ReturnValue setPids (const PidControlTypeEnum &pidtype, const Pid *pids) override
 Set new PID value on multiple axes.
 
yarp::dev::ReturnValue setPidReference (const PidControlTypeEnum &pidtype, int j, double ref) override
 Set the controller reference for a given axis.
 
yarp::dev::ReturnValue setPidReferences (const PidControlTypeEnum &pidtype, const double *refs) override
 Set the controller reference, multiple axes.
 
yarp::dev::ReturnValue setPidErrorLimit (const PidControlTypeEnum &pidtype, int j, double limit) override
 Set the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue setPidErrorLimits (const PidControlTypeEnum &pidtype, const double *limits) override
 Get the error limit for the controller on all joints.
 
yarp::dev::ReturnValue getPidError (const PidControlTypeEnum &pidtype, int j, double *err) override
 Get the current error for a joint.
 
yarp::dev::ReturnValue getPidErrors (const PidControlTypeEnum &pidtype, double *errs) override
 Get the error of all joints.
 
yarp::dev::ReturnValue getPid (const PidControlTypeEnum &pidtype, int j, Pid *pid) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPids (const PidControlTypeEnum &pidtype, Pid *pids) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPidReference (const PidControlTypeEnum &pidtype, int j, double *ref) override
 Get the current reference of the PID controller for a specific joint.
 
yarp::dev::ReturnValue getPidReferences (const PidControlTypeEnum &pidtype, double *refs) override
 Get the current reference of all PID controllers.
 
yarp::dev::ReturnValue getPidErrorLimit (const PidControlTypeEnum &pidtype, int j, double *limit) override
 Get the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue getPidErrorLimits (const PidControlTypeEnum &pidtype, double *limits) override
 Get the error limit for all controllers.
 
yarp::dev::ReturnValue resetPid (const 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 PidControlTypeEnum &pidtype, int j) override
 Disable the PID computation for a joint.
 
yarp::dev::ReturnValue enablePid (const PidControlTypeEnum &pidtype, int j) override
 Enable the PID computation for a joint.
 
yarp::dev::ReturnValue isPidEnabled (const PidControlTypeEnum &pidtype, int j, bool &enabled) override
 Get the current status (enabled/disabled) of the PID.
 
yarp::dev::ReturnValue getPidOutput (const PidControlTypeEnum &pidtype, int j, double *out) override
 Get the output of the controller (e.g.
 
yarp::dev::ReturnValue getPidOutputs (const PidControlTypeEnum &pidtype, double *outs) override
 Get the output of the controllers (e.g.
 
yarp::dev::ReturnValue setPidOffset (const PidControlTypeEnum &pidtype, int j, double v) override
 Set an offset value for a given controller.
 
yarp::dev::ReturnValue setPidFeedforward (const PidControlTypeEnum &pidtype, int j, double v) override
 Set the feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue getPidOffset (const PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set offset value for the specified PID controller.
 
yarp::dev::ReturnValue getPidFeedforward (const PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue getPidExtraInfo (const PidControlTypeEnum &pidtype, int j, PidExtraInfo &info) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getPidExtraInfos (const PidControlTypeEnum &pidtype, std::vector< PidExtraInfo > &info) override
 Get PID extra info and measurement units for a specific joint.
 
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 getEncoderTimed (int j, double *v, double *t) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoders (double *encs) override
 Read the position of all axes.
 
yarp::dev::ReturnValue getEncodersTimed (double *encs, double *ts) 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 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 getNumberOfMotors (int *num) override
 Get the number of available motors.
 
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 resetMotorEncoder (int j) override
 Reset motor encoder, single motor.
 
yarp::dev::ReturnValue resetMotorEncoders () override
 Reset motor encoders.
 
yarp::dev::ReturnValue setMotorEncoder (int j, const double val) override
 Set the value of the motor encoder for a given motor.
 
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 setMotorEncoders (const double *vals) override
 Set the value of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoder (int j, double *v) override
 Read the value of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderTimed (int j, double *v, double *t) override
 Read the instantaneous position 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 *ts) override
 Read the instantaneous position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderSpeed (int j, 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 j, 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 getNumberOfMotorEncoders (int *num) override
 Get the number of available motor encoders.
 
Stamp getLastInputStamp () override
 Get the time stamp for the last read data.
 
yarp::dev::ReturnValue positionMove (int j, double ref) override
 Set new reference point for a single axis.
 
yarp::dev::ReturnValue positionMove (const int n_joint, const int *joints, const double *refs) override
 Set new reference point for a subset of joints.
 
yarp::dev::ReturnValue positionMove (const double *refs) override
 Set new reference point for all axes.
 
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 int n_joint, const int *joints, const double *refs) override
 Set relative position for a subset of joints.
 
yarp::dev::ReturnValue relativeMove (const double *deltas) override
 Set relative position, all joints.
 
yarp::dev::ReturnValue checkMotionDone (int j, bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue checkMotionDone (const std::vector< int > &joints, 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 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 int n_joint, const int *joints, const double *spds) override
 Set reference speed on all joints.
 
yarp::dev::ReturnValue setTrajSpeeds (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 int n_joint, const int *joints, const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue setTrajAccelerations (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 (const int n_joint, const int *joints, double *spds) override
 Get reference speed of all joints.
 
yarp::dev::ReturnValue getTrajSpeeds (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 (const int n_joint, const int *joints, double *accs) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue getTrajAccelerations (double *accs) override
 Get reference acceleration of all joints.
 
yarp::dev::ReturnValue stop (int j) override
 Stop motion, single joint.
 
yarp::dev::ReturnValue stop (const int len, const int *joints) override
 Stop motion for subset of joints.
 
yarp::dev::ReturnValue stop () override
 Stop motion, multiple joints.
 
yarp::dev::ReturnValue getLastJointFault (int j, int &fault, std::string &message) override
 
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 *st) 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 axis, 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 axis, double *min, double *max) override
 Get the software limits for a particular axis.
 
yarp::dev::ReturnValue setVelLimits (int axis, 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 axis, double *min, double *max) override
 Get the software speed limits for a particular axis.
 
yarp::dev::ReturnValue getAxisName (int j, std::string &name) override
 
yarp::dev::ReturnValue getJointType (int j, yarp::dev::JointTypeEnum &type) override
 
yarp::dev::ReturnValue calibrateRobot () override
 Calibrate robot by using an external calibrator.
 
yarp::dev::ReturnValue abortCalibration () override
 
yarp::dev::ReturnValue abortPark () override
 
yarp::dev::ReturnValue park (bool wait=true) override
 
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 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 getRefTorque (int j, double *t) override
 Get the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue getRefTorques (double *t) override
 Get the reference value of the torque for all joints.
 
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 v) 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 setMotorTorqueParams (int j, const MotorTorqueParameters params) override
 Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
yarp::dev::ReturnValue getMotorTorqueParams (int j, MotorTorqueParameters *params) override
 Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
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 *stiffness, double *damping) 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 setImpedance (int j, double stiffness, double damping) 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 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 > &modes) 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 > &modes) 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_joint, const int *joints, const double *refs) 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::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 velocityMove (const int n_joint, 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 axis, 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 axis, 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 isCalibratorDevicePresent (bool *isCalib) override
 isCalibratorDevicePresent: check if a calibrator device has been set
 
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 getRefCurrents (double *t) override
 Get the reference value of the currents for all motors.
 
yarp::dev::ReturnValue getRefCurrent (int j, double *t) override
 Get the reference value of the current for a single motor.
 
yarp::dev::ReturnValue setRefCurrents (const double *refs) override
 Set the reference value of the currents for all motors.
 
yarp::dev::ReturnValue setRefCurrent (int j, double ref) override
 Set the reference value of the current for a single motor.
 
yarp::dev::ReturnValue setRefCurrents (const int n_joint, const int *joints, const double *refs) override
 Set the reference value of the current for a group of motors.
 
yarp::dev::ReturnValue getCurrents (double *vals) override
 
yarp::dev::ReturnValue getCurrent (int j, double *val) override
 
yarp::dev::ReturnValue getCurrentRange (int j, 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 setRefDutyCycle (int j, double v) override
 Sets the reference dutycycle to a single motor.
 
yarp::dev::ReturnValue setRefDutyCycles (const double *v) override
 Sets the reference dutycycle for all the motors.
 
yarp::dev::ReturnValue getRefDutyCycle (int j, 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 j, double *out) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue getDutyCycles (double *outs) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
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::IPidControl
virtual ~IPidControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPositionControl
virtual ~IPositionControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityControl
virtual ~IVelocityControl ()
 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::IMotorEncoders
virtual ~IMotorEncoders ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMotor
virtual ~IMotor ()
 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::IAxisInfo
virtual ~IAxisInfo ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPreciselyTimed
virtual ~IPreciselyTimed ()
 
- 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.
 
- 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::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::IPositionDirect
virtual ~IPositionDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityDirect
virtual ~IVelocityDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IInteractionMode
virtual ~IInteractionMode ()
 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::IRemoteCalibrator * getCalibratorDevice ()
 getCalibratorDevice: return the pointer stored with the setCalibratorDevice
 
virtual yarp::dev::ReturnValue releaseCalibratorDevice ()
 releaseCalibratorDevice: reset the internal pointer to NULL when stop using the calibrator
 
- Public Member Functions inherited from yarp::dev::IRemoteVariables
virtual ~IRemoteVariables ()
 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::IJointFault
virtual ~IJointFault ()
 
- Public Member Functions inherited from yarp::dev::IJointBrake
virtual ~IJointBrake ()
 
- Public Member Functions inherited from ControlBoard_nwc_yarp_ParamsParser
 ControlBoard_nwc_yarp_ParamsParser ()
 
 ~ControlBoard_nwc_yarp_ParamsParser () override=default
 
bool parseParams (const yarp::os::Searchable &config) override
 Parse the DeviceDriver parameters.
 
std::string getDeviceClassName () const override
 Get the name of the DeviceDriver class.
 
std::string getDeviceName () const override
 Get the name of the device (i.e.
 
std::string getDocumentationOfDeviceParams () const override
 Get the documentation of the DeviceDriver's parameters.
 
std::vector< std::string > getListOfParams () const override
 Return a list of all params used by the device.
 
bool getParamValue (const std::string &paramName, std::string &paramValue) const override
 Return the value (represented as a string) of the requested parameter.
 
std::string getConfiguration () const override
 Return the configuration of the device.
 
- Public Member Functions inherited from yarp::dev::IDeviceDriverParams
virtual ~IDeviceDriverParams ()
 

Protected Member Functions

bool isLive ()
 

Protected Attributes

yarp::os::Port command_p
 
DiagnosticThread * diagnosticThread {nullptr}
 
yarp::os::Port m_rpcPort
 
yarp::os::PortWriterBuffer< yarp::dev::CommandMessageData > command_buffer
 
bool writeStrict_singleJoint {true}
 
bool writeStrict_moreJoints {false}
 
std::map< std::string, bool > m_device_has_interfaces
 
StateExtendedInputPort extendedIntputStatePort
 
std::mutex extendedPortMutex
 
yarp::dev::JointStateData last_singleJoint
 
yarp::dev::JointStateData last_wholePart
 
Stamp m_lastStamp
 
size_t m_nj {0}
 
bool m_njIsKnown {false}
 
ControlBoardMsgs m_RPC
 

Additional Inherited Members

- Public Attributes inherited from ControlBoard_nwc_yarp_ParamsParser
const std::string m_device_classname = {"ControlBoard_nwc_yarp"}
 
const std::string m_device_name = {"controlBoard_nwc_yarp"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
std::string m_provided_configuration
 
const std::string m_remote_defaultValue = {""}
 
const std::string m_local_defaultValue = {""}
 
const std::string m_writeStrict_defaultValue = {""}
 
const std::string m_carrier_defaultValue = {"fast_tcp"}
 
const std::string m_carrier_cmd_defaultValue = {"fast_tcp"}
 
const std::string m_timeout_defaultValue = {"0.5"}
 
const std::string m_use_streaming_defaultValue = {"true"}
 
const std::string m_local_qos_enable_defaultValue = {"false"}
 
const std::string m_local_qos_thread_priority_defaultValue = {"0"}
 
const std::string m_local_qos_thread_policy_defaultValue = {"0"}
 
const std::string m_local_qos_packet_priority_defaultValue = {""}
 
const std::string m_remote_qos_enable_defaultValue = {"false"}
 
const std::string m_remote_qos_thread_priority_defaultValue = {"0"}
 
const std::string m_remote_qos_thread_policy_defaultValue = {"0"}
 
const std::string m_remote_qos_packet_priority_defaultValue = {""}
 
const std::string m_diagnostic_defaultValue = {"false"}
 
std::string m_remote = {}
 
std::string m_local = {}
 
std::string m_writeStrict = {}
 
std::string m_carrier = {"fast_tcp"}
 
std::string m_carrier_cmd = {"fast_tcp"}
 
float m_timeout = {0.5}
 
bool m_use_streaming = {true}
 
bool m_local_qos_enable = {false}
 
int m_local_qos_thread_priority = {0}
 
int m_local_qos_thread_policy = {0}
 
std::string m_local_qos_packet_priority = {}
 
bool m_remote_qos_enable = {false}
 
int m_remote_qos_thread_priority = {0}
 
int m_remote_qos_thread_policy = {0}
 
std::string m_remote_qos_packet_priority = {}
 
bool m_diagnostic = {false}
 

Detailed Description

ControlBoard_nwc_yarp: The client side of the control board, connects to a remote controlboard using the YARP network.

This device communicates using the YARP ports opened the controlBoard_nws_yarp device to use a device exposing controlboard method even from a different process (or even computer) from the one that opened the controlboard device.

Parameters required by this device are shown in class: ControlBoard_nwc_yarp_ParamsParser

Definition at line 56 of file ControlBoard_nwc_yarp.h.

Constructor & Destructor Documentation

◆ ControlBoard_nwc_yarp() [1/3]

ControlBoard_nwc_yarp::ControlBoard_nwc_yarp ( )
default

◆ ControlBoard_nwc_yarp() [2/3]

ControlBoard_nwc_yarp::ControlBoard_nwc_yarp ( const ControlBoard_nwc_yarp &  )
delete

◆ ControlBoard_nwc_yarp() [3/3]

ControlBoard_nwc_yarp::ControlBoard_nwc_yarp ( ControlBoard_nwc_yarp &&  )
delete

◆ ~ControlBoard_nwc_yarp()

ControlBoard_nwc_yarp::~ControlBoard_nwc_yarp ( )
overridedefault

Member Function Documentation

◆ abortCalibration()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::abortCalibration ( )
overridevirtual

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 1833 of file ControlBoard_nwc_yarp.cpp.

◆ abortPark()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::abortPark ( )
overridevirtual

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 1844 of file ControlBoard_nwc_yarp.cpp.

◆ calibrateAxisWithParams()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1866 of file ControlBoard_nwc_yarp.cpp.

◆ calibrateRobot()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::calibrateRobot ( )
overridevirtual

Calibrate robot by using an external calibrator.

The external calibrator must be previously set by calling the setCalibration() method.

Returns
true/false on success failure

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 1822 of file ControlBoard_nwc_yarp.cpp.

◆ calibrateSingleJoint()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2596 of file ControlBoard_nwc_yarp.cpp.

◆ calibrateWholePart()

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

calibrateWholePart: call the procedure for calibrating the whole device

Returns
true if calibration was successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 2607 of file ControlBoard_nwc_yarp.cpp.

◆ calibrationDone()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1895 of file ControlBoard_nwc_yarp.cpp.

◆ checkMotionDone() [1/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1305 of file ControlBoard_nwc_yarp.cpp.

◆ checkMotionDone() [2/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1293 of file ControlBoard_nwc_yarp.cpp.

◆ checkMotionDone() [3/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1281 of file ControlBoard_nwc_yarp.cpp.

◆ close()

bool ControlBoard_nwc_yarp::close ( )
overridevirtual

Close the device driver and stop the port connections.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 341 of file ControlBoard_nwc_yarp.cpp.

◆ disableAmp()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1591 of file ControlBoard_nwc_yarp.cpp.

◆ disablePid()

ReturnValue ControlBoard_nwc_yarp::disablePid ( const 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 570 of file ControlBoard_nwc_yarp.cpp.

◆ enableAmp()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1580 of file ControlBoard_nwc_yarp.cpp.

◆ enablePid()

ReturnValue ControlBoard_nwc_yarp::enablePid ( const 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 581 of file ControlBoard_nwc_yarp.cpp.

◆ getAmpStatus() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getAmpStatus ( int *  st)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1602 of file ControlBoard_nwc_yarp.cpp.

◆ getAmpStatus() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getAmpStatus ( int  j,
int *  st 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1614 of file ControlBoard_nwc_yarp.cpp.

◆ getAutoBrakeEnabled()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2994 of file ControlBoard_nwc_yarp.cpp.

◆ getAvailableControlModes()

ReturnValue ControlBoard_nwc_yarp::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 2191 of file ControlBoard_nwc_yarp.cpp.

◆ getAvailablePids()

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

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

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

Implements yarp::dev::IPidControl.

Definition at line 382 of file ControlBoard_nwc_yarp.cpp.

◆ getAxes()

ReturnValue ControlBoard_nwc_yarp::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 3008 of file ControlBoard_nwc_yarp.cpp.

◆ getAxisName()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getAxisName ( int  j,
std::string &  name 
)
overridevirtual

Implements yarp::dev::IAxisInfo.

Definition at line 1795 of file ControlBoard_nwc_yarp.cpp.

◆ getControlMode()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2203 of file ControlBoard_nwc_yarp.cpp.

◆ getControlModes() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2232 of file ControlBoard_nwc_yarp.cpp.

◆ getControlModes() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2214 of file ControlBoard_nwc_yarp.cpp.

◆ getCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getCurrent ( int  j,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2816 of file ControlBoard_nwc_yarp.cpp.

◆ getCurrentImpedanceLimit()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2172 of file ControlBoard_nwc_yarp.cpp.

◆ getCurrentRange()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2843 of file ControlBoard_nwc_yarp.cpp.

◆ getCurrentRanges()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2856 of file ControlBoard_nwc_yarp.cpp.

◆ getCurrents()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getCurrents ( double *  vals)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 2789 of file ControlBoard_nwc_yarp.cpp.

◆ getDutyCycle()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2940 of file ControlBoard_nwc_yarp.cpp.

◆ getDutyCycles()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2949 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 787 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoderAcceleration()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 849 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoderAccelerations()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 858 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 808 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoderSpeed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 829 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoderSpeeds()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 839 of file ControlBoard_nwc_yarp.cpp.

◆ getEncodersTimed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 818 of file ControlBoard_nwc_yarp.cpp.

◆ getEncoderTimed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 797 of file ControlBoard_nwc_yarp.cpp.

◆ getGearboxRatio()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 966 of file ControlBoard_nwc_yarp.cpp.

◆ getImpedance()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2125 of file ControlBoard_nwc_yarp.cpp.

◆ getImpedanceOffset()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getImpedanceOffset ( int  j,
double *  offset 
)
overridevirtual

Get current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 2138 of file ControlBoard_nwc_yarp.cpp.

◆ getInteractionMode()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2502 of file ControlBoard_nwc_yarp.cpp.

◆ getInteractionModes() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2513 of file ControlBoard_nwc_yarp.cpp.

◆ getInteractionModes() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2532 of file ControlBoard_nwc_yarp.cpp.

◆ getJointType()

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

Reimplemented from yarp::dev::IAxisInfo.

Definition at line 1807 of file ControlBoard_nwc_yarp.cpp.

◆ getLastInputStamp()

Stamp ControlBoard_nwc_yarp::getLastInputStamp ( )
overridevirtual

Get the time stamp for the last read data.

Returns
last time stamp.

Implements yarp::dev::IPreciselyTimed.

Definition at line 1159 of file ControlBoard_nwc_yarp.cpp.

◆ getLastJointFault()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getLastJointFault ( int  j,
int &  fault,
std::string &  message 
)
overridevirtual

Implements yarp::dev::IJointFault.

Definition at line 1500 of file ControlBoard_nwc_yarp.cpp.

◆ getMaxCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1637 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1061 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderAcceleration()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1121 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderAccelerations()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1130 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderCountsPerRevolution()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1037 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1082 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderSpeed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1103 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderSpeeds()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1112 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncodersTimed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1092 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorEncoderTimed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1071 of file ControlBoard_nwc_yarp.cpp.

◆ getMotorTorqueParams()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getMotorTorqueParams ( int  j,
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 2057 of file ControlBoard_nwc_yarp.cpp.

◆ getNominalCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getNominalCurrent ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1649 of file ControlBoard_nwc_yarp.cpp.

◆ getNumberOfMotorEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1139 of file ControlBoard_nwc_yarp.cpp.

◆ getNumberOfMotors()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getNumberOfMotors ( int *  num)
overridevirtual

Get the number of available motors.

Parameters
numretrieved number of available motors
Returns
true/false

Implements yarp::dev::IMotor.

Definition at line 911 of file ControlBoard_nwc_yarp.cpp.

◆ getPeakCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getPeakCurrent ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1672 of file ControlBoard_nwc_yarp.cpp.

◆ getPid()

ReturnValue ControlBoard_nwc_yarp::getPid ( const PidControlTypeEnum &  pidtype,
int  j,
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 487 of file ControlBoard_nwc_yarp.cpp.

◆ getPidError()

ReturnValue ControlBoard_nwc_yarp::getPidError ( const 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 463 of file ControlBoard_nwc_yarp.cpp.

◆ getPidErrorLimit()

ReturnValue ControlBoard_nwc_yarp::getPidErrorLimit ( const 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 535 of file ControlBoard_nwc_yarp.cpp.

◆ getPidErrorLimits()

ReturnValue ControlBoard_nwc_yarp::getPidErrorLimits ( const 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 547 of file ControlBoard_nwc_yarp.cpp.

◆ getPidErrors()

ReturnValue ControlBoard_nwc_yarp::getPidErrors ( const 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 475 of file ControlBoard_nwc_yarp.cpp.

◆ getPidExtraInfo()

ReturnValue ControlBoard_nwc_yarp::getPidExtraInfo ( const PidControlTypeEnum &  pidtype,
int  j,
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 690 of file ControlBoard_nwc_yarp.cpp.

◆ getPidExtraInfos()

ReturnValue ControlBoard_nwc_yarp::getPidExtraInfos ( const PidControlTypeEnum &  pidtype,
std::vector< 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 702 of file ControlBoard_nwc_yarp.cpp.

◆ getPidFeedforward()

ReturnValue ControlBoard_nwc_yarp::getPidFeedforward ( const 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 726 of file ControlBoard_nwc_yarp.cpp.

◆ getPidOffset()

ReturnValue ControlBoard_nwc_yarp::getPidOffset ( const 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 714 of file ControlBoard_nwc_yarp.cpp.

◆ getPidOutput()

ReturnValue ControlBoard_nwc_yarp::getPidOutput ( const 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 604 of file ControlBoard_nwc_yarp.cpp.

◆ getPidOutputs()

ReturnValue ControlBoard_nwc_yarp::getPidOutputs ( const 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 616 of file ControlBoard_nwc_yarp.cpp.

◆ getPidReference()

ReturnValue ControlBoard_nwc_yarp::getPidReference ( const 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 511 of file ControlBoard_nwc_yarp.cpp.

◆ getPidReferences()

ReturnValue ControlBoard_nwc_yarp::getPidReferences ( const 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 523 of file ControlBoard_nwc_yarp.cpp.

◆ getPids()

ReturnValue ControlBoard_nwc_yarp::getPids ( const PidControlTypeEnum &  pidtype,
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 499 of file ControlBoard_nwc_yarp.cpp.

◆ getPosLimits()

ReturnValue ControlBoard_nwc_yarp::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 1754 of file ControlBoard_nwc_yarp.cpp.

◆ getPowerSupplyVoltage()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getPowerSupplyVoltage ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1727 of file ControlBoard_nwc_yarp.cpp.

◆ getPWM()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getPWM ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1695 of file ControlBoard_nwc_yarp.cpp.

◆ getPWMLimit()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getPWMLimit ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1704 of file ControlBoard_nwc_yarp.cpp.

◆ getRefCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2700 of file ControlBoard_nwc_yarp.cpp.

◆ getRefCurrents()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2688 of file ControlBoard_nwc_yarp.cpp.

◆ getRefDutyCycle()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2916 of file ControlBoard_nwc_yarp.cpp.

◆ getRefDutyCycles()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2928 of file ControlBoard_nwc_yarp.cpp.

◆ getRefPosition()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2384 of file ControlBoard_nwc_yarp.cpp.

◆ getRefPositions() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2408 of file ControlBoard_nwc_yarp.cpp.

◆ getRefPositions() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2396 of file ControlBoard_nwc_yarp.cpp.

◆ getRefTorque()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1910 of file ControlBoard_nwc_yarp.cpp.

◆ getRefTorques()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1922 of file ControlBoard_nwc_yarp.cpp.

◆ getRefVelocity() [1/3]

ReturnValue ControlBoard_nwc_yarp::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 3117 of file ControlBoard_nwc_yarp.cpp.

◆ getRefVelocity() [2/3]

ReturnValue ControlBoard_nwc_yarp::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 3141 of file ControlBoard_nwc_yarp.cpp.

◆ getRefVelocity() [3/3]

ReturnValue ControlBoard_nwc_yarp::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 3129 of file ControlBoard_nwc_yarp.cpp.

◆ getRemoteVariable()

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

Implements yarp::dev::IRemoteVariables.

Definition at line 871 of file ControlBoard_nwc_yarp.cpp.

◆ getRemoteVariablesList()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::getRemoteVariablesList ( yarp::os::Bottle *  listOfKeys)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 895 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetPosition()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1208 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetPositions() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1232 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetPositions() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1220 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetVelocities() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2485 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetVelocities() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2473 of file ControlBoard_nwc_yarp.cpp.

◆ getTargetVelocity()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2461 of file ControlBoard_nwc_yarp.cpp.

◆ getTemperature()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 923 of file ControlBoard_nwc_yarp.cpp.

◆ getTemperatureLimit()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 943 of file ControlBoard_nwc_yarp.cpp.

◆ getTemperatures()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 933 of file ControlBoard_nwc_yarp.cpp.

◆ getTorque()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2077 of file ControlBoard_nwc_yarp.cpp.

◆ getTorqueRange()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2095 of file ControlBoard_nwc_yarp.cpp.

◆ getTorqueRanges()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2108 of file ControlBoard_nwc_yarp.cpp.

◆ getTorques()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2086 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajAcceleration()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1426 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajAccelerations() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1438 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajAccelerations() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1451 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajSpeed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1389 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajSpeeds() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1401 of file ControlBoard_nwc_yarp.cpp.

◆ getTrajSpeeds() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1414 of file ControlBoard_nwc_yarp.cpp.

◆ getVelLimits()

ReturnValue ControlBoard_nwc_yarp::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 1778 of file ControlBoard_nwc_yarp.cpp.

◆ homingSingleJoint()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2618 of file ControlBoard_nwc_yarp.cpp.

◆ homingWholePart()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2629 of file ControlBoard_nwc_yarp.cpp.

◆ isCalibratorDevicePresent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2584 of file ControlBoard_nwc_yarp.cpp.

◆ isJointBraked()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2960 of file ControlBoard_nwc_yarp.cpp.

◆ isLive()

bool ControlBoard_nwc_yarp::isLive ( )
protected

Definition at line 103 of file ControlBoard_nwc_yarp.cpp.

◆ isPidEnabled()

ReturnValue ControlBoard_nwc_yarp::isPidEnabled ( const 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 592 of file ControlBoard_nwc_yarp.cpp.

◆ open()

bool ControlBoard_nwc_yarp::open ( Searchable &  config)
overridevirtual

Open the DeviceDriver.

Parameters
configis a list of parameters for the device. Which parameters are effective for your device can vary. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device).
Returns
true/false upon success/failure

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 120 of file ControlBoard_nwc_yarp.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

ControlBoard_nwc_yarp & ControlBoard_nwc_yarp::operator= ( ControlBoard_nwc_yarp &&  )
delete

◆ park()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::park ( bool  wait = true)
overridevirtual

Reimplemented from yarp::dev::IControlCalibration.

Definition at line 1855 of file ControlBoard_nwc_yarp.cpp.

◆ parkSingleJoint()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2640 of file ControlBoard_nwc_yarp.cpp.

◆ parkWholePart()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::parkWholePart ( )
overridevirtual

parkWholePart: start the parking procedure for the whole part

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 2651 of file ControlBoard_nwc_yarp.cpp.

◆ positionMove() [1/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1196 of file ControlBoard_nwc_yarp.cpp.

◆ positionMove() [2/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1183 of file ControlBoard_nwc_yarp.cpp.

◆ positionMove() [3/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1172 of file ControlBoard_nwc_yarp.cpp.

◆ quitCalibrate()

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

quitCalibrate: interrupt the calibration procedure

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 2662 of file ControlBoard_nwc_yarp.cpp.

◆ quitPark()

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

quitPark: interrupt the park procedure

Returns
true if successful

Implements yarp::dev::IRemoteCalibrator.

Definition at line 2673 of file ControlBoard_nwc_yarp.cpp.

◆ relativeMove() [1/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1269 of file ControlBoard_nwc_yarp.cpp.

◆ relativeMove() [2/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1256 of file ControlBoard_nwc_yarp.cpp.

◆ relativeMove() [3/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1245 of file ControlBoard_nwc_yarp.cpp.

◆ resetEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 742 of file ControlBoard_nwc_yarp.cpp.

◆ resetEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::resetEncoders ( )
overridevirtual

Reset encoders.

Set the encoders value to zero

Returns
true/false

Implements yarp::dev::IEncoders.

Definition at line 753 of file ControlBoard_nwc_yarp.cpp.

◆ resetMotorEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 993 of file ControlBoard_nwc_yarp.cpp.

◆ resetMotorEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::resetMotorEncoders ( )
overridevirtual

Reset motor encoders.

Set the motor encoders value to zero.

Returns
true/false

Implements yarp::dev::IMotorEncoders.

Definition at line 1004 of file ControlBoard_nwc_yarp.cpp.

◆ resetPid()

ReturnValue ControlBoard_nwc_yarp::resetPid ( const 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 559 of file ControlBoard_nwc_yarp.cpp.

◆ setAutoBrakeEnabled()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2983 of file ControlBoard_nwc_yarp.cpp.

◆ setCalibrationParameters()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setCalibrationParameters ( int  axis,
const 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 1877 of file ControlBoard_nwc_yarp.cpp.

◆ setControlMode()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2251 of file ControlBoard_nwc_yarp.cpp.

◆ setControlModes() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2262 of file ControlBoard_nwc_yarp.cpp.

◆ setControlModes() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2273 of file ControlBoard_nwc_yarp.cpp.

◆ setEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 764 of file ControlBoard_nwc_yarp.cpp.

◆ setEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 775 of file ControlBoard_nwc_yarp.cpp.

◆ setGearboxRatio()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 978 of file ControlBoard_nwc_yarp.cpp.

◆ setImpedance()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2150 of file ControlBoard_nwc_yarp.cpp.

◆ setImpedanceOffset()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setImpedanceOffset ( int  j,
double  offset 
)
overridevirtual

Set current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControl.

Definition at line 2161 of file ControlBoard_nwc_yarp.cpp.

◆ setInteractionMode()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2549 of file ControlBoard_nwc_yarp.cpp.

◆ setInteractionModes() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2560 of file ControlBoard_nwc_yarp.cpp.

◆ setInteractionModes() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2570 of file ControlBoard_nwc_yarp.cpp.

◆ setManualBrakeActive()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2972 of file ControlBoard_nwc_yarp.cpp.

◆ setMaxCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setMaxCurrent ( int  j,
double  v 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1626 of file ControlBoard_nwc_yarp.cpp.

◆ setMotorEncoder()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1015 of file ControlBoard_nwc_yarp.cpp.

◆ setMotorEncoderCountsPerRevolution()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1026 of file ControlBoard_nwc_yarp.cpp.

◆ setMotorEncoders()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1049 of file ControlBoard_nwc_yarp.cpp.

◆ setMotorTorqueParams()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setMotorTorqueParams ( int  j,
const 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 2036 of file ControlBoard_nwc_yarp.cpp.

◆ setNominalCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setNominalCurrent ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1661 of file ControlBoard_nwc_yarp.cpp.

◆ setPeakCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setPeakCurrent ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1684 of file ControlBoard_nwc_yarp.cpp.

◆ setPid()

ReturnValue ControlBoard_nwc_yarp::setPid ( const PidControlTypeEnum &  pidtype,
int  j,
const 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 394 of file ControlBoard_nwc_yarp.cpp.

◆ setPidErrorLimit()

ReturnValue ControlBoard_nwc_yarp::setPidErrorLimit ( const 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 440 of file ControlBoard_nwc_yarp.cpp.

◆ setPidErrorLimits()

ReturnValue ControlBoard_nwc_yarp::setPidErrorLimits ( const 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 451 of file ControlBoard_nwc_yarp.cpp.

◆ setPidFeedforward()

ReturnValue ControlBoard_nwc_yarp::setPidFeedforward ( const 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 659 of file ControlBoard_nwc_yarp.cpp.

◆ setPidOffset()

ReturnValue ControlBoard_nwc_yarp::setPidOffset ( const 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 628 of file ControlBoard_nwc_yarp.cpp.

◆ setPidReference()

ReturnValue ControlBoard_nwc_yarp::setPidReference ( const 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 417 of file ControlBoard_nwc_yarp.cpp.

◆ setPidReferences()

ReturnValue ControlBoard_nwc_yarp::setPidReferences ( const 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 428 of file ControlBoard_nwc_yarp.cpp.

◆ setPids()

ReturnValue ControlBoard_nwc_yarp::setPids ( const PidControlTypeEnum &  pidtype,
const 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 405 of file ControlBoard_nwc_yarp.cpp.

◆ setPosition()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2288 of file ControlBoard_nwc_yarp.cpp.

◆ setPositions() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2354 of file ControlBoard_nwc_yarp.cpp.

◆ setPositions() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2318 of file ControlBoard_nwc_yarp.cpp.

◆ setPosLimits()

ReturnValue ControlBoard_nwc_yarp::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 1743 of file ControlBoard_nwc_yarp.cpp.

◆ setPWMLimit()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::setPWMLimit ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControl.

Definition at line 1716 of file ControlBoard_nwc_yarp.cpp.

◆ setRefCurrent()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2742 of file ControlBoard_nwc_yarp.cpp.

◆ setRefCurrents() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2712 of file ControlBoard_nwc_yarp.cpp.

◆ setRefCurrents() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2753 of file ControlBoard_nwc_yarp.cpp.

◆ setRefDutyCycle()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2872 of file ControlBoard_nwc_yarp.cpp.

◆ setRefDutyCycles()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2883 of file ControlBoard_nwc_yarp.cpp.

◆ setRefTorque()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1968 of file ControlBoard_nwc_yarp.cpp.

◆ setRefTorques() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1935 of file ControlBoard_nwc_yarp.cpp.

◆ setRefTorques() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2000 of file ControlBoard_nwc_yarp.cpp.

◆ setRefVelocity() [1/3]

ReturnValue ControlBoard_nwc_yarp::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 3050 of file ControlBoard_nwc_yarp.cpp.

◆ setRefVelocity() [2/3]

ReturnValue ControlBoard_nwc_yarp::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 3081 of file ControlBoard_nwc_yarp.cpp.

◆ setRefVelocity() [3/3]

ReturnValue ControlBoard_nwc_yarp::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 3020 of file ControlBoard_nwc_yarp.cpp.

◆ setRemoteVariable()

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

Implements yarp::dev::IRemoteVariables.

Definition at line 883 of file ControlBoard_nwc_yarp.cpp.

◆ setTemperatureLimit()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 955 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajAcceleration()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1353 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajAccelerations() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1377 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajAccelerations() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1364 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajSpeed()

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1317 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajSpeeds() [1/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1341 of file ControlBoard_nwc_yarp.cpp.

◆ setTrajSpeeds() [2/2]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1328 of file ControlBoard_nwc_yarp.cpp.

◆ setVelLimits()

ReturnValue ControlBoard_nwc_yarp::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 1767 of file ControlBoard_nwc_yarp.cpp.

◆ stop() [1/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::stop ( )
overridevirtual

Stop motion, multiple joints.

Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1486 of file ControlBoard_nwc_yarp.cpp.

◆ stop() [2/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1474 of file ControlBoard_nwc_yarp.cpp.

◆ stop() [3/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::stop ( int  j)
overridevirtual

Stop motion, single joint.

Parameters
jjoint number
Returns
true/false on success/failure

Implements yarp::dev::IPositionControl.

Definition at line 1463 of file ControlBoard_nwc_yarp.cpp.

◆ velocityMove() [1/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1546 of file ControlBoard_nwc_yarp.cpp.

◆ velocityMove() [2/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 2425 of file ControlBoard_nwc_yarp.cpp.

◆ velocityMove() [3/3]

yarp::dev::ReturnValue ControlBoard_nwc_yarp::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 1516 of file ControlBoard_nwc_yarp.cpp.

Member Data Documentation

◆ command_buffer

yarp::os::PortWriterBuffer<yarp::dev::CommandMessageData> ControlBoard_nwc_yarp::command_buffer
protected

Definition at line 88 of file ControlBoard_nwc_yarp.h.

◆ command_p

yarp::os::Port ControlBoard_nwc_yarp::command_p
protected

Definition at line 84 of file ControlBoard_nwc_yarp.h.

◆ diagnosticThread

DiagnosticThread* ControlBoard_nwc_yarp::diagnosticThread {nullptr}
protected

Definition at line 85 of file ControlBoard_nwc_yarp.h.

◆ extendedIntputStatePort

StateExtendedInputPort ControlBoard_nwc_yarp::extendedIntputStatePort
protected

Definition at line 97 of file ControlBoard_nwc_yarp.h.

◆ extendedPortMutex

std::mutex ControlBoard_nwc_yarp::extendedPortMutex
protected

Definition at line 98 of file ControlBoard_nwc_yarp.h.

◆ last_singleJoint

yarp::dev::JointStateData ControlBoard_nwc_yarp::last_singleJoint
protected

Definition at line 99 of file ControlBoard_nwc_yarp.h.

◆ last_wholePart

yarp::dev::JointStateData ControlBoard_nwc_yarp::last_wholePart
protected

Definition at line 100 of file ControlBoard_nwc_yarp.h.

◆ m_device_has_interfaces

std::map<std::string, bool> ControlBoard_nwc_yarp::m_device_has_interfaces
protected

Definition at line 93 of file ControlBoard_nwc_yarp.h.

◆ m_lastStamp

Stamp ControlBoard_nwc_yarp::m_lastStamp
mutableprotected

Definition at line 102 of file ControlBoard_nwc_yarp.h.

◆ m_nj

size_t ControlBoard_nwc_yarp::m_nj {0}
protected

Definition at line 103 of file ControlBoard_nwc_yarp.h.

◆ m_njIsKnown

bool ControlBoard_nwc_yarp::m_njIsKnown {false}
protected

Definition at line 104 of file ControlBoard_nwc_yarp.h.

◆ m_RPC

ControlBoardMsgs ControlBoard_nwc_yarp::m_RPC
protected

Definition at line 106 of file ControlBoard_nwc_yarp.h.

◆ m_rpcPort

yarp::os::Port ControlBoard_nwc_yarp::m_rpcPort
protected

Definition at line 86 of file ControlBoard_nwc_yarp.h.

◆ writeStrict_moreJoints

bool ControlBoard_nwc_yarp::writeStrict_moreJoints {false}
protected

Definition at line 90 of file ControlBoard_nwc_yarp.h.

◆ writeStrict_singleJoint

bool ControlBoard_nwc_yarp::writeStrict_singleJoint {true}
protected

Definition at line 89 of file ControlBoard_nwc_yarp.h.


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