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

fakeMotionControl: The aim of this device is to mimic the expected behavior of a real motion control device to help testing the high level software. More...

#include <fake/fakeMotionControl/FakeMotionControl.h>

+ Inheritance diagram for FakeMotionControl:

Public Member Functions

 FakeMotionControl ()
 
 ~FakeMotionControl ()
 
bool open (yarp::os::Searchable &par) override
 Open the DeviceDriver.
 
bool close () override
 Close the DeviceDriver.
 
bool fromConfig (yarp::os::Searchable &config)
 
virtual bool initialised ()
 
bool alloc (int njoints)
 Allocated buffers.
 
void resizeBuffers ()
 Resize previously allocated buffers.
 
bool threadInit () override
 Initialization method.
 
void threadRelease () override
 Release method.
 
yarp::dev::ReturnValue getAvailablePidsRaw (int j, std::vector< yarp::dev::PidControlTypeEnum > &avail) override
 Return a list of available pid types mode for the given joint.
 
yarp::dev::ReturnValue setPidRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, const yarp::dev::Pid &pid) override
 Set new PID value for a joint axis.
 
yarp::dev::ReturnValue setPidsRaw (const yarp::dev::PidControlTypeEnum &pidtype, const yarp::dev::Pid *pids) override
 Set new PID value on multiple axes.
 
yarp::dev::ReturnValue setPidReferenceRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double ref) override
 Set the controller reference for a given axis.
 
yarp::dev::ReturnValue setPidReferencesRaw (const yarp::dev::PidControlTypeEnum &pidtype, const double *refs) override
 Set the controller reference, multiple axes.
 
yarp::dev::ReturnValue setPidErrorLimitRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double limit) override
 Set the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue setPidErrorLimitsRaw (const yarp::dev::PidControlTypeEnum &pidtype, const double *limits) override
 Get the error limit for the controller on all joints.
 
yarp::dev::ReturnValue getPidErrorRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *err) override
 Get the current error for a joint.
 
yarp::dev::ReturnValue getPidErrorsRaw (const yarp::dev::PidControlTypeEnum &pidtype, double *errs) override
 Get the error of all joints.
 
yarp::dev::ReturnValue getPidOutputRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *out) override
 Get the output of the controller (e.g.
 
yarp::dev::ReturnValue getPidOutputsRaw (const yarp::dev::PidControlTypeEnum &pidtype, double *outs) override
 Get the output of the controllers (e.g.
 
yarp::dev::ReturnValue getPidRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, yarp::dev::Pid *pid) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPidsRaw (const yarp::dev::PidControlTypeEnum &pidtype, yarp::dev::Pid *pids) override
 Get current PID value for a specific joint.
 
yarp::dev::ReturnValue getPidReferenceRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *ref) override
 Get the current reference of the PID controller for a specific joint.
 
yarp::dev::ReturnValue getPidReferencesRaw (const yarp::dev::PidControlTypeEnum &pidtype, double *refs) override
 Get the current reference of all PID controllers.
 
yarp::dev::ReturnValue getPidErrorLimitRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double *limit) override
 Get the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue getPidErrorLimitsRaw (const yarp::dev::PidControlTypeEnum &pidtype, double *limits) override
 Get the error limit for all controllers.
 
yarp::dev::ReturnValue resetPidRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 Reset the controller of a given joint, usually sets the current status of the joint as the reference value for the PID, and resets the integrator.
 
yarp::dev::ReturnValue disablePidRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 Disable the PID computation for a joint.
 
yarp::dev::ReturnValue enablePidRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j) override
 Enable the PID computation for a joint.
 
yarp::dev::ReturnValue setPidOffsetRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double v) override
 Set an offset value for a given controller.
 
yarp::dev::ReturnValue setPidFeedforwardRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double v) override
 Set the feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue getPidOffsetRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set offset value for the specified PID controller.
 
yarp::dev::ReturnValue getPidFeedforwardRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, double &v) override
 Get the currently set feedforward value for the specified PID controller.
 
yarp::dev::ReturnValue isPidEnabledRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, bool &enabled) override
 Get the current status (enabled/disabled) of the PID controller.
 
yarp::dev::ReturnValue getPidExtraInfoRaw (const yarp::dev::PidControlTypeEnum &pidtype, int j, yarp::dev::PidExtraInfo &units) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getPidExtraInfosRaw (const yarp::dev::PidControlTypeEnum &pidtype, std::vector< yarp::dev::PidExtraInfo > &units) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue positionMoveRaw (int j, double ref) override
 Set new reference point for a single axis.
 
yarp::dev::ReturnValue positionMoveRaw (const double *refs) override
 Set new reference point for all axes.
 
yarp::dev::ReturnValue relativeMoveRaw (int j, double delta) override
 Set relative position.
 
yarp::dev::ReturnValue relativeMoveRaw (const double *deltas) override
 Set relative position, all joints.
 
yarp::dev::ReturnValue checkMotionDoneRaw (bool &flag) override
 Check if the current trajectory all joints is terminated.
 
