iCub-main
|
canbusmotioncontrol
: driver for motor control boards on a CAN bus.
More...
#include <CanBusMotionControl.h>
Public Member Functions | |
CanBusMotionControl () | |
Default constructor. | |
virtual | ~CanBusMotionControl () |
Destructor. | |
virtual bool | open (yarp::os::Searchable &config) |
Open the device driver and start communication with the hardware. | |
bool | open (const CanBusMotionControlParameters &par) |
Open the device driver. | |
virtual bool | close (void) |
Closes the device driver. | |
yarp::dev::DeviceDriver * | createDevice (yarp::os::Searchable &config) |
void | setServerLogger (const IServerLogger *server) |
virtual bool | setPidRaw (const PidControlTypeEnum &pidtype, int j, const Pid &pid) override |
virtual bool | setPidsRaw (const PidControlTypeEnum &pidtype, const Pid *pids) override |
virtual bool | setPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double ref) override |
cmd is a SingleAxis poitner with 1 double arg | |
virtual bool | setPidReferencesRaw (const PidControlTypeEnum &pidtype, const double *refs) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | setPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double limit) override |
virtual bool | setPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, const double *limits) override |
virtual bool | getPidErrorRaw (const PidControlTypeEnum &pidtype, int j, double *err) override |
virtual bool | getPidErrorsRaw (const PidControlTypeEnum &pidtype, double *errs) override |
virtual bool | getPidOutputRaw (const PidControlTypeEnum &pidtype, int j, double *out) override |
virtual bool | getPidOutputsRaw (const PidControlTypeEnum &pidtype, double *outs) override |
virtual bool | getPidRaw (const PidControlTypeEnum &pidtype, int j, Pid *pid) override |
virtual bool | getPidsRaw (const PidControlTypeEnum &pidtype, Pid *pids) override |
virtual bool | getPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double *ref) override |
virtual bool | getPidReferencesRaw (const PidControlTypeEnum &pidtype, double *refs) override |
virtual bool | getPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double *limit) override |
virtual bool | getPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, double *limits) override |
virtual bool | resetPidRaw (const PidControlTypeEnum &pidtype, int j) override |
virtual bool | disablePidRaw (const PidControlTypeEnum &pidtype, int j) override |
virtual bool | enablePidRaw (const PidControlTypeEnum &pidtype, int j) override |
virtual bool | setPidOffsetRaw (const PidControlTypeEnum &pidtype, int j, double v) override |
virtual bool | isPidEnabledRaw (const PidControlTypeEnum &pidtype, int j, bool *enabled) |
virtual bool | getAxes (int *ax) override |
POSITION CONTROL INTERFACE RAW. | |
virtual bool | positionMoveRaw (int j, double ref) override |
virtual bool | positionMoveRaw (const double *refs) override |
virtual bool | relativeMoveRaw (int j, double delta) override |
virtual bool | relativeMoveRaw (const double *deltas) override |
virtual bool | checkMotionDoneRaw (bool *flag) override |
ret is a pointer to a bool | |
virtual bool | checkMotionDoneRaw (int j, bool *flag) override |
check motion done, single axis. | |
virtual bool | setRefSpeedRaw (int j, double sp) override |
virtual bool | setRefSpeedsRaw (const double *spds) override |
virtual bool | setRefAccelerationRaw (int j, double acc) override |
virtual bool | setRefAccelerationsRaw (const double *accs) override |
virtual bool | getRefSpeedRaw (int j, double *ref) override |
virtual bool | getRefSpeedsRaw (double *spds) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | getRefAccelerationRaw (int j, double *acc) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | getRefAccelerationsRaw (double *accs) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | stopRaw (int j) override |
virtual bool | stopRaw () override |
bool | helper_setPosPidRaw (int j, const Pid &pid) |
bool | helper_getPosPidRaw (int j, Pid *pid) |
virtual bool | getRefTorqueRaw (int j, double *ref_trq) override |
TORQUE CONTROL INTERFACE RAW. | |
virtual bool | getRefTorquesRaw (double *ref_trqs) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | setRefTorqueRaw (int j, double ref_trq) override |
cmd is a SingleAxis poitner with 1 double arg | |
virtual bool | setRefTorquesRaw (const double *ref_trqs) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | setRefTorquesRaw (const int n_joint, const int *joints, const double *t) override |
virtual bool | getTorqueRaw (int j, double *trq) override |
cmd is a SingleAxis pointer with 1 double arg | |
virtual bool | getTorquesRaw (double *trqs) override |
cmd is an array of double (LATER: to be optimized). | |
virtual bool | getTorqueRangeRaw (int j, double *min, double *max) override |
virtual bool | getTorqueRangesRaw (double *min, double *max) override |
virtual bool | getMotorTorqueParamsRaw (int j, MotorTorqueParameters *params) override |
virtual bool | setMotorTorqueParamsRaw (int j, const MotorTorqueParameters params) override |
bool | getFilterTypeRaw (int j, int *type) |
bool | setFilterTypeRaw (int j, int type) |
bool | helper_setTrqPidRaw (int j, const Pid &pid) |
bool | helper_getTrqPidRaw (int j, Pid *pid) |
virtual bool | getImpedanceRaw (int j, double *stiff, double *damp) override |
IMPEDANCE CONTROL INTERFACE RAW. | |
virtual bool | setImpedanceRaw (int j, double stiff, double damp) override |
virtual bool | getImpedanceOffsetRaw (int j, double *offs) override |
virtual bool | setImpedanceOffsetRaw (int j, double offs) override |
virtual bool | getCurrentImpedanceLimitRaw (int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override |
virtual bool | getControlModeRaw (int j, int *v) override |
virtual bool | getControlModesRaw (int *v) override |
virtual bool | getControlModesRaw (const int n_joint, const int *joints, int *modes) override |
virtual bool | setControlModeRaw (const int j, const int mode) override |
virtual bool | setControlModesRaw (const int n_joint, const int *joints, int *modes) override |
virtual bool | setControlModesRaw (int *modes) override |
virtual bool | getRemoteVariableRaw (std::string key, yarp::os::Bottle &val) override |
virtual bool | setRemoteVariableRaw (std::string key, const yarp::os::Bottle &val) override |
virtual bool | getRemoteVariablesListRaw (yarp::os::Bottle *listOfKeys) override |
virtual bool | velocityMoveRaw (int j, double sp) override |
Velocity control interface raw. | |
virtual bool | velocityMoveRaw (const double *sp) override |
cmd is an array of double of length njoints specifying speed for each axis | |
bool | setVelocityShiftRaw (int j, double val) |
bool | setVelocityTimeoutRaw (int j, double val) |
bool | setSpeedEstimatorShiftRaw (int j, double jnt_speed, double jnt_acc, double mot_speed, double mot_acc) |
virtual bool | resetEncoderRaw (int j) override |
virtual bool | resetEncodersRaw () override |
virtual bool | setEncoderRaw (int j, double val) override |
virtual bool | setEncodersRaw (const double *vals) override |
virtual bool | getEncoderRaw (int j, double *v) override |
virtual bool | getEncodersRaw (double *encs) override |
virtual bool | getEncoderSpeedRaw (int j, double *sp) override |
virtual bool | getEncoderSpeedsRaw (double *spds) override |
virtual bool | getEncoderAccelerationRaw (int j, double *spds) override |
virtual bool | getEncoderAccelerationsRaw (double *accs) override |
virtual bool | getEncodersTimedRaw (double *v, double *t) override |
virtual bool | getEncoderTimedRaw (int j, double *v, double *t) override |
virtual bool | getNumberOfMotorEncodersRaw (int *num) override |
virtual bool | resetMotorEncoderRaw (int m) override |
virtual bool | resetMotorEncodersRaw () override |
virtual bool | setMotorEncoderRaw (int m, const double val) override |
virtual bool | setMotorEncodersRaw (const double *vals) override |
virtual bool | getMotorEncoderRaw (int m, double *v) override |
virtual bool | getMotorEncodersRaw (double *encs) override |
virtual bool | getMotorEncoderCountsPerRevolutionRaw (int m, double *cpr) override |
virtual bool | setMotorEncoderCountsPerRevolutionRaw (int m, const double cpr) override |
virtual bool | getMotorEncoderSpeedRaw (int m, double *sp) override |
virtual bool | getMotorEncoderSpeedsRaw (double *spds) override |
virtual bool | getMotorEncoderAccelerationRaw (int m, double *spds) override |
virtual bool | getMotorEncoderAccelerationsRaw (double *accs) override |
virtual bool | getMotorEncodersTimedRaw (double *v, double *t) override |
virtual bool | getMotorEncoderTimedRaw (int m, double *v, double *t) override |
virtual bool | enableAmpRaw (int j) override |
virtual bool | disableAmpRaw (int j) override |
virtual bool | getCurrentsRaw (double *vals) override |
virtual bool | getCurrentRaw (int j, double *val) override |
virtual bool | setMaxCurrentRaw (int j, double val) override |
virtual bool | getMaxCurrentRaw (int j, double *val) override |
virtual bool | getAmpStatusRaw (int *st) override |
virtual bool | getAmpStatusRaw (int j, int *st) override |
virtual bool | getPWMRaw (int j, double *val) override |
virtual bool | getPWMLimitRaw (int j, double *val) override |
virtual bool | setPWMLimitRaw (int j, const double val) override |
virtual bool | getPowerSupplyVoltageRaw (int j, double *val) override |
virtual bool | getNumberOfMotorsRaw (int *m) override |
IMotor. | |
virtual bool | getTemperatureRaw (int m, double *val) override |
virtual bool | getTemperaturesRaw (double *vals) override |
virtual bool | getTemperatureLimitRaw (int m, double *temp) override |
virtual bool | setTemperatureLimitRaw (int m, const double temp) override |
virtual bool | getPeakCurrentRaw (int m, double *val) override |
virtual bool | setPeakCurrentRaw (int m, const double val) override |
virtual bool | getNominalCurrentRaw (int m, double *val) override |
virtual bool | setNominalCurrentRaw (int m, const double val) override |
virtual bool | getAxisNameRaw (int axis, std::string &name) override |
IAxisInfo. | |
virtual bool | getJointTypeRaw (int axis, yarp::dev::JointTypeEnum &type) override |
virtual bool | calibrationDoneRaw (int j) override |
virtual bool | calibrateAxisWithParamsRaw (int axis, unsigned int type, double p1, double p2, double p3) override |
virtual bool | setCalibrationParametersRaw (int j, const CalibrationParameters ¶ms) override |
virtual bool | setPrintFunction (int(*f)(const char *fmt,...)) |
IControlDebug Interface. | |
virtual bool | loadBootMemory () |
virtual bool | saveBootMemory () |
virtual bool | setParameterRaw (int j, unsigned int type, double value) |
virtual bool | getParameterRaw (int j, unsigned int type, double *value) |
virtual bool | setDebugParameterRaw (int j, unsigned int index, double value) |
virtual bool | getDebugParameterRaw (int j, unsigned int index, double *value) |
virtual bool | setDebugReferencePositionRaw (int j, double value) |
virtual bool | getDebugReferencePositionRaw (int j, double *value) |
virtual bool | setLimitsRaw (int axis, double min, double max) override |
virtual bool | getLimitsRaw (int axis, double *min, double *max) override |
virtual bool | setVelLimitsRaw (int axis, double min, double max) override |
virtual bool | getVelLimitsRaw (int axis, double *min, double *max) override |
virtual yarp::os::Stamp | getLastInputStamp () override |
virtual bool | positionMoveRaw (const int n_joint, const int *joints, const double *refs) override |
virtual bool | relativeMoveRaw (const int n_joint, const int *joints, const double *deltas) override |
virtual bool | checkMotionDoneRaw (const int n_joint, const int *joints, bool *flags) override |
virtual bool | setRefSpeedsRaw (const int n_joint, const int *joints, const double *spds) override |
virtual bool | setRefAccelerationsRaw (const int n_joint, const int *joints, const double *accs) override |
virtual bool | getRefSpeedsRaw (const int n_joint, const int *joints, double *spds) override |
virtual bool | getRefAccelerationsRaw (const int n_joint, const int *joints, double *accs) override |
virtual bool | stopRaw (const int n_joint, const int *joints) override |
virtual bool | getTargetPositionRaw (const int joint, double *ref) override |
virtual bool | getTargetPositionsRaw (double *refs) override |
virtual bool | getTargetPositionsRaw (const int n_joint, const int *joints, double *refs) override |
virtual bool | velocityMoveRaw (const int n_joint, const int *joints, const double *spds) override |
virtual bool | getRefVelocityRaw (const int joint, double *ref) override |
virtual bool | getRefVelocitiesRaw (double *refs) override |
virtual bool | getRefVelocitiesRaw (const int n_joint, const int *joints, double *refs) override |
bool | helper_getVelPidRaw (int j, Pid *pid) |
bool | helper_setVelPidRaw (int j, const Pid &pid) |
virtual bool | getFirmwareVersionRaw (int axis, can_protocol_info const &icub_interface_protocol, firmware_info *info) |
virtual bool | setTorqueSource (int axis, char board_id, char board_chan) |
virtual bool | setPositionRaw (int j, double ref) override |
virtual bool | setPositionsRaw (const int n_joint, const int *joints, const double *refs) override |
virtual bool | setPositionsRaw (const double *refs) override |
virtual bool | getRefPositionRaw (const int joint, double *ref) override |
virtual bool | getRefPositionsRaw (double *refs) override |
virtual bool | getRefPositionsRaw (const int n_joint, const int *joints, double *refs) override |
virtual bool | getInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum *mode) override |
virtual bool | getInteractionModesRaw (int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override |
virtual bool | getInteractionModesRaw (yarp::dev::InteractionModeEnum *modes) override |
virtual bool | setInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum mode) override |
virtual bool | setInteractionModesRaw (int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override |
virtual bool | setInteractionModesRaw (yarp::dev::InteractionModeEnum *modes) override |
virtual bool | setRefDutyCycleRaw (int j, double v) override |
virtual bool | setRefDutyCyclesRaw (const double *v) override |
virtual bool | getRefDutyCycleRaw (int j, double *v) override |
virtual bool | getRefDutyCyclesRaw (double *v) override |
virtual bool | getDutyCycleRaw (int j, double *v) override |
virtual bool | getDutyCyclesRaw (double *v) override |
virtual bool | getCurrentRangeRaw (int j, double *min, double *max) override |
virtual bool | getCurrentRangesRaw (double *min, double *max) override |
virtual bool | setRefCurrentsRaw (const double *t) override |
virtual bool | setRefCurrentRaw (int j, double t) override |
virtual bool | setRefCurrentsRaw (const int n_joint, const int *joints, const double *t) override |
virtual bool | getRefCurrentsRaw (double *t) override |
virtual bool | getRefCurrentRaw (int j, double *t) override |
bool | helper_setCurPidRaw (int j, const Pid &pid) |
bool | helper_getCurPidRaw (int j, Pid *pid) |
Public Member Functions inherited from yarp::dev::IFactoryInterface | |
virtual | ~IFactoryInterface () |
Protected Types | |
enum | { MAX_SHORT = 32767 , MIN_SHORT = -32768 , MAX_INT = 0x7fffffff , MIN_INT = 0x80000000 } |
time stamp for last received position move command More... | |
enum | { CAN_SKIP_ADDR = 0x80 } |
Protected Member Functions | |
bool | setBCastMessages (int axis, unsigned int v) |
sets the broadcast policy for a given board (don't need to be called twice). | |
bool | ENABLED (int axis) |
helper function to check whether the enabled flag is on or off. | |
virtual void | run (void) |
virtual bool | threadInit () |
virtual void | threadRelease () |
bool | _writeWord16 (int msg, int axis, short s) |
to send a Word16. | |
bool | _writeWord16Ex (int msg, int axis, short s1, short s2, bool check=true) |
two shorts in a single Can message (both must belong to the same control card). | |
bool | _readWord16 (int msg, int axis, short &value) |
bool | _readWord16Ex (int msg, int axis, short &value1, short &value2) |
bool | _readWord16Array (int msg, double *out) |
reads an array. | |
bool | _readDWord (int msg, int axis, int &value) |
READ functions sends a message and gets a dword back. | |
bool | _readDWordArray (int msg, double *out) |
reads an array of double words. | |
bool | _writeDWord (int msg, int axis, int value) |
write a DWord | |
bool | _writeNone (int msg, int axis) |
WRITE functions sends a message without parameters. | |
bool | _writeByte8 (int msg, int axis, int value) |
write a byte | |
bool | _readByte8 (int msg, int axis, int &value) |
bool | _writeByteWords16 (int msg, int axis, unsigned char value, short s1, short s2, short s3) |
icubCanProto_controlmode_t | from_modevocab_to_modeint (int modevocab) |
int | from_modeint_to_modevocab (unsigned char modeint) |
unsigned char | from_interactionvocab_to_interactionint (int interactionvocab) |
int | from_interactionint_to_interactionvocab (unsigned char interactionint) |
short | S_16 (double x) const |
int | S_32 (double x) const |
Protected Attributes | |
void * | system_resources |
std::recursive_mutex | _mutex |
ICanBus * | canController |
bool | _writerequested |
bool | _noreply |
bool | _opened |
ThreadPool2 * | threadPool |
int | _filter |
filter for recurrent messages. | |
axisTorqueHelper * | _axisTorqueHelper |
axisImpedanceHelper * | _axisImpedanceHelper |
firmwareVersionHelper * | _firmwareVersionHelper |
speedEstimationHelper * | _speedEstimationHelper |
axisPositionDirectHelper * | _axisPositionDirectHelper |
double * | _ref_speeds |
double * | _ref_command_speeds |
double * | _ref_accs |
double * | _ref_torques |
double * | _ref_command_positions |
double * | _ref_positions |
double * | _max_vel_jnt_cmd |
bool | _MCtorqueControlEnabled |
double * | _last_position_move_time |
canbusmotioncontrol
: driver for motor control boards on a CAN bus.
This device contains code which handles communication to the motor control boards on a CAN bus. It converts requests from function calls into CAN bus messages for the motor control boards. A thread monitors the bus for incoming messages and dispatches replies to calling threads.
Communication with the CAN bus is done through the standard YARP ICanBus interface.
YARP device name |
---|
canbusmotioncontrol |
Definition at line 654 of file CanBusMotionControl.h.
|
protected |
time stamp for last received position move command
Enumerator | |
---|---|
MAX_SHORT | |
MIN_SHORT | |
MAX_INT | |
MIN_INT |
Definition at line 1180 of file CanBusMotionControl.h.
|
protected |
Enumerator | |
---|---|
CAN_SKIP_ADDR |
Definition at line 1181 of file CanBusMotionControl.h.
CanBusMotionControl::CanBusMotionControl | ( | ) |
Default constructor.
Construction is done in two stages, first build the object and then open the device driver.
Definition at line 2391 of file CanBusMotionControl.cpp.
|
virtual |
Destructor.
Definition at line 2431 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 7106 of file CanBusMotionControl.cpp.
|
protected |
READ functions sends a message and gets a dword back.
Definition at line 6936 of file CanBusMotionControl.cpp.
|
protected |
reads an array of double words.
Definition at line 6986 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 7054 of file CanBusMotionControl.cpp.
|
protected |
reads an array.
Definition at line 7216 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 7158 of file CanBusMotionControl.cpp.
|
protected |
write a byte
Definition at line 6816 of file CanBusMotionControl.cpp.
|
protected |
prepare Can message.
Definition at line 6894 of file CanBusMotionControl.cpp.
|
protected |
write a DWord
Definition at line 6840 of file CanBusMotionControl.cpp.
|
protected |
WRITE functions sends a message without parameters.
Definition at line 6768 of file CanBusMotionControl.cpp.
|
protected |
|
protected |
two shorts in a single Can message (both must belong to the same control card).
prepare Can message.
axis is even.
Definition at line 6864 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5608 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6424 of file CanBusMotionControl.cpp.
|
overridevirtual |
ret is a pointer to a bool
Definition at line 5542 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6531 of file CanBusMotionControl.cpp.
|
overridevirtual |
check motion done, single axis.
Definition at line 5523 of file CanBusMotionControl.cpp.
|
virtual |
Closes the device driver.
default initialization for this device driver.
stops the thread first (joins too).
Definition at line 2972 of file CanBusMotionControl.cpp.
|
virtual |
Implements yarp::dev::IFactoryInterface.
Definition at line 7282 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6263 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5448 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6268 of file CanBusMotionControl.cpp.
|
inlineprotected |
helper function to check whether the enabled flag is on or off.
axis | is the axis to check for. |
Definition at line 6760 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5359 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3888 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3871 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3953 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3906 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6450 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6467 of file CanBusMotionControl.cpp.
|
overridevirtual |
POSITION CONTROL INTERFACE RAW.
Definition at line 4270 of file CanBusMotionControl.cpp.
|
overridevirtual |
IAxisInfo.
Definition at line 4198 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4019 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4041 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 3833 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4383 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7520 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7525 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6288 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6274 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5119 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5178 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7485 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7495 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6096 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6083 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6048 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6070 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6058 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6022 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7314 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7334 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::getFilterTypeRaw | ( | int | j, |
int * | type | ||
) |
prepare Can message.
Definition at line 5835 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5193 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4400 of file CanBusMotionControl.cpp.
|
overridevirtual |
IMPEDANCE CONTROL INTERFACE RAW.
Definition at line 4320 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7347 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7359 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7375 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4213 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6041 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6489 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6307 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6251 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6238 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6191 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6150 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6227 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6215 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6131 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6160 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6180 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5782 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6359 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6201 of file CanBusMotionControl.cpp.
|
overridevirtual |
IMotor.
Definition at line 6208 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5062 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6349 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5334 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5339 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4933 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5052 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5410 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5438 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4561 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5274 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5321 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4588 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6393 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6374 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6369 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5726 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6575 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5705 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7550 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7545 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7457 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7472 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5022 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5042 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5031 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5695 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6565 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5683 of file CanBusMotionControl.cpp.
|
overridevirtual |
TORQUE CONTROL INTERFACE RAW.
cmd is an array of double (LATER: to be optimized).
Definition at line 5764 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5745 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5012 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5001 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4991 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4146 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4138 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4960 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4981 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4970 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6339 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6329 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6334 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4890 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4928 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis pointer with 1 double arg
Definition at line 4849 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4879 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6646 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_getCurPidRaw | ( | int | j, |
Pid * | pid | ||
) |
Definition at line 6616 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_getPosPidRaw | ( | int | j, |
Pid * | pid | ||
) |
Definition at line 4531 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_getTrqPidRaw | ( | int | j, |
Pid * | pid | ||
) |
Definition at line 4646 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_getVelPidRaw | ( | int | j, |
Pid * | pid | ||
) |
Definition at line 6627 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_setCurPidRaw | ( | int | j, |
const Pid & | pid | ||
) |
Definition at line 6611 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_setPosPidRaw | ( | int | j, |
const Pid & | pid | ||
) |
Definition at line 4278 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_setTrqPidRaw | ( | int | j, |
const Pid & | pid | ||
) |
prepare Can message.
Definition at line 4601 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::helper_setVelPidRaw | ( | int | j, |
const Pid & | pid | ||
) |
Definition at line 6622 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 6711 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 6716 of file CanBusMotionControl.cpp.
bool yarp::dev::CanBusMotionControl::open | ( | const CanBusMotionControlParameters & | par | ) |
Open the device driver.
par | is the parameter structure |
|
virtual |
Open the device driver and start communication with the hardware.
config | is a Searchable object containing the list of parameters. |
|
overridevirtual |
Definition at line 5498 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6511 of file CanBusMotionControl.cpp.
|
overridevirtual |
|
overridevirtual |
Definition at line 5517 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6521 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5512 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6001 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6006 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6121 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6126 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5354 of file CanBusMotionControl.cpp.
|
protectedvirtual |
reports board errors
class 0 msg.
legitimate message directed here, checks whether replies to any message.
Definition at line 3475 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 1183 of file CanBusMotionControl.h.
|
inlineprotected |
Definition at line 1197 of file CanBusMotionControl.h.
|
virtual |
Definition at line 6731 of file CanBusMotionControl.cpp.
|
protected |
sets the broadcast policy for a given board (don't need to be called twice).
the parameter is a 32-bit integer: bit X = 1 -> message X = active e.g. 0x02 activates the broadcast of position information 0x04 activates the broadcast of velocity ...
Definition at line 6751 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5614 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4057 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4098 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4228 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5382 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5401 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5978 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5987 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::setFilterTypeRaw | ( | int | j, |
int | type | ||
) |
prepare Can message.
Definition at line 5854 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4510 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4457 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7390 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7405 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7418 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6476 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6299 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6196 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6111 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6116 of file CanBusMotionControl.cpp.
|
overridevirtual |
prepare Can message.
Definition at line 5873 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6364 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5373 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6354 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5344 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5349 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5364 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4293 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis poitner with 1 double arg
Definition at line 4806 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4812 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4791 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6657 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6698 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6685 of file CanBusMotionControl.cpp.
|
virtual |
IControlDebug Interface.
Definition at line 6444 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6385 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5640 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5658 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6555 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7535 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7530 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7540 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7436 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7444 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5619 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5629 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6545 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis poitner with 1 double arg
Definition at line 4828 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4863 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4838 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4164 of file CanBusMotionControl.cpp.
|
inlinevirtual |
Implements yarp::dev::IClientLogger.
Definition at line 793 of file CanBusMotionControl.h.
bool CanBusMotionControl::setSpeedEstimatorShiftRaw | ( | int | j, |
double | jnt_speed, | ||
double | jnt_acc, | ||
double | mot_speed, | ||
double | mot_acc | ||
) |
Definition at line 6398 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6344 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 4483 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6636 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::setVelocityShiftRaw | ( | int | j, |
double | val | ||
) |
Definition at line 6321 of file CanBusMotionControl.cpp.
bool CanBusMotionControl::setVelocityTimeoutRaw | ( | int | j, |
double | val | ||
) |
Definition at line 6416 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5903 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6585 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5896 of file CanBusMotionControl.cpp.
|
protectedvirtual |
Definition at line 3450 of file CanBusMotionControl.cpp.
|
protectedvirtual |
Definition at line 3470 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double of length njoints specifying speed for each axis
Definition at line 5965 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6601 of file CanBusMotionControl.cpp.
|
overridevirtual |
Velocity control interface raw.
cmd is an array of double of length njoints specifying speed for each axis
prepare can message.
speed
accel
Definition at line 5919 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 1158 of file CanBusMotionControl.h.
|
protected |
Definition at line 1161 of file CanBusMotionControl.h.
|
protected |
Definition at line 1157 of file CanBusMotionControl.h.
|
protected |
filter for recurrent messages.
Definition at line 1130 of file CanBusMotionControl.h.
|
protected |
Definition at line 1159 of file CanBusMotionControl.h.
|
protected |
Definition at line 1178 of file CanBusMotionControl.h.
|
protected |
Definition at line 1175 of file CanBusMotionControl.h.
|
protected |
Definition at line 1176 of file CanBusMotionControl.h.
|
protected |
Definition at line 1119 of file CanBusMotionControl.h.
|
protected |
Definition at line 1123 of file CanBusMotionControl.h.
|
protected |
Definition at line 1124 of file CanBusMotionControl.h.
|
protected |
Definition at line 1171 of file CanBusMotionControl.h.
|
protected |
Definition at line 1173 of file CanBusMotionControl.h.
|
protected |
Definition at line 1170 of file CanBusMotionControl.h.
|
protected |
Definition at line 1174 of file CanBusMotionControl.h.
|
protected |
Definition at line 1169 of file CanBusMotionControl.h.
|
protected |
Definition at line 1172 of file CanBusMotionControl.h.
|
protected |
Definition at line 1160 of file CanBusMotionControl.h.
|
protected |
Definition at line 1122 of file CanBusMotionControl.h.
|
protected |
Definition at line 1120 of file CanBusMotionControl.h.
|
protected |
Definition at line 1118 of file CanBusMotionControl.h.
|
protected |
Definition at line 1125 of file CanBusMotionControl.h.