yarp::dev::ReturnValue checkMotionDoneRaw (int j, bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue setTrajSpeedRaw (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 setTrajSpeedsRaw (const double *spds) override
 Set reference speed on all joints.
 
yarp::dev::ReturnValue getTrajSpeedRaw (int j, double *ref) override
 Get reference speed for a joint.
 
yarp::dev::ReturnValue getTrajSpeedsRaw (double *spds) override
 Get reference speed of all joints.
 
yarp::dev::ReturnValue setTrajAccelerationRaw (int j, double acc) override
 Set reference acceleration for a joint.
 
yarp::dev::ReturnValue setTrajAccelerationsRaw (const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue getTrajAccelerationRaw (int j, double *acc) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue getTrajAccelerationsRaw (double *accs) override
 Get reference acceleration of all joints.
 
yarp::dev::ReturnValue stopRaw (int j) override
 Stop motion, single joint.
 
yarp::dev::ReturnValue stopRaw () override
 Stop motion, multiple joints.
 
yarp::dev::ReturnValue positionMoveRaw (const int n_joint, const int *joints, const double *refs) override
 Set new reference point for a subset of joints.
 
yarp::dev::ReturnValue relativeMoveRaw (const int n_joint, const int *joints, const double *deltas) override
 Set relative position for a subset of joints.
 
yarp::dev::ReturnValue checkMotionDoneRaw (const std::vector< int > &joints, bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue setTrajSpeedsRaw (const int n_joint, const int *joints, const double *spds) override
 Set reference speed on all joints.
 
yarp::dev::ReturnValue setTrajAccelerationsRaw (const int n_joint, const int *joints, const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue getTrajSpeedsRaw (const int n_joint, const int *joints, double *spds) override
 Get reference speed of all joints.
 
yarp::dev::ReturnValue getTrajAccelerationsRaw (const int n_joint, const int *joints, double *accs) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue stopRaw (const int n_joint, const int *joints) override
 Stop motion for subset of joints.
 
yarp::dev::ReturnValue getTargetPositionRaw (const int joint, double *ref) override
 Get the last position reference for the specified axis.
 
yarp::dev::ReturnValue getTargetPositionsRaw (double *refs) override
 Get the last position reference for all axes.
 
yarp::dev::ReturnValue getTargetPositionsRaw (const int n_joint, const int *joints, double *refs) override
 Get the last position reference for the specified group of axes.
 
yarp::dev::ReturnValue getLastJointFaultRaw (int j, int &fault, std::string &message) override
 
yarp::dev::ReturnValue setCalibrationParametersRaw (int axis, const yarp::dev::CalibrationParameters &params) override
 Start calibration, this method is very often platform specific.
 
yarp::dev::ReturnValue calibrateAxisWithParamsRaw (int axis, unsigned int type, double p1, double p2, double p3) override
 Start calibration, this method is very often platform specific.
 
yarp::dev::ReturnValue calibrationDoneRaw (int j) override
 Check if the calibration is terminated, on a particular joint.
 
yarp::dev::ReturnValue getAvailableControlModesRaw (int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail) override
 
yarp::dev::ReturnValue getControlModeRaw (int j, yarp::dev::ControlModeEnum &mode) override
 
yarp::dev::ReturnValue getControlModesRaw (const std::vector< int > &joints, std::vector< yarp::dev::ControlModeEnum > &modes) override
 
yarp::dev::ReturnValue getControlModesRaw (std::vector< yarp::dev::ControlModeEnum > &mode) override
 
yarp::dev::ReturnValue setControlModeRaw (int j, yarp::dev::SelectableControlModeEnum mode) override
 
yarp::dev::ReturnValue setControlModesRaw (const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override
 
yarp::dev::ReturnValue setControlModesRaw (const std::vector< yarp::dev::SelectableControlModeEnum > &mode) override
 
yarp::dev::ReturnValue resetEncoderRaw (int j) override
 Reset encoder, single joint.
 
yarp::dev::ReturnValue resetEncodersRaw () override
 Reset encoders.
 
yarp::dev::ReturnValue setEncoderRaw (int j, double val) override
 Set the value of the encoder for a given joint.
 
yarp::dev::ReturnValue setEncodersRaw (const double *vals) override
 Set the value of all encoders.
 
yarp::dev::ReturnValue getEncoderRaw (int j, double *v) override
 Read the value of an encoder.
 
yarp::dev::ReturnValue getEncodersRaw (double *encs) override
 Read the position of all axes.
 
yarp::dev::ReturnValue getEncoderSpeedRaw (int j, double *sp) override
 Read the instantaneous speed of an axis.
 
yarp::dev::ReturnValue getEncoderSpeedsRaw (double *spds) override
 Read the instantaneous acceleration of an axis.
 
yarp::dev::ReturnValue getEncoderAccelerationRaw (int j, double *spds) override
 Read the instantaneous acceleration of an axis.
 
yarp::dev::ReturnValue getEncoderAccelerationsRaw (double *accs) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncodersTimedRaw (double *encs, double *stamps) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoderTimedRaw (int j, double *encs, double *stamp) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getNumberOfMotorEncodersRaw (int *num) override
 Get the number of available motor encoders.
 
yarp::dev::ReturnValue resetMotorEncoderRaw (int m) override
 Reset motor encoder, single motor.
 
yarp::dev::ReturnValue resetMotorEncodersRaw () override
 Reset motor encoders.
 
yarp::dev::ReturnValue setMotorEncoderRaw (int m, const double val) override
 Set the value of the motor encoder for a given motor.
 
yarp::dev::ReturnValue setMotorEncodersRaw (const double *vals) override
 Set the value of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderRaw (int m, double *v) override
 Read the value of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncodersRaw (double *encs) override
 Read the position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderSpeedRaw (int m, double *sp) override
 Read the instantaneous speed of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderSpeedsRaw (double *spds) override
 Read the instantaneous speed of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderAccelerationRaw (int m, double *spds) override
 Read the instantaneous acceleration of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderAccelerationsRaw (double *accs) override
 Read the instantaneous acceleration of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncodersTimedRaw (double *encs, double *stamps) override
 Read the instantaneous position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderTimedRaw (int m, double *encs, double *stamp) override
 Read the instantaneous position of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderCountsPerRevolutionRaw (int m, double *v) override
 Gets number of counts per revolution for motor encoder m.
 
yarp::dev::ReturnValue setMotorEncoderCountsPerRevolutionRaw (int m, const double cpr) override
 Sets number of counts per revolution for motor encoder m.
 
yarp::dev::ReturnValue getAxisNameRaw (int axis, std::string &name) override
 
yarp::dev::ReturnValue getJointTypeRaw (int axis, yarp::dev::JointTypeEnum &type) override
 
virtual bool getRotorEncoderResolutionRaw (int m, double &rotres)
 
virtual bool getJointEncoderResolutionRaw (int m, double &jntres)
 
virtual bool getJointEncoderTypeRaw (int j, int &type)
 
virtual bool getRotorEncoderTypeRaw (int j, int &type)
 
virtual bool getKinematicMJRaw (int j, double &rotres)
 
virtual bool getHasTempSensorsRaw (int j, int &ret)
 
virtual bool getHasHallSensorRaw (int j, int &ret)
 
virtual bool getHasRotorEncoderRaw (int j, int &ret)
 
virtual bool getHasRotorEncoderIndexRaw (int j, int &ret)
 
virtual bool getMotorPolesRaw (int j, int &poles)
 
virtual bool getRotorIndexOffsetRaw (int j, double &rotorOffset)
 
virtual bool getTorqueControlFilterType (int j, int &type)
 
yarp::dev::ReturnValue enableAmpRaw (int j) override
 Enable the amplifier on a specific joint.
 
yarp::dev::ReturnValue disableAmpRaw (int j) override
 Disable the amplifier on a specific joint.
 
yarp::dev::ReturnValue getCurrentsRaw (double *vals) override
 
yarp::dev::ReturnValue getCurrentRaw (int j, double *val) override
 
yarp::dev::ReturnValue getNominalCurrentRaw (int m, double *val) override
 
yarp::dev::ReturnValue setNominalCurrentRaw (int m, const double val) override
 
yarp::dev::ReturnValue setMaxCurrentRaw (int j, double val) override
 
yarp::dev::ReturnValue getMaxCurrentRaw (int j, double *val) override
 Returns the maximum electric current allowed for a given motor.
 
yarp::dev::ReturnValue getPeakCurrentRaw (int m, double *val) override
 
yarp::dev::ReturnValue setPeakCurrentRaw (int m, const double val) override
 
yarp::dev::ReturnValue getAmpStatusRaw (int *st) override
 
yarp::dev::ReturnValue getAmpStatusRaw (int j, int *st) override
 
yarp::dev::ReturnValue getPWMRaw (int j, double *val) override
 
yarp::dev::ReturnValue getPWMLimitRaw (int j, double *val) override
 
yarp::dev::ReturnValue setPWMLimitRaw (int j, const double val) override
 
yarp::dev::ReturnValue getPowerSupplyVoltageRaw (int j, double *val) override
 
yarp::dev::ReturnValue setPosLimitsRaw (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 getPosLimitsRaw (int axis, double *min, double *max) override
 Get the software limits for a particular axis.
 
yarp::dev::ReturnValue setVelLimitsRaw (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 getVelLimitsRaw (int axis, double *min, double *max) override
 Get the software speed limits for a particular axis.
 
yarp::dev::ReturnValue getTorqueRaw (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 getTorquesRaw (double *t) override
 Get the value of the torque for all joints (this is the feedback if you have torque sensors).
 
yarp::dev::ReturnValue getTorqueRangeRaw (int j, double *min, double *max) override
 Get the full scale of the torque sensor of a given joint.
 
yarp::dev::ReturnValue getTorqueRangesRaw (double *min, double *max) override
 Get the full scale of the torque sensors of all joints.
 
yarp::dev::ReturnValue setRefTorquesRaw (const double *t) override
 Set the reference value of the torque for all joints.
 
yarp::dev::ReturnValue setRefTorqueRaw (int j, double t) override
 Set the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue setRefTorquesRaw (const int n_joint, const int *joints, const double *t) override
 Set new torque reference for a subset of joints.
 
yarp::dev::ReturnValue getRefTorquesRaw (double *t) override
 Get the reference value of the torque for all joints.
 
yarp::dev::ReturnValue getRefTorqueRaw (int j, double *t) override
 Set the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue getMotorTorqueParamsRaw (int j, yarp::dev::MotorTorqueParameters *params) override
 Get the motor parameters.
 
yarp::dev::ReturnValue setMotorTorqueParamsRaw (int j, const yarp::dev::MotorTorqueParameters params) override
 Set the motor parameters.
 
yarp::dev::ReturnValue velocityMoveRaw (int j, double sp) override
 Start motion at a given speed, single joint.
 
yarp::dev::ReturnValue velocityMoveRaw (const double *sp) override
 Start motion at a given speed, multiple joints.
 
yarp::dev::ReturnValue velocityMoveRaw (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 getTargetVelocityRaw (const int joint, double *ref) override
 Get the last reference speed set by velocityMove for single joint.
 
yarp::dev::ReturnValue getTargetVelocitiesRaw (double *refs) override
 Get the last reference speed set by velocityMove for all joints.
 
yarp::dev::ReturnValue getTargetVelocitiesRaw (const int n_joint, const int *joints, double *refs) override
 Get the last reference speed set by velocityMove for a group of joints.
 
yarp::dev::ReturnValue getImpedanceRaw (int j, double *stiffness, double *damping) override
 Get current impedance parameters (stiffness,damping,offset) for a specific joint.
 
yarp::dev::ReturnValue setImpedanceRaw (int j, double stiffness, double damping) override
 Set current impedance parameters (stiffness,damping) for a specific joint.
 
yarp::dev::ReturnValue setImpedanceOffsetRaw (int j, double offset) override
 Set current force Offset for a specific joint.
 
yarp::dev::ReturnValue getImpedanceOffsetRaw (int j, double *offset) override
 Get current force Offset for a specific joint.
 
yarp::dev::ReturnValue getCurrentImpedanceLimitRaw (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 setPositionRaw (int j, double ref) override
 Set new position for a single axis.
 
yarp::dev::ReturnValue setPositionsRaw (const int n_joint, const int *joints, const double *refs) override
 Set new reference point for all axes.
 
yarp::dev::ReturnValue setPositionsRaw (const double *refs) override
 Set new position for a set of axes.
 
yarp::dev::ReturnValue getRefPositionRaw (const int joint, double *ref) override
 Get the last position reference for the specified axis.
 
yarp::dev::ReturnValue getRefPositionsRaw (double *refs) override
 Get the last position reference for all axes.
 
yarp::dev::ReturnValue getRefPositionsRaw (const int n_joint, const int *joints, double *refs) override
 Get the last position reference for the specified group of axes.
 
yarp::dev::ReturnValue getInteractionModeRaw (int j, yarp::dev::InteractionModeEnum &_mode) override
 Get the current interaction mode of the robot, values can be stiff or compliant.
 
yarp::dev::ReturnValue getInteractionModesRaw (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 getInteractionModesRaw (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 setInteractionModeRaw (int j, yarp::dev::InteractionModeEnum _mode) override
 Set the interaction mode of the robot, values can be stiff or compliant.
 
yarp::dev::ReturnValue setInteractionModesRaw (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 setInteractionModesRaw (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 getNumberOfMotorsRaw (int *num) override
 Get the number of available motors.
 
yarp::dev::ReturnValue getTemperatureRaw (int m, double *val) override
 Get temperature of a motor.
 
yarp::dev::ReturnValue getTemperaturesRaw (double *vals) override
 Get temperature of all the motors.
 
yarp::dev::ReturnValue getTemperatureLimitRaw (int m, double *temp) override
 Retrieves the current temperature limit for a specific motor.
 
yarp::dev::ReturnValue setTemperatureLimitRaw (int m, const double temp) override
 Set the temperature limit for a specific motor.
 
yarp::dev::ReturnValue getGearboxRatioRaw (int m, double *gearbox) override
 Get the gearbox ratio for a specific motor.
 
yarp::dev::ReturnValue setGearboxRatioRaw (int m, const double val) override
 Set the gearbox ratio for a specific motor.
 
yarp::dev::ReturnValue setRefDutyCycleRaw (int j, double v) override
 Sets the reference dutycycle of a single motor.
 
yarp::dev::ReturnValue setRefDutyCyclesRaw (const double *v) override
 Sets the reference dutycycle for all motors.
 
yarp::dev::ReturnValue getRefDutyCycleRaw (int j, double *v) override
 Gets the last reference sent using the setRefDutyCycleRaw function.
 
yarp::dev::ReturnValue getRefDutyCyclesRaw (double *v) override
 Gets the last reference sent using the setRefDutyCyclesRaw function.
 
yarp::dev::ReturnValue getDutyCycleRaw (int j, double *v) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue getDutyCyclesRaw (double *v) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue isJointBrakedRaw (int j, bool &braked) const override
 
yarp::dev::ReturnValue setManualBrakeActiveRaw (int j, bool active) override
 
yarp::dev::ReturnValue setAutoBrakeEnabledRaw (int j, bool enabled) override
 
yarp::dev::ReturnValue getAutoBrakeEnabledRaw (int j, bool &enabled) const override
 
yarp::dev::ReturnValue setRefVelocityRaw (int jnt, double vel) override
 Set the velocity of single joint.
 
yarp::dev::ReturnValue setRefVelocityRaw (const std::vector< double > &vels) override
 Set the velocity of all joints.
 
yarp::dev::ReturnValue setRefVelocityRaw (const std::vector< int > &jnts, const std::vector< double > &vels) override
 Set the velocity of a subset of joints.
 
yarp::dev::ReturnValue getRefVelocityRaw (const int jnt, double &vel) override
 Get the last reference velocity set by setRefVelocity() for a single joint.
 
yarp::dev::ReturnValue getRefVelocityRaw (std::vector< double > &vels) override
 Get the last reference velocity set by setRefVelocity() for all joints.
 
yarp::dev::ReturnValue getRefVelocityRaw (const std::vector< int > &jnts, std::vector< double > &vels) override
 Get the last reference velocity set by setRefVelocity() for a group of joints.
 
yarp::dev::ReturnValue getCurrentRangeRaw (int j, double *min, double *max) override
 Get the full scale of the current measurement for a given motor (e.g.
 
yarp::dev::ReturnValue getCurrentRangesRaw (double *min, double *max) override
 Get the full scale of the current measurements for all motors motor (e.g.
 
yarp::dev::ReturnValue setRefCurrentsRaw (const double *t) override
 Set the reference value of the currents for all motors.
 
yarp::dev::ReturnValue setRefCurrentRaw (int j, double t) override
 Set the reference value of the current for a single motor.
 
yarp::dev::ReturnValue setRefCurrentsRaw (const int n_joint, const int *joints, const double *t) override
 Set the reference value of the current for a group of motors.
 
yarp::dev::ReturnValue getRefCurrentsRaw (double *t) override
 Get the reference value of the currents for all motors.
 
yarp::dev::ReturnValue getRefCurrentRaw (int j, double *t) override
 Get the reference value of the current for a single motor.
 
yarp::dev::VAS_status getVirtualAnalogSensorStatusRaw (int ch) override
 Check the status of a given channel.
 
int getVirtualAnalogSensorChannelsRaw () override
 Get the number of channels of the virtual sensor.
 
bool updateVirtualAnalogSensorMeasureRaw (yarp::sig::Vector &measure) override
 Set a vector of torque values for virtual sensor.
 
bool updateVirtualAnalogSensorMeasureRaw (int ch, double &measure) override
 
void run () override
 Loop function.
 
- Public Member Functions inherited from FakeMotionControl_ParamsParser
 FakeMotionControl_ParamsParser ()
 
 ~FakeMotionControl_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 ()
 
- 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::os::PeriodicThread
 PeriodicThread (double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No, PeriodicThreadClock clockAccuracy=PeriodicThreadClock::Relative)
 Constructor.
 
 PeriodicThread (double period, PeriodicThreadClock clockAccuracy)
 Constructor.
 
virtual ~PeriodicThread ()
 
bool start ()
 Call this to start the thread.
 
void step ()
 Call this to "step" the thread rather than starting it.
 
void stop ()
 Call this to stop the thread, this call blocks until the thread is terminated (and releaseThread() called).
 
void askToStop ()
 Stop the thread.
 
bool isRunning () const
 Returns true when the thread is started, false otherwise.
 
bool isSuspended () const
 Returns true when the thread is suspended, false otherwise.
 
bool setPeriod (double period)
 Set the (new) period of the thread.
 
double getPeriod () const
 Return the current period of the thread.
 
void suspend ()
 Suspend the thread, the thread keeps running by doLoop is never executed.
 
void resume ()
 Resume the thread if previously suspended.
 
void resetStat ()
 Reset thread statistics.
 
double getEstimatedPeriod () const
 Return estimated period since last reset.
 
void getEstimatedPeriod (double &av, double &std) const
 Return estimated period since last reset.
 
unsigned int getIterations () const
 Return the number of iterations performed since last reset.
 
double getEstimatedUsed () const
 Return the estimated duration of the run() function since last reset.
 
void getEstimatedUsed (double &av, double &std) const
 Return estimated duration of the run() function since last reset.
 
int setPriority (int priority, int policy=-1)
 Set the priority and scheduling policy of the thread, if the OS supports that.
 
int getPriority () const
 Query the current priority of the thread, if the OS supports that.
 
int getPolicy () const
 Query the current scheduling policy of the thread, if the OS supports that.
 
- Public Member Functions inherited from yarp::dev::IPidControlRaw
virtual ~IPidControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IControlCalibrationRaw
 IControlCalibrationRaw ()
 
virtual ~IControlCalibrationRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IAmplifierControlRaw
virtual ~IAmplifierControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IEncodersTimedRaw
virtual ~IEncodersTimedRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IEncodersRaw
virtual ~IEncodersRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMotorEncodersRaw
virtual ~IMotorEncodersRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMotorRaw
virtual ~IMotorRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPositionControlRaw
virtual ~IPositionControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityControlRaw
virtual ~IVelocityControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVelocityDirectRaw
virtual ~IVelocityDirectRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IControlModeRaw
virtual ~IControlModeRaw ()
 
- Public Member Functions inherited from yarp::dev::IControlLimitsRaw
virtual ~IControlLimitsRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPositionDirectRaw
virtual ~IPositionDirectRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ITorqueControlRaw
virtual ~ITorqueControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ICurrentControlRaw
virtual ~ICurrentControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IPWMControlRaw
virtual ~IPWMControlRaw ()
 
- Public Member Functions inherited from yarp::dev::IImpedanceControlRaw
virtual ~IImpedanceControlRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IInteractionModeRaw
virtual ~IInteractionModeRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IAxisInfoRaw
virtual ~IAxisInfoRaw ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IVirtualAnalogSensorRaw
virtual ~IVirtualAnalogSensorRaw ()
 
- Public Member Functions inherited from yarp::dev::IJointBrakeRaw
virtual ~IJointBrakeRaw ()
 
- Public Member Functions inherited from yarp::dev::IJointFaultRaw
virtual ~IJointFaultRaw ()
 
- Public Member Functions inherited from yarp::dev::ImplementControlCalibration
 ImplementControlCalibration (yarp::dev::IControlCalibrationRaw *y)
 
virtual ~ImplementControlCalibration ()
 Destructor.
 
ReturnValue calibrateAxisWithParams (int axis, unsigned int type, double p1, double p2, double p3) override
 Start calibration, this method is very often platform specific.
 
ReturnValue setCalibrationParameters (int axis, const CalibrationParameters &params) override
 Start calibration, this method is very often platform specific.
 
ReturnValue calibrationDone (int j) override
 Check if the calibration is terminated, on a particular joint.
 
- Public Member Functions inherited from yarp::dev::IControlCalibration
 IControlCalibration ()
 
virtual ~IControlCalibration ()
 Destructor.
 
virtual yarp::dev::ReturnValue setCalibrator (ICalibrator *c)
 Set the calibrator object to be used to calibrate the robot.
 
virtual yarp::dev::ReturnValue calibrateRobot ()
 Calibrate robot by using an external calibrator.
 
virtual yarp::dev::ReturnValue park (bool wait=true)
 
virtual yarp::dev::ReturnValue abortCalibration ()
 
virtual yarp::dev::ReturnValue abortPark ()
 
- Public Member Functions inherited from yarp::dev::ImplementAmplifierControl
 ImplementAmplifierControl (yarp::dev::IAmplifierControlRaw *y)
 
virtual ~ImplementAmplifierControl ()
 Destructor.
 
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 getCurrents (double *vals) override
 
yarp::dev::ReturnValue getCurrent (int j, double *val) 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 j, double *val) override
 
yarp::dev::ReturnValue getPWMLimit (int j, double *val) override
 
yarp::dev::ReturnValue setPWMLimit (int j, const double val) override
 
yarp::dev::ReturnValue getPowerSupplyVoltage (int j, double *val) override
 
- Public Member Functions inherited from yarp::dev::IAmplifierControl
virtual ~IAmplifierControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementPidControl
 ImplementPidControl (yarp::dev::IPidControlRaw *y)
 
virtual ~ImplementPidControl ()
 
yarp::dev::ReturnValue getAvailablePids (int j, std::vector< 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 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 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 *ref) override
 Get the error limit for the controller on a specific joint.
 
yarp::dev::ReturnValue getPidErrorLimits (const PidControlTypeEnum &pidtype, double *refs) 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 enablePid (const PidControlTypeEnum &pidtype, int j) override
 Enable the PID computation for a joint.
 
yarp::dev::ReturnValue disablePid (const PidControlTypeEnum &pidtype, int j) override
 Disable the PID computation for a joint.
 
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 isPidEnabled (const PidControlTypeEnum &pidtype, int j, bool &enabled) override
 Get the current status (enabled/disabled) of the PID.
 
yarp::dev::ReturnValue getPidExtraInfo (const PidControlTypeEnum &pidtype, int j, yarp::dev::PidExtraInfo &units) override
 Get PID extra info and measurement units for a specific joint.
 
yarp::dev::ReturnValue getPidExtraInfos (const PidControlTypeEnum &pidtype, std::vector< yarp::dev::PidExtraInfo > &units) override
 Get PID extra info and measurement units for a specific joint.
 
void b ()
 
- Public Member Functions inherited from yarp::dev::IPidControl
virtual ~IPidControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementEncodersTimed
 ImplementEncodersTimed (yarp::dev::IEncodersTimedRaw *y)
 
virtual ~ImplementEncodersTimed ()
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
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 getEncodersTimed (double *encs, double *time) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoderTimed (int j, double *v, double *t) override
 Read the instantaneous acceleration of all axes.
 
yarp::dev::ReturnValue getEncoders (double *encs) override
 Read the position of all axes.
 
yarp::dev::ReturnValue getEncoderSpeed (int j, double *spds) 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 *spds) override
 Read the instantaneous acceleration of an axis.
 
yarp::dev::ReturnValue getEncoderAccelerations (double *accs) override
 Read the instantaneous acceleration of all axes.
 
- 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::ImplementPositionControl
 ImplementPositionControl (yarp::dev::IPositionControlRaw *y)
 Constructor.
 
virtual ~ImplementPositionControl ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &axis) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue positionMove (int j, double ref) override
 Set new reference point for a single axis.
 
yarp::dev::ReturnValue positionMove (const 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 relativeMove (int j, double delta) override
 Set relative position.
 
yarp::dev::ReturnValue relativeMove (const int n_joint, const int *joints, const double *deltas) 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 (bool &flag) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue checkMotionDone (const std::vector< int > &joints, bool &flags) override
 Check if the current trajectory is terminated.
 
yarp::dev::ReturnValue checkMotionDone (int j, 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 n_joint, const int *joints) override
 Stop motion for subset of joints.
 
yarp::dev::ReturnValue stop () override
 Stop motion, multiple joints.
 
yarp::dev::ReturnValue getTargetPosition (const int joint, double *ref) override
 Get the last position reference for the specified axis.
 
yarp::dev::ReturnValue getTargetPositions (double *refs) override
 Get the last position reference for all axes.
 
yarp::dev::ReturnValue getTargetPositions (const int n_joint, const int *joints, double *refs) override
 Get the last position reference for the specified group of axes.
 
- Public Member Functions inherited from yarp::dev::IPositionControl
virtual ~IPositionControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementVelocityControl
 ImplementVelocityControl (yarp::dev::IVelocityControlRaw *y)
 Constructor.
 
virtual ~ImplementVelocityControl ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &axes) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue velocityMove (int j, double sp) override
 Start motion at a given speed, single joint.
 
yarp::dev::ReturnValue velocityMove (const double *sp) override
 Start motion at a given speed, multiple joints.
 
yarp::dev::ReturnValue setTrajAcceleration (int j, double acc) override
 Set reference acceleration for a joint.
 
yarp::dev::ReturnValue setTrajAccelerations (const double *accs) override
 Set reference acceleration on all joints.
 
yarp::dev::ReturnValue getTrajAcceleration (int j, double *acc) override
 Get reference acceleration for a joint.
 
yarp::dev::ReturnValue getTrajAccelerations (double *accs) override
 Get reference acceleration of all joints.
 
yarp::dev::ReturnValue stop (int j) override
 Stop motion, single joint.
 
yarp::dev::ReturnValue stop () override
 Stop motion, 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 setTrajAccelerations (const int n_joint, const int *joints, const double *accs) override
 Set reference acceleration for a subset of joints.
 
yarp::dev::ReturnValue getTrajAccelerations (const int n_joint, const int *joints, double *accs) override
 Get reference acceleration for a subset of joints.
 
yarp::dev::ReturnValue stop (const int n_joint, const int *joints) override
 Stop motion for a subset of joints.
 
- Public Member Functions inherited from yarp::dev::IVelocityControl
virtual ~IVelocityControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementVelocityDirect
 ImplementVelocityDirect (yarp::dev::IVelocityDirectRaw *y)
 Constructor.
 
virtual ~ImplementVelocityDirect ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &axes) override
 Get the number of controlled axes.
 
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::IVelocityDirect
virtual ~IVelocityDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementControlMode
bool initialize (int k, const int *amap)
 
bool uninitialize ()
 
 ImplementControlMode (IControlModeRaw *v)
 
 ~ImplementControlMode ()
 
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).
 
virtual yarp::dev::ReturnValue getControlMode (int j, yarp::dev::ControlModeEnum &mode)=0
 Get the current control mode.
 
virtual yarp::dev::ReturnValue getControlMode (int j, int *mode)
 
virtual yarp::dev::ReturnValue setControlMode (int j, yarp::dev::SelectableControlModeEnum mode)=0
 Set the current control mode.
 
virtual yarp::dev::ReturnValue setControlMode (const int j, const int mode)
 
- Public Member Functions inherited from yarp::dev::IControlMode
virtual ~IControlMode ()
 
- Public Member Functions inherited from yarp::dev::ImplementImpedanceControl
 ImplementImpedanceControl (yarp::dev::IImpedanceControlRaw *y)
 
virtual ~ImplementImpedanceControl ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
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 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 getImpedanceOffset (int j, double *offset) override
 Get current force Offset for a specific joint.
 
yarp::dev::ReturnValue getCurrentImpedanceLimit (int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override
 Get the current impedance limits for a specific joint.
 
- Public Member Functions inherited from yarp::dev::IImpedanceControl
virtual ~IImpedanceControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementJointBrake
 ImplementJointBrake (yarp::dev::IJointBrakeRaw *y)
 
virtual ~ImplementJointBrake ()
 Destructor.
 
virtual yarp::dev::ReturnValue isJointBraked (int j, bool &braked) const override
 Check is the joint brake is currently active.
 
virtual yarp::dev::ReturnValue setManualBrakeActive (int j, bool active) override
 Enables/Disables manually the joint brake.
 
virtual yarp::dev::ReturnValue setAutoBrakeEnabled (int j, bool enabled) override
 Enables/Disables the automatic joint brake.
 
virtual yarp::dev::ReturnValue getAutoBrakeEnabled (int j, bool &enabled) const override
 checks if the automatic joint brake mode is enabled or disabled.
 
- Public Member Functions inherited from yarp::dev::IJointBrake
virtual ~IJointBrake ()
 
- Public Member Functions inherited from yarp::dev::ImplementJointFault
 ImplementJointFault (yarp::dev::IJointFaultRaw *y)
 
virtual ~ImplementJointFault ()
 Destructor.
 
yarp::dev::ReturnValue getLastJointFault (int j, int &fault, std::string &message) override
 
- Public Member Functions inherited from yarp::dev::IJointFault
virtual ~IJointFault ()
 
- Public Member Functions inherited from yarp::dev::ImplementMotorEncoders
 ImplementMotorEncoders (yarp::dev::IMotorEncodersRaw *y)
 
virtual ~ImplementMotorEncoders ()
 
yarp::dev::ReturnValue getNumberOfMotorEncoders (int *num) override
 Get the number of available motor encoders.
 
yarp::dev::ReturnValue resetMotorEncoder (int m) override
 Reset motor encoder, single motor.
 
yarp::dev::ReturnValue resetMotorEncoders () override
 Reset motor encoders.
 
yarp::dev::ReturnValue setMotorEncoder (int m, const double val) override
 Set the value of the motor encoder for a given motor.
 
yarp::dev::ReturnValue setMotorEncoders (const double *vals) override
 Set the value of all motor encoders.
 
yarp::dev::ReturnValue 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 getMotorEncoder (int m, double *v) override
 Read the value of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncodersTimed (double *encs, double *time) override
 Read the instantaneous position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderTimed (int m, double *v, double *t) override
 Read the instantaneous position of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoders (double *encs) override
 Read the position of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderSpeed (int m, double *spds) override
 Read the instantaneous speed of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderSpeeds (double *spds) override
 Read the instantaneous speed of all motor encoders.
 
yarp::dev::ReturnValue getMotorEncoderAcceleration (int m, double *spds) override
 Read the instantaneous acceleration of a motor encoder.
 
yarp::dev::ReturnValue getMotorEncoderAccelerations (double *accs) override
 Read the instantaneous acceleration of all motor encoders.
 
- Public Member Functions inherited from yarp::dev::IMotorEncoders
virtual ~IMotorEncoders ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementTorqueControl
 ImplementTorqueControl (yarp::dev::ITorqueControlRaw *y)
 
virtual ~ImplementTorqueControl ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue getRefTorque (int j, double *) 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 t) override
 Set the reference value of the torque for a given joint.
 
yarp::dev::ReturnValue setRefTorques (const int n_joint, const int *joints, const double *t) override
 Set new torque reference for a subset of joints.
 
yarp::dev::ReturnValue 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 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 setMotorTorqueParams (int j, const yarp::dev::MotorTorqueParameters params) override
 Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
yarp::dev::ReturnValue getMotorTorqueParams (int j, yarp::dev::MotorTorqueParameters *params) override
 Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
 
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.
 
- Public Member Functions inherited from yarp::dev::ITorqueControl
virtual ~ITorqueControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementControlLimits
 ImplementControlLimits (yarp::dev::IControlLimitsRaw *y)
 Constructor.
 
virtual ~ImplementControlLimits ()
 Destructor.
 
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.
 
- Public Member Functions inherited from yarp::dev::IControlLimits
virtual ~IControlLimits ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementPositionDirect
 ImplementPositionDirect (yarp::dev::IPositionDirectRaw *y)
 Constructor.
 
virtual ~ImplementPositionDirect ()
 Destructor.
 
yarp::dev::ReturnValue getAxes (size_t &axes) override
 Get the number of controlled axes.
 
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.
 
- Public Member Functions inherited from yarp::dev::IPositionDirect
virtual ~IPositionDirect ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementInteractionMode
 ImplementInteractionMode (yarp::dev::IInteractionModeRaw *Class_p)
 Constructor.
 
virtual ~ImplementInteractionMode ()
 Destructor.
 
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< InteractionModeEnum > &modes) override
 Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
 
- Public Member Functions inherited from yarp::dev::IInteractionMode
virtual ~IInteractionMode ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementCurrentControl
 ImplementCurrentControl (yarp::dev::ICurrentControlRaw *y)
 
virtual ~ImplementCurrentControl ()
 Destructor.
 
yarp::dev::ReturnValue getNumberOfMotors (int *ax) override
 Retrieves the number of controlled axes from the current physical interface.
 
yarp::dev::ReturnValue getRefCurrent (int j, double *) override
 Get the reference value of the current for a single motor.
 
yarp::dev::ReturnValue getRefCurrents (double *t) override
 Get the reference value of the currents for all motors.
 
yarp::dev::ReturnValue setRefCurrents (const double *t) override
 Set the reference value of the currents for all motors.
 
yarp::dev::ReturnValue setRefCurrent (int j, double t) 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 *t) override
 Set the reference value of the current for a group of motors.
 
yarp::dev::ReturnValue getCurrents (double *t) override
 Get the instantaneous current measurement for all motors.
 
yarp::dev::ReturnValue getCurrent (int j, double *t) override
 Get the instantaneous current measurement for a single motor.
 
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.
 
- Public Member Functions inherited from yarp::dev::ICurrentControl
virtual ~ICurrentControl ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementPWMControl
bool initialize (int k, const int *amap, const double *dutyToPWM)
 
bool uninitialize ()
 
 ImplementPWMControl (IPWMControlRaw *v)
 
 ~ImplementPWMControl ()
 
yarp::dev::ReturnValue getNumberOfMotors (int *ax) override
 Retrieves the number of controlled motors from the current physical interface.
 
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 *v) override
 Gets the last reference sent using the setRefDutyCycle function.
 
yarp::dev::ReturnValue getRefDutyCycles (double *v) override
 Gets the last reference sent using the setRefDutyCycles function.
 
yarp::dev::ReturnValue getDutyCycle (int j, double *v) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
yarp::dev::ReturnValue getDutyCycles (double *v) override
 Gets the current dutycycle of the output of the amplifier (i.e.
 
- Public Member Functions inherited from yarp::dev::IPWMControl
virtual ~IPWMControl ()
 
- Public Member Functions inherited from yarp::dev::ImplementMotor
 ImplementMotor (yarp::dev::IMotorRaw *y)
 
virtual ~ImplementMotor ()
 
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.
 
- Public Member Functions inherited from yarp::dev::IMotor
virtual ~IMotor ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementAxisInfo
 ImplementAxisInfo (yarp::dev::IAxisInfoRaw *y)
 
virtual ~ImplementAxisInfo ()
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue getAxisName (int axis, std::string &name) override
 
yarp::dev::ReturnValue getJointType (int axis, yarp::dev::JointTypeEnum &type) override
 
- Public Member Functions inherited from yarp::dev::IAxisInfo
virtual ~IAxisInfo ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::ImplementVirtualAnalogSensor
bool initialize (int k, const int *amap, const double *userToRaw)
 
bool uninitialize ()
 
 ImplementVirtualAnalogSensor (IVirtualAnalogSensorRaw *virt)
 
 ~ImplementVirtualAnalogSensor ()
 
VAS_status getVirtualAnalogSensorStatus (int ch) override
 Check the status of a given channel.
 
int getVirtualAnalogSensorChannels () override
 Get the number of channels of the virtual sensor.
 
bool updateVirtualAnalogSensorMeasure (yarp::sig::Vector &measure) override
 Set a vector of torque values for virtual sensor.
 
bool updateVirtualAnalogSensorMeasure (int ch, double &measure) override
 
- Public Member Functions inherited from yarp::dev::IVirtualAnalogSensor
virtual ~IVirtualAnalogSensor ()
 

Additional Inherited Members

- Public Attributes inherited from FakeMotionControl_ParamsParser
const std::string m_device_classname = {"FakeMotionControl"}
 
const std::string m_device_name = {"fakeMotionControl"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
std::string m_provided_configuration
 
const std::string m_GENERAL_Joints_defaultValue = {"1"}
 
const std::string m_GENERAL_AxisMap_defaultValue = {""}
 
const std::string m_GENERAL_AxisName_defaultValue = {""}
 
const std::string m_GENERAL_AxisType_defaultValue = {""}
 
const std::string m_GENERAL_ampsToSensor_defaultValue = {""}
 
const std::string m_GENERAL_fullscalePWM_defaultValue = {""}
 
const std::string m_GENERAL_Encoder_defaultValue = {""}
 
const std::string m_LIMITS_Max_defaultValue = {""}
 
const std::string m_LIMITS_Min_defaultValue = {""}
 
int m_GENERAL_Joints = {1}
 
std::vector< int > m_GENERAL_AxisMap = {}
 
std::vector< std::string > m_GENERAL_AxisName = {}
 
std::vector< std::string > m_GENERAL_AxisType = {}
 
std::vector< double > m_GENERAL_ampsToSensor = {}
 
std::vector< double > m_GENERAL_fullscalePWM = {}
 
std::vector< int > m_GENERAL_Encoder = {}
 
std::vector< double > m_LIMITS_Max = {}
 
std::vector< double > m_LIMITS_Min = {}
 
- Protected Member Functions inherited from yarp::os::PeriodicThread
virtual void beforeStart ()
 Called just before a new thread starts.
 
virtual void afterStart (bool success)
 Called just after a new thread starts (or fails to start), this is executed by the same thread that calls start().
 
- Protected Member Functions inherited from yarp::dev::ImplementControlCalibration
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementAmplifierControl
bool initialize (int size, const int *amap, const double *enc, const double *zos, const double *ampereFactor=NULL, const double *voltFactor=NULL)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementPidControl
bool initialize (int size, const int *amap, const double *enc, const double *zos, const double *newtons, const double *amps, const double *dutys)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
bool setConversionUnits (const PidControlTypeEnum &pidtype, const PidFeedbackUnitsEnum fbk_conv_units, const PidOutputUnitsEnum out_conv_units)
 
- Protected Member Functions inherited from yarp::dev::ImplementEncodersTimed
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementPositionControl
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementVelocityControl
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementVelocityDirect
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementImpedanceControl
bool initialize (int size, const int *amap, const double *enc, const double *zos, const double *nw)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementJointBrake
bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementJointFault
bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementMotorEncoders
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementTorqueControl
bool initialize (int size, const int *amap, const double *enc, const double *zos, const double *nw, const double *amps, const double *dutys, const double *bemfs, const double *ktaus)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementControlLimits
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementPositionDirect
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementInteractionMode
bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory, smaller version.
 
bool initialize (int size, const int *amap, const double *enc, const double *zos)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementCurrentControl
bool initialize (int size, const int *amap, const double *ampsToSens)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementMotor
bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Member Functions inherited from yarp::dev::ImplementAxisInfo
bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 
- Protected Attributes inherited from yarp::dev::ImplementControlCalibration
IControlCalibrationRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementAmplifierControl
IAmplifierControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementPidControl
IPidControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< Pid > m_buffer_pids
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementEncodersTimed
IEncodersTimedRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementPositionControl
IPositionControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementVelocityControl
IVelocityControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementVelocityDirect
IVelocityDirectRaw * m_iVelocityDirectRaw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementImpedanceControl
yarp::dev::IImpedanceControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementJointBrake
yarp::dev::IJointBrakeRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementJointFault
yarp::dev::IJointFaultRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::mutex m_imp_mutex
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
- Protected Attributes inherited from yarp::dev::ImplementMotorEncoders
IMotorEncodersRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementTorqueControl
yarp::dev::ITorqueControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementControlLimits
IControlLimitsRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementPositionDirect
IPositionDirectRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementInteractionMode
yarp::dev::IInteractionModeRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::mutex m_imp_mutex
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< yarp::dev::InteractionModeEnum > m_buffer_enums
 
- Protected Attributes inherited from yarp::dev::ImplementCurrentControl
yarp::dev::ICurrentControlRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementMotor
yarp::dev::IMotorRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 
- Protected Attributes inherited from yarp::dev::ImplementAxisInfo
IAxisInfoRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 

Detailed Description

fakeMotionControl: The aim of this device is to mimic the expected behavior of a real motion control device to help testing the high level software.

This device is implementing last version of interfaces and it is compatible with controlBoard_nws_yarp device.

Parameters required by this device are shown in class: FakeMotionControl_ParamsParser

WIP - Some interfaces could be not implemented.

Definition at line 87 of file FakeMotionControl.h.

Constructor & Destructor Documentation

◆ FakeMotionControl()

FakeMotionControl::FakeMotionControl ( )

Definition at line 585 of file FakeMotionControl.cpp.

◆ ~FakeMotionControl()

FakeMotionControl::~FakeMotionControl ( )

Definition at line 669 of file FakeMotionControl.cpp.

Member Function Documentation

◆ alloc()

bool FakeMotionControl::alloc ( int  njoints)

Allocated buffers.

Definition at line 300 of file FakeMotionControl.cpp.

◆ calibrateAxisWithParamsRaw()

ReturnValue FakeMotionControl::calibrateAxisWithParamsRaw ( 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::IControlCalibrationRaw.

Definition at line 1851 of file FakeMotionControl.cpp.

◆ calibrationDoneRaw()

ReturnValue FakeMotionControl::calibrationDoneRaw ( int  j)
overridevirtual

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

Non blocking.

Returns
true/false

Implements yarp::dev::IControlCalibrationRaw.

Definition at line 1857 of file FakeMotionControl.cpp.

◆ checkMotionDoneRaw() [1/3]

ReturnValue FakeMotionControl::checkMotionDoneRaw ( bool &  flag)
overridevirtual

Check if the current trajectory all joints is terminated.

Non blocking.

Parameters
flagthe return value ("and" of all joints)
Returns
true/false on network communication (the value you actually want is stored in flag)

Implements yarp::dev::IPositionControlRaw.

Definition at line 1961 of file FakeMotionControl.cpp.

◆ checkMotionDoneRaw() [2/3]

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

Check if the current trajectory is terminated.

Non blocking.

Parameters
jointsthe array of joint numbers
flagtrue if the trajectory is terminated, false otherwise (a single value which is the 'and' of all joints')
Returns
true/false if network communication went well.

Implements yarp::dev::IPositionControlRaw.

Definition at line 2120 of file FakeMotionControl.cpp.

◆ checkMotionDoneRaw() [3/3]

ReturnValue FakeMotionControl::checkMotionDoneRaw ( 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 (the value you actually want is stored in flag)

Implements yarp::dev::IPositionControlRaw.

Definition at line 1951 of file FakeMotionControl.cpp.

◆ close()

bool FakeMotionControl::close ( )
overridevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 945 of file FakeMotionControl.cpp.

◆ disableAmpRaw()

ReturnValue FakeMotionControl::disableAmpRaw ( 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::IAmplifierControlRaw.

Definition at line 2532 of file FakeMotionControl.cpp.

◆ disablePidRaw()

ReturnValue FakeMotionControl::disablePidRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

Disable the PID computation for a joint.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1411 of file FakeMotionControl.cpp.

◆ enableAmpRaw()

ReturnValue FakeMotionControl::enableAmpRaw ( 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::IAmplifierControlRaw.

Definition at line 2527 of file FakeMotionControl.cpp.

◆ enablePidRaw()

ReturnValue FakeMotionControl::enablePidRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

Enable the PID computation for a joint.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1459 of file FakeMotionControl.cpp.

◆ fromConfig()

bool FakeMotionControl::fromConfig ( yarp::os::Searchable &  config)

Definition at line 805 of file FakeMotionControl.cpp.

◆ getAmpStatusRaw() [1/2]

ReturnValue FakeMotionControl::getAmpStatusRaw ( int *  st)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2573 of file FakeMotionControl.cpp.

◆ getAmpStatusRaw() [2/2]

ReturnValue FakeMotionControl::getAmpStatusRaw ( int  j,
int *  st 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2567 of file FakeMotionControl.cpp.

◆ getAutoBrakeEnabledRaw()

ReturnValue FakeMotionControl::getAutoBrakeEnabledRaw ( int  j,
bool &  enabled 
) const
overridevirtual

Implements yarp::dev::IJointBrakeRaw.

Definition at line 3329 of file FakeMotionControl.cpp.

◆ getAvailableControlModesRaw()

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

Implements yarp::dev::IControlModeRaw.

Definition at line 2213 of file FakeMotionControl.cpp.

◆ getAvailablePidsRaw()

ReturnValue FakeMotionControl::getAvailablePidsRaw ( 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::IPidControlRaw.

Definition at line 985 of file FakeMotionControl.cpp.

◆ getAxes()

ReturnValue FakeMotionControl::getAxes ( size_t &  ax)
overridevirtual

Get the number of controlled axes.

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

Returns
the number of controlled axes.

Implements yarp::dev::IEncodersRaw.

Definition at line 1866 of file FakeMotionControl.cpp.

◆ getAxisNameRaw()

ReturnValue FakeMotionControl::getAxisNameRaw ( int  axis,
std::string &  name 
)
overridevirtual

Implements yarp::dev::IAxisInfoRaw.

Definition at line 2719 of file FakeMotionControl.cpp.

◆ getControlModeRaw()

ReturnValue FakeMotionControl::getControlModeRaw ( int  j,
yarp::dev::ControlModeEnum &  mode 
)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2223 of file FakeMotionControl.cpp.

◆ getControlModesRaw() [1/2]

ReturnValue FakeMotionControl::getControlModesRaw ( const std::vector< int > &  joints,
std::vector< yarp::dev::ControlModeEnum > &  modes 
)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2244 of file FakeMotionControl.cpp.

◆ getControlModesRaw() [2/2]

ReturnValue FakeMotionControl::getControlModesRaw ( std::vector< yarp::dev::ControlModeEnum > &  mode)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2234 of file FakeMotionControl.cpp.

◆ getCurrentImpedanceLimitRaw()

ReturnValue FakeMotionControl::getCurrentImpedanceLimitRaw ( 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::IImpedanceControlRaw.

Definition at line 2864 of file FakeMotionControl.cpp.

◆ getCurrentRangeRaw()

ReturnValue FakeMotionControl::getCurrentRangeRaw ( 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::ICurrentControlRaw.

Definition at line 3216 of file FakeMotionControl.cpp.

◆ getCurrentRangesRaw()

ReturnValue FakeMotionControl::getCurrentRangesRaw ( 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::ICurrentControlRaw.

Definition at line 3224 of file FakeMotionControl.cpp.

◆ getCurrentRaw()

ReturnValue FakeMotionControl::getCurrentRaw ( int  j,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2537 of file FakeMotionControl.cpp.

◆ getCurrentsRaw()

ReturnValue FakeMotionControl::getCurrentsRaw ( double *  vals)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2544 of file FakeMotionControl.cpp.

◆ getDutyCycleRaw()

ReturnValue FakeMotionControl::getDutyCycleRaw ( 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::IPWMControlRaw.

Definition at line 3189 of file FakeMotionControl.cpp.

◆ getDutyCyclesRaw()

ReturnValue FakeMotionControl::getDutyCyclesRaw ( 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::IPWMControlRaw.

Definition at line 3195 of file FakeMotionControl.cpp.

◆ getEncoderAccelerationRaw()

ReturnValue FakeMotionControl::getEncoderAccelerationRaw ( 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::IEncodersRaw.

Definition at line 2374 of file FakeMotionControl.cpp.

◆ getEncoderAccelerationsRaw()

ReturnValue FakeMotionControl::getEncoderAccelerationsRaw ( 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::IEncodersRaw.

Definition at line 2382 of file FakeMotionControl.cpp.

◆ getEncoderRaw()

ReturnValue FakeMotionControl::getEncoderRaw ( 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::IEncodersRaw.

Definition at line 2334 of file FakeMotionControl.cpp.

◆ getEncoderSpeedRaw()

ReturnValue FakeMotionControl::getEncoderSpeedRaw ( int  j,
double *  sp 
)
overridevirtual

Read the instantaneous speed of an axis.

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

Implements yarp::dev::IEncodersRaw.

Definition at line 2357 of file FakeMotionControl.cpp.

◆ getEncoderSpeedsRaw()

ReturnValue FakeMotionControl::getEncoderSpeedsRaw ( double *  spds)
overridevirtual

Read the instantaneous acceleration of an axis.

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

Implements yarp::dev::IEncodersRaw.

Definition at line 2364 of file FakeMotionControl.cpp.

◆ getEncodersRaw()

ReturnValue FakeMotionControl::getEncodersRaw ( 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::IEncodersRaw.

Definition at line 2345 of file FakeMotionControl.cpp.

◆ getEncodersTimedRaw()

ReturnValue FakeMotionControl::getEncodersTimedRaw ( double *  encs,
double *  stamps 
)
overridevirtual

Read the instantaneous acceleration of all axes.

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

Implements yarp::dev::IEncodersTimedRaw.

Definition at line 2394 of file FakeMotionControl.cpp.

◆ getEncoderTimedRaw()

ReturnValue FakeMotionControl::getEncoderTimedRaw ( int  j,
double *  encs,
double *  stamp 
)
overridevirtual

Read the instantaneous acceleration of all axes.

Parameters
jaxis index
encsencoder value
stampcorresponding timestamp
Returns
true if all goes well, false if anything bad happens.

Implements yarp::dev::IEncodersTimedRaw.

Definition at line 2405 of file FakeMotionControl.cpp.

◆ getGearboxRatioRaw()

ReturnValue FakeMotionControl::getGearboxRatioRaw ( 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::IMotorRaw.

Definition at line 2647 of file FakeMotionControl.cpp.

◆ getHasHallSensorRaw()

bool FakeMotionControl::getHasHallSensorRaw ( int  j,
int &  ret 
)
virtual

Definition at line 2694 of file FakeMotionControl.cpp.

◆ getHasRotorEncoderIndexRaw()

bool FakeMotionControl::getHasRotorEncoderIndexRaw ( int  j,
int &  ret 
)
virtual

Definition at line 2704 of file FakeMotionControl.cpp.

◆ getHasRotorEncoderRaw()

bool FakeMotionControl::getHasRotorEncoderRaw ( int  j,
int &  ret 
)
virtual

Definition at line 2699 of file FakeMotionControl.cpp.

◆ getHasTempSensorsRaw()

bool FakeMotionControl::getHasTempSensorsRaw ( int  j,
int &  ret 
)
virtual

Definition at line 2689 of file FakeMotionControl.cpp.

◆ getImpedanceOffsetRaw()

ReturnValue FakeMotionControl::getImpedanceOffsetRaw ( int  j,
double *  offset 
)
overridevirtual

Get current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControlRaw.

Definition at line 2856 of file FakeMotionControl.cpp.

◆ getImpedanceRaw()

ReturnValue FakeMotionControl::getImpedanceRaw ( int  j,
double *  stiffness,
double *  damping 
)
overridevirtual

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

Returns
success/failure

Implements yarp::dev::IImpedanceControlRaw.

Definition at line 2830 of file FakeMotionControl.cpp.

◆ getInteractionModeRaw()

ReturnValue FakeMotionControl::getInteractionModeRaw ( 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::IInteractionModeRaw.

Definition at line 3060 of file FakeMotionControl.cpp.

◆ getInteractionModesRaw() [1/2]

ReturnValue FakeMotionControl::getInteractionModesRaw ( 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::IInteractionModeRaw.

Definition at line 3069 of file FakeMotionControl.cpp.

◆ getInteractionModesRaw() [2/2]

ReturnValue FakeMotionControl::getInteractionModesRaw ( 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::IInteractionModeRaw.

Definition at line 3080 of file FakeMotionControl.cpp.

◆ getJointEncoderResolutionRaw()

bool FakeMotionControl::getJointEncoderResolutionRaw ( int  m,
double &  jntres 
)
virtual

Definition at line 2669 of file FakeMotionControl.cpp.

◆ getJointEncoderTypeRaw()

bool FakeMotionControl::getJointEncoderTypeRaw ( int  j,
int &  type 
)
virtual

Definition at line 2674 of file FakeMotionControl.cpp.

◆ getJointTypeRaw()

ReturnValue FakeMotionControl::getJointTypeRaw ( int  axis,
yarp::dev::JointTypeEnum &  type 
)
overridevirtual

Reimplemented from yarp::dev::IAxisInfoRaw.

Definition at line 2725 of file FakeMotionControl.cpp.

◆ getKinematicMJRaw()

bool FakeMotionControl::getKinematicMJRaw ( int  j,
double &  rotres 
)
virtual

Definition at line 2684 of file FakeMotionControl.cpp.

◆ getLastJointFaultRaw()

ReturnValue FakeMotionControl::getLastJointFaultRaw ( int  j,
int &  fault,
std::string &  message 
)
overridevirtual

Implements yarp::dev::IJointFaultRaw.

Definition at line 3302 of file FakeMotionControl.cpp.

◆ getMaxCurrentRaw()

ReturnValue FakeMotionControl::getMaxCurrentRaw ( 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::IAmplifierControlRaw.

Definition at line 2561 of file FakeMotionControl.cpp.

◆ getMotorEncoderAccelerationRaw()

ReturnValue FakeMotionControl::getMotorEncoderAccelerationRaw ( int  m,
double *  spds 
)
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::IMotorEncodersRaw.

Definition at line 2486 of file FakeMotionControl.cpp.

◆ getMotorEncoderAccelerationsRaw()

ReturnValue FakeMotionControl::getMotorEncoderAccelerationsRaw ( 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::IMotorEncodersRaw.

Definition at line 2492 of file FakeMotionControl.cpp.

◆ getMotorEncoderCountsPerRevolutionRaw()

ReturnValue FakeMotionControl::getMotorEncoderCountsPerRevolutionRaw ( 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::IMotorEncodersRaw.

Definition at line 2438 of file FakeMotionControl.cpp.

◆ getMotorEncoderRaw()

ReturnValue FakeMotionControl::getMotorEncoderRaw ( 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::IMotorEncodersRaw.

Definition at line 2453 of file FakeMotionControl.cpp.

◆ getMotorEncoderSpeedRaw()

ReturnValue FakeMotionControl::getMotorEncoderSpeedRaw ( 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::IMotorEncodersRaw.

Definition at line 2470 of file FakeMotionControl.cpp.

◆ getMotorEncoderSpeedsRaw()

ReturnValue FakeMotionControl::getMotorEncoderSpeedsRaw ( 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::IMotorEncodersRaw.

Definition at line 2476 of file FakeMotionControl.cpp.

◆ getMotorEncodersRaw()

ReturnValue FakeMotionControl::getMotorEncodersRaw ( 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::IMotorEncodersRaw.

Definition at line 2459 of file FakeMotionControl.cpp.

◆ getMotorEncodersTimedRaw()

ReturnValue FakeMotionControl::getMotorEncodersTimedRaw ( double *  encs,
double *  stamps 
)
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::IMotorEncodersRaw.

Definition at line 2502 of file FakeMotionControl.cpp.

◆ getMotorEncoderTimedRaw()

ReturnValue FakeMotionControl::getMotorEncoderTimedRaw ( int  m,
double *  encs,
double *  stamp 
)
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::IMotorEncodersRaw.

Definition at line 2514 of file FakeMotionControl.cpp.

◆ getMotorPolesRaw()

bool FakeMotionControl::getMotorPolesRaw ( int  j,
int &  poles 
)
virtual

Definition at line 2709 of file FakeMotionControl.cpp.

◆ getMotorTorqueParamsRaw()

ReturnValue FakeMotionControl::getMotorTorqueParamsRaw ( int  j,
yarp::dev::MotorTorqueParameters *  params 
)
overridevirtual

Get the motor parameters.

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

Implements yarp::dev::ITorqueControlRaw.

Definition at line 2873 of file FakeMotionControl.cpp.

◆ getNominalCurrentRaw()

ReturnValue FakeMotionControl::getNominalCurrentRaw ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2595 of file FakeMotionControl.cpp.

◆ getNumberOfMotorEncodersRaw()

ReturnValue FakeMotionControl::getNumberOfMotorEncodersRaw ( 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::IMotorEncodersRaw.

Definition at line 2417 of file FakeMotionControl.cpp.

◆ getNumberOfMotorsRaw()

ReturnValue FakeMotionControl::getNumberOfMotorsRaw ( int *  num)
overridevirtual

Get the number of available motors.

Parameters
numretrieved number of available motors
Returns
true/false

Implements yarp::dev::IMotorRaw.

Definition at line 3122 of file FakeMotionControl.cpp.

◆ getPeakCurrentRaw()

ReturnValue FakeMotionControl::getPeakCurrentRaw ( int  m,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2583 of file FakeMotionControl.cpp.

◆ getPidErrorLimitRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1348 of file FakeMotionControl.cpp.

◆ getPidErrorLimitsRaw()

ReturnValue FakeMotionControl::getPidErrorLimitsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  limits 
)
overridevirtual

Get the error limit for all controllers.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1396 of file FakeMotionControl.cpp.

◆ getPidErrorRaw()

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

Get the current error for a joint.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1170 of file FakeMotionControl.cpp.

◆ getPidErrorsRaw()

ReturnValue FakeMotionControl::getPidErrorsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  errs 
)
overridevirtual

Get the error of all joints.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1217 of file FakeMotionControl.cpp.

◆ getPidExtraInfoRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 3416 of file FakeMotionControl.cpp.

◆ getPidExtraInfosRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 3469 of file FakeMotionControl.cpp.

◆ getPidFeedforwardRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1654 of file FakeMotionControl.cpp.

◆ getPidOffsetRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1556 of file FakeMotionControl.cpp.

◆ getPidOutputRaw()

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

Get the output of the controller (e.g.

pwm value)

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1751 of file FakeMotionControl.cpp.

◆ getPidOutputsRaw()

ReturnValue FakeMotionControl::getPidOutputsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  outs 
)
overridevirtual

Get the output of the controllers (e.g.

pwm value)

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1800 of file FakeMotionControl.cpp.

◆ getPidRaw()

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

Get current PID value for a specific joint.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1227 of file FakeMotionControl.cpp.

◆ getPidReferenceRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1287 of file FakeMotionControl.cpp.

◆ getPidReferencesRaw()

ReturnValue FakeMotionControl::getPidReferencesRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
double *  refs 
)
overridevirtual

Get the current reference of all PID controllers.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1335 of file FakeMotionControl.cpp.

◆ getPidsRaw()

ReturnValue FakeMotionControl::getPidsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
yarp::dev::Pid *  pids 
)
overridevirtual

Get current PID value for a specific joint.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1276 of file FakeMotionControl.cpp.

◆ getPosLimitsRaw()

ReturnValue FakeMotionControl::getPosLimitsRaw ( 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::IControlLimitsRaw.

Definition at line 2640 of file FakeMotionControl.cpp.

◆ getPowerSupplyVoltageRaw()

ReturnValue FakeMotionControl::getPowerSupplyVoltageRaw ( int  j,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2625 of file FakeMotionControl.cpp.

◆ getPWMLimitRaw()

ReturnValue FakeMotionControl::getPWMLimitRaw ( int  j,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2613 of file FakeMotionControl.cpp.

◆ getPWMRaw()

ReturnValue FakeMotionControl::getPWMRaw ( int  j,
double *  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2607 of file FakeMotionControl.cpp.

◆ getRefCurrentRaw()

ReturnValue FakeMotionControl::getRefCurrentRaw ( 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
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControlRaw.

Definition at line 3271 of file FakeMotionControl.cpp.

◆ getRefCurrentsRaw()

ReturnValue FakeMotionControl::getRefCurrentsRaw ( 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.
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControlRaw.

Definition at line 3262 of file FakeMotionControl.cpp.

◆ getRefDutyCycleRaw()

ReturnValue FakeMotionControl::getRefDutyCycleRaw ( int  m,
double *  ref 
)
overridevirtual

Gets the last reference sent using the setRefDutyCycleRaw function.

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

Implements yarp::dev::IPWMControlRaw.

Definition at line 3174 of file FakeMotionControl.cpp.

◆ getRefDutyCyclesRaw()

ReturnValue FakeMotionControl::getRefDutyCyclesRaw ( double *  refs)
overridevirtual

Gets the last reference sent using the setRefDutyCyclesRaw 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::IPWMControlRaw.

Definition at line 3180 of file FakeMotionControl.cpp.

◆ getRefPositionRaw()

ReturnValue FakeMotionControl::getRefPositionRaw ( 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::IPositionDirectRaw.

Definition at line 3020 of file FakeMotionControl.cpp.

◆ getRefPositionsRaw() [1/2]

ReturnValue FakeMotionControl::getRefPositionsRaw ( 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::IPositionDirectRaw.

Definition at line 3048 of file FakeMotionControl.cpp.

◆ getRefPositionsRaw() [2/2]

ReturnValue FakeMotionControl::getRefPositionsRaw ( 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::IPositionDirectRaw.

Definition at line 3038 of file FakeMotionControl.cpp.

◆ getRefTorqueRaw()

ReturnValue FakeMotionControl::getRefTorqueRaw ( int  j,
double *  t 
)
overridevirtual

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

This is NOT the feedback (see getTorque instead).

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

Implements yarp::dev::ITorqueControlRaw.

Definition at line 2822 of file FakeMotionControl.cpp.

◆ getRefTorquesRaw()

ReturnValue FakeMotionControl::getRefTorquesRaw ( 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::ITorqueControlRaw.

Definition at line 2813 of file FakeMotionControl.cpp.

◆ getRefVelocityRaw() [1/3]

ReturnValue FakeMotionControl::getRefVelocityRaw ( 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::IVelocityDirectRaw.

Definition at line 3376 of file FakeMotionControl.cpp.

◆ getRefVelocityRaw() [2/3]

ReturnValue FakeMotionControl::getRefVelocityRaw ( 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::IVelocityDirectRaw.

Definition at line 3400 of file FakeMotionControl.cpp.

◆ getRefVelocityRaw() [3/3]

ReturnValue FakeMotionControl::getRefVelocityRaw ( 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::IVelocityDirectRaw.

Definition at line 3389 of file FakeMotionControl.cpp.

◆ getRotorEncoderResolutionRaw()

bool FakeMotionControl::getRotorEncoderResolutionRaw ( int  m,
double &  rotres 
)
virtual

Definition at line 2664 of file FakeMotionControl.cpp.

◆ getRotorEncoderTypeRaw()

bool FakeMotionControl::getRotorEncoderTypeRaw ( int  j,
int &  type 
)
virtual

Definition at line 2679 of file FakeMotionControl.cpp.

◆ getRotorIndexOffsetRaw()

bool FakeMotionControl::getRotorIndexOffsetRaw ( int  j,
double &  rotorOffset 
)
virtual

Definition at line 2714 of file FakeMotionControl.cpp.

◆ getTargetPositionRaw()

ReturnValue FakeMotionControl::getTargetPositionRaw ( 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::IPositionControlRaw.

Definition at line 2956 of file FakeMotionControl.cpp.

◆ getTargetPositionsRaw() [1/2]

ReturnValue FakeMotionControl::getTargetPositionsRaw ( 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::IPositionControlRaw.

Definition at line 2984 of file FakeMotionControl.cpp.

◆ getTargetPositionsRaw() [2/2]

ReturnValue FakeMotionControl::getTargetPositionsRaw ( 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::IPositionControlRaw.

Definition at line 2975 of file FakeMotionControl.cpp.

◆ getTargetVelocitiesRaw() [1/2]

ReturnValue FakeMotionControl::getTargetVelocitiesRaw ( 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::IVelocityControlRaw.

Definition at line 3010 of file FakeMotionControl.cpp.

◆ getTargetVelocitiesRaw() [2/2]

ReturnValue FakeMotionControl::getTargetVelocitiesRaw ( 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::IVelocityControlRaw.

Definition at line 3000 of file FakeMotionControl.cpp.

◆ getTargetVelocityRaw()

ReturnValue FakeMotionControl::getTargetVelocityRaw ( 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::IVelocityControlRaw.

Definition at line 2994 of file FakeMotionControl.cpp.

◆ getTemperatureLimitRaw()

ReturnValue FakeMotionControl::getTemperatureLimitRaw ( 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::IMotorRaw.

Definition at line 3144 of file FakeMotionControl.cpp.

◆ getTemperatureRaw()

ReturnValue FakeMotionControl::getTemperatureRaw ( int  m,
double *  val 
)
overridevirtual

Get temperature of a motor.

Parameters
mmotor number
valretrieved motor temperature
Returns
true/false

Implements yarp::dev::IMotorRaw.

Definition at line 3128 of file FakeMotionControl.cpp.

◆ getTemperaturesRaw()

ReturnValue FakeMotionControl::getTemperaturesRaw ( double *  vals)
overridevirtual

Get temperature of all the motors.

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

Implements yarp::dev::IMotorRaw.

Definition at line 3134 of file FakeMotionControl.cpp.

◆ getTorqueControlFilterType()

bool FakeMotionControl::getTorqueControlFilterType ( int  j,
int &  type 
)
virtual

Definition at line 2659 of file FakeMotionControl.cpp.

◆ getTorqueRangeRaw()

ReturnValue FakeMotionControl::getTorqueRangeRaw ( 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::ITorqueControlRaw.

Definition at line 2763 of file FakeMotionControl.cpp.

◆ getTorqueRangesRaw()

ReturnValue FakeMotionControl::getTorqueRangesRaw ( 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::ITorqueControlRaw.

Definition at line 2770 of file FakeMotionControl.cpp.

◆ getTorqueRaw()

ReturnValue FakeMotionControl::getTorqueRaw ( 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
Returns
torque value
true/false on success/failure

Implements yarp::dev::ITorqueControlRaw.

Definition at line 2748 of file FakeMotionControl.cpp.

◆ getTorquesRaw()

ReturnValue FakeMotionControl::getTorquesRaw ( 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::ITorqueControlRaw.

Definition at line 2754 of file FakeMotionControl.cpp.

◆ getTrajAccelerationRaw()

ReturnValue FakeMotionControl::getTrajAccelerationRaw ( 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::IPositionControlRaw.

Definition at line 2054 of file FakeMotionControl.cpp.

◆ getTrajAccelerationsRaw() [1/2]

ReturnValue FakeMotionControl::getTrajAccelerationsRaw ( 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::IPositionControlRaw.

Definition at line 2181 of file FakeMotionControl.cpp.

◆ getTrajAccelerationsRaw() [2/2]

ReturnValue FakeMotionControl::getTrajAccelerationsRaw ( 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::IPositionControlRaw.

Definition at line 2060 of file FakeMotionControl.cpp.

◆ getTrajSpeedRaw()

ReturnValue FakeMotionControl::getTrajSpeedRaw ( 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::IPositionControlRaw.

Definition at line 2042 of file FakeMotionControl.cpp.

◆ getTrajSpeedsRaw() [1/2]

ReturnValue FakeMotionControl::getTrajSpeedsRaw ( 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::IPositionControlRaw.

Definition at line 2167 of file FakeMotionControl.cpp.

◆ getTrajSpeedsRaw() [2/2]

ReturnValue FakeMotionControl::getTrajSpeedsRaw ( 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::IPositionControlRaw.

Definition at line 2048 of file FakeMotionControl.cpp.

◆ getVelLimitsRaw()

ReturnValue FakeMotionControl::getVelLimitsRaw ( 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::IControlLimitsRaw.

Definition at line 2739 of file FakeMotionControl.cpp.

◆ getVirtualAnalogSensorChannelsRaw()

int FakeMotionControl::getVirtualAnalogSensorChannelsRaw ( )
overridevirtual

Get the number of channels of the virtual sensor.

Returns
number of channels (0 in case of errors).

Implements yarp::dev::IVirtualAnalogSensorRaw.

Definition at line 3282 of file FakeMotionControl.cpp.

◆ getVirtualAnalogSensorStatusRaw()

yarp::dev::VAS_status FakeMotionControl::getVirtualAnalogSensorStatusRaw ( int  ch)
overridevirtual

Check the status of a given channel.

Parameters
chchannel number.
Returns
VAS_status type.

Implements yarp::dev::IVirtualAnalogSensorRaw.

Definition at line 3277 of file FakeMotionControl.cpp.

◆ initialised()

bool FakeMotionControl::initialised ( )
virtual

Definition at line 675 of file FakeMotionControl.cpp.

◆ isJointBrakedRaw()

ReturnValue FakeMotionControl::isJointBrakedRaw ( int  j,
bool &  braked 
) const
overridevirtual

Implements yarp::dev::IJointBrakeRaw.

Definition at line 3311 of file FakeMotionControl.cpp.

◆ isPidEnabledRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1703 of file FakeMotionControl.cpp.

◆ open()

bool FakeMotionControl::open ( yarp::os::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 706 of file FakeMotionControl.cpp.

◆ positionMoveRaw() [1/3]

ReturnValue FakeMotionControl::positionMoveRaw ( 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::IPositionControlRaw.

Definition at line 1898 of file FakeMotionControl.cpp.

◆ positionMoveRaw() [2/3]

ReturnValue FakeMotionControl::positionMoveRaw ( 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 specifies the new reference points
Returns
true/false on success/failure

Implements yarp::dev::IPositionControlRaw.

Definition at line 2087 of file FakeMotionControl.cpp.

◆ positionMoveRaw() [3/3]

ReturnValue FakeMotionControl::positionMoveRaw ( 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::IPositionControlRaw.

Definition at line 1873 of file FakeMotionControl.cpp.

◆ relativeMoveRaw() [1/3]

ReturnValue FakeMotionControl::relativeMoveRaw ( const double *  deltas)
overridevirtual

Set relative position, all joints.

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

Implements yarp::dev::IPositionControlRaw.

Definition at line 1936 of file FakeMotionControl.cpp.

◆ relativeMoveRaw() [2/3]

ReturnValue FakeMotionControl::relativeMoveRaw ( 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::IPositionControlRaw.

Definition at line 2106 of file FakeMotionControl.cpp.

◆ relativeMoveRaw() [3/3]

ReturnValue FakeMotionControl::relativeMoveRaw ( 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::IPositionControlRaw.

Definition at line 1912 of file FakeMotionControl.cpp.

◆ resetEncoderRaw()

ReturnValue FakeMotionControl::resetEncoderRaw ( int  j)
overridevirtual

Reset encoder, single joint.

Set the encoder value to zero

Parameters
jencoder number
Returns
true/false

Implements yarp::dev::IEncodersRaw.

Definition at line 2319 of file FakeMotionControl.cpp.

◆ resetEncodersRaw()

ReturnValue FakeMotionControl::resetEncodersRaw ( )
overridevirtual

Reset encoders.

Set the encoders value to zero

Returns
true/false

Implements yarp::dev::IEncodersRaw.

Definition at line 2325 of file FakeMotionControl.cpp.

◆ resetMotorEncoderRaw()

ReturnValue FakeMotionControl::resetMotorEncoderRaw ( int  m)
overridevirtual

Reset motor encoder, single motor.

Set the encoder value to zero.

Parameters
mmotor number
Returns
true/false

Implements yarp::dev::IMotorEncodersRaw.

Definition at line 2443 of file FakeMotionControl.cpp.

◆ resetMotorEncodersRaw()

ReturnValue FakeMotionControl::resetMotorEncodersRaw ( )
overridevirtual

Reset motor encoders.

Set the motor encoders value to zero.

Returns
true/false

Implements yarp::dev::IMotorEncodersRaw.

Definition at line 2448 of file FakeMotionControl.cpp.

◆ resetPidRaw()

ReturnValue FakeMotionControl::resetPidRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
int  j 
)
overridevirtual

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1406 of file FakeMotionControl.cpp.

◆ resizeBuffers()

void FakeMotionControl::resizeBuffers ( )

Resize previously allocated buffers.

Definition at line 154 of file FakeMotionControl.cpp.

◆ run()

void FakeMotionControl::run ( )
overridevirtual

Loop function.

This is the thread itself. The thread calls the run() function every <period> ms. At the end of each run, the thread will sleep the amounth of time required, taking into account the time spent inside the loop function. Example: requested period is 10ms, the run() function take 3ms to be executed, the thread will sleep for 7ms.

Note: after each run is completed, the thread will call a yield() in order to facilitate other threads to run.

Implements yarp::os::PeriodicThread.

Definition at line 34 of file FakeMotionControl.cpp.

◆ setAutoBrakeEnabledRaw()

ReturnValue FakeMotionControl::setAutoBrakeEnabledRaw ( int  j,
bool  enabled 
)
overridevirtual

Implements yarp::dev::IJointBrakeRaw.

Definition at line 3323 of file FakeMotionControl.cpp.

◆ setCalibrationParametersRaw()

ReturnValue FakeMotionControl::setCalibrationParametersRaw ( int  axis,
const yarp::dev::CalibrationParameters &  params 
)
overridevirtual

Start calibration, this method is very often platform specific.

Returns
true/false on success failure

Implements yarp::dev::IControlCalibrationRaw.

Definition at line 1845 of file FakeMotionControl.cpp.

◆ setControlModeRaw()

ReturnValue FakeMotionControl::setControlModeRaw ( int  j,
yarp::dev::SelectableControlModeEnum  mode 
)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2254 of file FakeMotionControl.cpp.

◆ setControlModesRaw() [1/2]

ReturnValue FakeMotionControl::setControlModesRaw ( const std::vector< int > &  joints,
const std::vector< yarp::dev::SelectableControlModeEnum > &  modes 
)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2273 of file FakeMotionControl.cpp.

◆ setControlModesRaw() [2/2]

ReturnValue FakeMotionControl::setControlModesRaw ( const std::vector< yarp::dev::SelectableControlModeEnum > &  mode)
overridevirtual

Implements yarp::dev::IControlModeRaw.

Definition at line 2287 of file FakeMotionControl.cpp.

◆ setEncoderRaw()

ReturnValue FakeMotionControl::setEncoderRaw ( 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::IEncodersRaw.

Definition at line 2304 of file FakeMotionControl.cpp.

◆ setEncodersRaw()

ReturnValue FakeMotionControl::setEncodersRaw ( const double *  vals)
overridevirtual

Set the value of all encoders.

Parameters
valspointer to the new values
Returns
true/false

Implements yarp::dev::IEncodersRaw.

Definition at line 2310 of file FakeMotionControl.cpp.

◆ setGearboxRatioRaw()

ReturnValue FakeMotionControl::setGearboxRatioRaw ( 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::IMotorRaw.

Definition at line 2653 of file FakeMotionControl.cpp.

◆ setImpedanceOffsetRaw()

ReturnValue FakeMotionControl::setImpedanceOffsetRaw ( int  j,
double  offset 
)
overridevirtual

Set current force Offset for a specific joint.

Returns
success/failure

Implements yarp::dev::IImpedanceControlRaw.

Definition at line 2848 of file FakeMotionControl.cpp.

◆ setImpedanceRaw()

ReturnValue FakeMotionControl::setImpedanceRaw ( int  j,
double  stiffness,
double  damping 
)
overridevirtual

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

Returns
success/failure

Implements yarp::dev::IImpedanceControlRaw.

Definition at line 2839 of file FakeMotionControl.cpp.

◆ setInteractionModeRaw()

ReturnValue FakeMotionControl::setInteractionModeRaw ( 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::IInteractionModeRaw.

Definition at line 3089 of file FakeMotionControl.cpp.

◆ setInteractionModesRaw() [1/2]

ReturnValue FakeMotionControl::setInteractionModesRaw ( 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::IInteractionModeRaw.

Definition at line 3101 of file FakeMotionControl.cpp.

◆ setInteractionModesRaw() [2/2]

ReturnValue FakeMotionControl::setInteractionModesRaw ( 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::IInteractionModeRaw.

Definition at line 3111 of file FakeMotionControl.cpp.

◆ setManualBrakeActiveRaw()

ReturnValue FakeMotionControl::setManualBrakeActiveRaw ( int  j,
bool  active 
)
overridevirtual

Implements yarp::dev::IJointBrakeRaw.

Definition at line 3317 of file FakeMotionControl.cpp.

◆ setMaxCurrentRaw()

ReturnValue FakeMotionControl::setMaxCurrentRaw ( int  j,
double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2555 of file FakeMotionControl.cpp.

◆ setMotorEncoderCountsPerRevolutionRaw()

ReturnValue FakeMotionControl::setMotorEncoderCountsPerRevolutionRaw ( 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::IMotorEncodersRaw.

Definition at line 2433 of file FakeMotionControl.cpp.

◆ setMotorEncoderRaw()

ReturnValue FakeMotionControl::setMotorEncoderRaw ( 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::IMotorEncodersRaw.

Definition at line 2423 of file FakeMotionControl.cpp.

◆ setMotorEncodersRaw()

ReturnValue FakeMotionControl::setMotorEncodersRaw ( const double *  vals)
overridevirtual

Set the value of all motor encoders.

Parameters
valspointer to the new values
Returns
true/false

Implements yarp::dev::IMotorEncodersRaw.

Definition at line 2428 of file FakeMotionControl.cpp.

◆ setMotorTorqueParamsRaw()

ReturnValue FakeMotionControl::setMotorTorqueParamsRaw ( int  j,
const yarp::dev::MotorTorqueParameters  params 
)
overridevirtual

Set the motor parameters.

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

Implements yarp::dev::ITorqueControlRaw.

Definition at line 2896 of file FakeMotionControl.cpp.

◆ setNominalCurrentRaw()

ReturnValue FakeMotionControl::setNominalCurrentRaw ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2601 of file FakeMotionControl.cpp.

◆ setPeakCurrentRaw()

ReturnValue FakeMotionControl::setPeakCurrentRaw ( int  m,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2589 of file FakeMotionControl.cpp.

◆ setPidErrorLimitRaw()

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

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1112 of file FakeMotionControl.cpp.

◆ setPidErrorLimitsRaw()

ReturnValue FakeMotionControl::setPidErrorLimitsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
const double *  limits 
)
overridevirtual

Get the error limit for the controller on all joints.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1160 of file FakeMotionControl.cpp.

◆ setPidFeedforwardRaw()

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

Set the feedforward value for the specified PID controller.

This value will be multiplied by the PID feedforward gain.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1605 of file FakeMotionControl.cpp.

◆ setPidOffsetRaw()

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

Set an offset value for a given controller.

The value will added to the output of the PID controller

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1507 of file FakeMotionControl.cpp.

◆ setPidRaw()

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

Set new PID value for a joint axis.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 995 of file FakeMotionControl.cpp.

◆ setPidReferenceRaw()

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

Set the controller reference for a given axis.

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1054 of file FakeMotionControl.cpp.

◆ setPidReferencesRaw()

ReturnValue FakeMotionControl::setPidReferencesRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
const double *  refs 
)
overridevirtual

Set the controller reference, multiple axes.

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

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1102 of file FakeMotionControl.cpp.

◆ setPidsRaw()

ReturnValue FakeMotionControl::setPidsRaw ( const yarp::dev::PidControlTypeEnum &  pidtype,
const yarp::dev::Pid *  pids 
)
overridevirtual

Set new PID value on multiple axes.

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

Implements yarp::dev::IPidControlRaw.

Definition at line 1044 of file FakeMotionControl.cpp.

◆ setPositionRaw()

ReturnValue FakeMotionControl::setPositionRaw ( 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::IPositionDirectRaw.

Definition at line 2931 of file FakeMotionControl.cpp.

◆ setPositionsRaw() [1/2]

ReturnValue FakeMotionControl::setPositionsRaw ( const double *  refs)
overridevirtual

Set new position for a set of axes.

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

Implements yarp::dev::IPositionDirectRaw.

Definition at line 2946 of file FakeMotionControl.cpp.

◆ setPositionsRaw() [2/2]

ReturnValue FakeMotionControl::setPositionsRaw ( 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::IPositionDirectRaw.

Definition at line 2937 of file FakeMotionControl.cpp.

◆ setPosLimitsRaw()

ReturnValue FakeMotionControl::setPosLimitsRaw ( 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::IControlLimitsRaw.

Definition at line 2633 of file FakeMotionControl.cpp.

◆ setPWMLimitRaw()

ReturnValue FakeMotionControl::setPWMLimitRaw ( int  j,
const double  val 
)
overridevirtual

Implements yarp::dev::IAmplifierControlRaw.

Definition at line 2619 of file FakeMotionControl.cpp.

◆ setRefCurrentRaw()

ReturnValue FakeMotionControl::setRefCurrentRaw ( 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
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControlRaw.

Definition at line 3245 of file FakeMotionControl.cpp.

◆ setRefCurrentsRaw() [1/2]

ReturnValue FakeMotionControl::setRefCurrentsRaw ( const double *  currs)
overridevirtual

Set the reference value of the currents for all motors.

Parameters
currsthe array containt the reference current values
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControlRaw.

Definition at line 3235 of file FakeMotionControl.cpp.

◆ setRefCurrentsRaw() [2/2]

ReturnValue FakeMotionControl::setRefCurrentsRaw ( 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 of motor numbers
refspointer to the array specifying the new current reference
Returns
true/false on success/failure

Implements yarp::dev::ICurrentControlRaw.

Definition at line 3252 of file FakeMotionControl.cpp.

◆ setRefDutyCycleRaw()

ReturnValue FakeMotionControl::setRefDutyCycleRaw ( int  m,
double  ref 
)
overridevirtual

Sets the reference dutycycle of a single motor.

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

Implements yarp::dev::IPWMControlRaw.

Definition at line 3157 of file FakeMotionControl.cpp.

◆ setRefDutyCyclesRaw()

ReturnValue FakeMotionControl::setRefDutyCyclesRaw ( const double *  refs)
overridevirtual

Sets the reference dutycycle for all motors.

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

Implements yarp::dev::IPWMControlRaw.

Definition at line 3165 of file FakeMotionControl.cpp.

◆ setRefTorqueRaw()

ReturnValue FakeMotionControl::setRefTorqueRaw ( 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::ITorqueControlRaw.

Definition at line 2788 of file FakeMotionControl.cpp.

◆ setRefTorquesRaw() [1/2]

ReturnValue FakeMotionControl::setRefTorquesRaw ( 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::ITorqueControlRaw.

Definition at line 2779 of file FakeMotionControl.cpp.

◆ setRefTorquesRaw() [2/2]

ReturnValue FakeMotionControl::setRefTorquesRaw ( 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::ITorqueControlRaw.

Definition at line 2804 of file FakeMotionControl.cpp.

◆ setRefVelocityRaw() [1/3]

ReturnValue FakeMotionControl::setRefVelocityRaw ( 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::IVelocityDirectRaw.

Definition at line 3352 of file FakeMotionControl.cpp.

◆ setRefVelocityRaw() [2/3]

ReturnValue FakeMotionControl::setRefVelocityRaw ( 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::IVelocityDirectRaw.

Definition at line 3362 of file FakeMotionControl.cpp.

◆ setRefVelocityRaw() [3/3]

ReturnValue FakeMotionControl::setRefVelocityRaw ( int  jnt,
double  vel 
)
overridevirtual

Set the velocity of single joint.

Parameters
jntjoint number
velspeed value
Returns
true on success

Implements yarp::dev::IVelocityDirectRaw.

Definition at line 3335 of file FakeMotionControl.cpp.

◆ setTemperatureLimitRaw()

ReturnValue FakeMotionControl::setTemperatureLimitRaw ( 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::IMotorRaw.

Definition at line 3150 of file FakeMotionControl.cpp.

◆ setTrajAccelerationRaw()

ReturnValue FakeMotionControl::setTrajAccelerationRaw ( 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::IPositionControlRaw.

Definition at line 1999 of file FakeMotionControl.cpp.

◆ setTrajAccelerationsRaw() [1/2]

ReturnValue FakeMotionControl::setTrajAccelerationsRaw ( 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::IPositionControlRaw.

Definition at line 2020 of file FakeMotionControl.cpp.

◆ setTrajAccelerationsRaw() [2/2]

ReturnValue FakeMotionControl::setTrajAccelerationsRaw ( 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::IPositionControlRaw.

Definition at line 2153 of file FakeMotionControl.cpp.

◆ setTrajSpeedRaw()

ReturnValue FakeMotionControl::setTrajSpeedRaw ( 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::IPositionControlRaw.

Definition at line 1979 of file FakeMotionControl.cpp.

◆ setTrajSpeedsRaw() [1/2]

ReturnValue FakeMotionControl::setTrajSpeedsRaw ( 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::IPositionControlRaw.

Definition at line 1988 of file FakeMotionControl.cpp.

◆ setTrajSpeedsRaw() [2/2]

ReturnValue FakeMotionControl::setTrajSpeedsRaw ( 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::IPositionControlRaw.

Definition at line 2139 of file FakeMotionControl.cpp.

◆ setVelLimitsRaw()

ReturnValue FakeMotionControl::setVelLimitsRaw ( 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::IControlLimitsRaw.

Definition at line 2732 of file FakeMotionControl.cpp.

◆ stopRaw() [1/3]

ReturnValue FakeMotionControl::stopRaw ( )
overridevirtual

Stop motion, multiple joints.

Returns
true/false on success/failure

Implements yarp::dev::IPositionControlRaw.

Definition at line 2072 of file FakeMotionControl.cpp.

◆ stopRaw() [2/3]

ReturnValue FakeMotionControl::stopRaw ( 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::IPositionControlRaw.

Definition at line 2195 of file FakeMotionControl.cpp.

◆ stopRaw() [3/3]

ReturnValue FakeMotionControl::stopRaw ( int  j)
overridevirtual

Stop motion, single joint.

Parameters
jjoint number
Returns
true/false on success/failure

Implements yarp::dev::IPositionControlRaw.

Definition at line 2066 of file FakeMotionControl.cpp.

◆ threadInit()

bool FakeMotionControl::threadInit ( )
overridevirtual

Initialization method.

The thread executes this function when it starts and before "run". This is a good place to perform initialization tasks that need to be done by the thread itself (device drivers initialization, memory allocation etc). If the function returns false the thread quits and never calls "run". The return value of threadInit() is notified to the class and passed as a parameter to afterStart(). Note that afterStart() is called by the same thread that is executing the "start" method.

Reimplemented from yarp::os::PeriodicThread.

Definition at line 680 of file FakeMotionControl.cpp.

◆ threadRelease()

void FakeMotionControl::threadRelease ( )
overridevirtual

Release method.

The thread executes this function once when it exits, after the last "run". This is a good place to release resources that were initialized in threadInit() (release memory, and device driver resources).

Reimplemented from yarp::os::PeriodicThread.

Definition at line 702 of file FakeMotionControl.cpp.

◆ updateVirtualAnalogSensorMeasureRaw() [1/2]

bool FakeMotionControl::updateVirtualAnalogSensorMeasureRaw ( int  ch,
double &  measure 
)
overridevirtual

Implements yarp::dev::IVirtualAnalogSensorRaw.

Definition at line 3296 of file FakeMotionControl.cpp.

◆ updateVirtualAnalogSensorMeasureRaw() [2/2]

bool FakeMotionControl::updateVirtualAnalogSensorMeasureRaw ( yarp::sig::Vector &  measure)
overridevirtual

Set a vector of torque values for virtual sensor.

Parameters
measurea vector containing the sensor's last readings.
Returns
true if ok, false otherwise.

Implements yarp::dev::IVirtualAnalogSensorRaw.

Definition at line 3287 of file FakeMotionControl.cpp.

◆ velocityMoveRaw() [1/3]

ReturnValue FakeMotionControl::velocityMoveRaw ( 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::IVelocityControlRaw.

Definition at line 1830 of file FakeMotionControl.cpp.

◆ velocityMoveRaw() [2/3]

ReturnValue FakeMotionControl::velocityMoveRaw ( 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
jointspointer to the array of joint numbers
spdspointer to the array containing the new speed values
Returns
true/false upon success/failure

Implements yarp::dev::IVelocityControlRaw.

Definition at line 2920 of file FakeMotionControl.cpp.

◆ velocityMoveRaw() [3/3]

ReturnValue FakeMotionControl::velocityMoveRaw ( 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::IVelocityControlRaw.

Definition at line 1814 of file FakeMotionControl.cpp.


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