|
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 ReturnValue | getAvailablePidsRaw (int j, std::vector< PidControlTypeEnum > &avail) override |
| virtual ReturnValue | setPidRaw (const PidControlTypeEnum &pidtype, int j, const Pid &pid) override |
| virtual ReturnValue | setPidsRaw (const PidControlTypeEnum &pidtype, const Pid *pids) override |
| virtual ReturnValue | setPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double ref) override |
| cmd is a SingleAxis poitner with 1 double arg | |
| virtual ReturnValue | setPidReferencesRaw (const PidControlTypeEnum &pidtype, const double *refs) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | setPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double limit) override |
| virtual ReturnValue | setPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, const double *limits) override |
| virtual ReturnValue | getPidErrorRaw (const PidControlTypeEnum &pidtype, int j, double *err) override |
| virtual ReturnValue | getPidErrorsRaw (const PidControlTypeEnum &pidtype, double *errs) override |
| virtual ReturnValue | getPidOutputRaw (const PidControlTypeEnum &pidtype, int j, double *out) override |
| virtual ReturnValue | getPidOutputsRaw (const PidControlTypeEnum &pidtype, double *outs) override |
| virtual ReturnValue | getPidRaw (const PidControlTypeEnum &pidtype, int j, Pid *pid) override |
| virtual ReturnValue | getPidsRaw (const PidControlTypeEnum &pidtype, Pid *pids) override |
| virtual ReturnValue | getPidReferenceRaw (const PidControlTypeEnum &pidtype, int j, double *ref) override |
| virtual ReturnValue | getPidReferencesRaw (const PidControlTypeEnum &pidtype, double *refs) override |
| virtual ReturnValue | getPidErrorLimitRaw (const PidControlTypeEnum &pidtype, int j, double *limit) override |
| virtual ReturnValue | getPidErrorLimitsRaw (const PidControlTypeEnum &pidtype, double *limits) override |
| virtual ReturnValue | resetPidRaw (const PidControlTypeEnum &pidtype, int j) override |
| virtual ReturnValue | disablePidRaw (const PidControlTypeEnum &pidtype, int j) override |
| virtual ReturnValue | enablePidRaw (const PidControlTypeEnum &pidtype, int j) override |
| virtual ReturnValue | setPidOffsetRaw (const PidControlTypeEnum &pidtype, int j, double v) override |
| virtual ReturnValue | isPidEnabledRaw (const PidControlTypeEnum &pidtype, int j, bool &enabled) override |
| virtual ReturnValue | getPidExtraInfoRaw (const PidControlTypeEnum &pidtype, int j, PidExtraInfo &info) override |
| virtual ReturnValue | getPidExtraInfosRaw (const PidControlTypeEnum &pidtype, std::vector< PidExtraInfo > &info) override |
| virtual ReturnValue | setPidFeedforwardRaw (const PidControlTypeEnum &pidtype, int j, double v) override |
| virtual ReturnValue | getPidOffsetRaw (const PidControlTypeEnum &pidtype, int j, double &v) override |
| virtual ReturnValue | getPidFeedforwardRaw (const PidControlTypeEnum &pidtype, int j, double &v) override |
| virtual ReturnValue | positionMoveRaw (int j, double ref) override |
| POSITION CONTROL INTERFACE RAW. | |
| virtual ReturnValue | positionMoveRaw (const double *refs) override |
| virtual ReturnValue | relativeMoveRaw (int j, double delta) override |
| virtual ReturnValue | relativeMoveRaw (const double *deltas) override |
| virtual ReturnValue | checkMotionDoneRaw (bool &flag) override |
| ret is a pointer to a bool | |
| virtual ReturnValue | checkMotionDoneRaw (int j, bool &flag) override |
| check motion done, single axis. | |
| virtual ReturnValue | setTrajSpeedRaw (int j, double sp) override |
| virtual ReturnValue | setTrajSpeedsRaw (const double *spds) override |
| virtual ReturnValue | setTrajAccelerationRaw (int j, double acc) override |
| virtual ReturnValue | setTrajAccelerationsRaw (const double *accs) override |
| virtual ReturnValue | getTrajSpeedRaw (int j, double *ref) override |
| virtual ReturnValue | getTrajSpeedsRaw (double *spds) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | getTrajAccelerationRaw (int j, double *acc) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | getTrajAccelerationsRaw (double *accs) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | stopRaw (int j) override |
| virtual ReturnValue | stopRaw () override |
| bool | helper_setPosPidRaw (int j, const Pid &pid) |
| bool | helper_getPosPidRaw (int j, Pid *pid) |
| virtual ReturnValue | getRefTorqueRaw (int j, double *ref_trq) override |
| TORQUE CONTROL INTERFACE RAW. | |
| virtual ReturnValue | getRefTorquesRaw (double *ref_trqs) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | setRefTorqueRaw (int j, double ref_trq) override |
| cmd is a SingleAxis poitner with 1 double arg | |
| virtual ReturnValue | setRefTorquesRaw (const double *ref_trqs) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | setRefTorquesRaw (const int n_joint, const int *joints, const double *t) override |
| virtual ReturnValue | getTorqueRaw (int j, double *trq) override |
| cmd is a SingleAxis pointer with 1 double arg | |
| virtual ReturnValue | getTorquesRaw (double *trqs) override |
| cmd is an array of double (LATER: to be optimized). | |
| virtual ReturnValue | getTorqueRangeRaw (int j, double *min, double *max) override |
| virtual ReturnValue | getTorqueRangesRaw (double *min, double *max) override |
| virtual ReturnValue | getMotorTorqueParamsRaw (int j, MotorTorqueParameters *params) override |
| virtual ReturnValue | 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 ReturnValue | getImpedanceRaw (int j, double *stiff, double *damp) override |
| IMPEDANCE CONTROL INTERFACE RAW. | |
| virtual ReturnValue | setImpedanceRaw (int j, double stiff, double damp) override |
| virtual ReturnValue | getImpedanceOffsetRaw (int j, double *offs) override |
| virtual ReturnValue | setImpedanceOffsetRaw (int j, double offs) override |
| virtual ReturnValue | getCurrentImpedanceLimitRaw (int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override |
| virtual ReturnValue | getAvailableControlModesRaw (int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail) override |
| virtual ReturnValue | getControlModeRaw (int j, yarp::dev::ControlModeEnum &mode) override |
| virtual ReturnValue | getControlModesRaw (std::vector< yarp::dev::ControlModeEnum > &mode) override |
| virtual ReturnValue | getControlModesRaw (const std::vector< int > &joints, std::vector< yarp::dev::ControlModeEnum > &mode) override |
| virtual ReturnValue | setControlModeRaw (int j, yarp::dev::SelectableControlModeEnum mode) override |
| virtual ReturnValue | setControlModesRaw (const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override |
| virtual ReturnValue | setControlModesRaw (const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override |
| virtual ReturnValue | getRemoteVariableRaw (std::string key, yarp::os::Bottle &val) override |
| virtual ReturnValue | setRemoteVariableRaw (std::string key, const yarp::os::Bottle &val) override |
| virtual ReturnValue | getRemoteVariablesListRaw (yarp::os::Bottle *listOfKeys) override |
| virtual ReturnValue | velocityMoveRaw (int j, double sp) override |
| Velocity control interface raw. | |
| virtual ReturnValue | 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 ReturnValue | resetEncoderRaw (int j) override |
| virtual ReturnValue | resetEncodersRaw () override |
| virtual ReturnValue | setEncoderRaw (int j, double val) override |
| virtual ReturnValue | setEncodersRaw (const double *vals) override |
| virtual ReturnValue | getEncoderRaw (int j, double *v) override |
| virtual ReturnValue | getEncodersRaw (double *encs) override |
| virtual ReturnValue | getEncoderSpeedRaw (int j, double *sp) override |
| virtual ReturnValue | getEncoderSpeedsRaw (double *spds) override |
| virtual ReturnValue | getEncoderAccelerationRaw (int j, double *spds) override |
| virtual ReturnValue | getEncoderAccelerationsRaw (double *accs) override |
| virtual ReturnValue | getEncodersTimedRaw (double *v, double *t) override |
| virtual ReturnValue | getEncoderTimedRaw (int j, double *v, double *t) override |
| virtual ReturnValue | getNumberOfMotorEncodersRaw (int *num) override |
| virtual ReturnValue | resetMotorEncoderRaw (int m) override |
| virtual ReturnValue | resetMotorEncodersRaw () override |
| virtual ReturnValue | setMotorEncoderRaw (int m, const double val) override |
| virtual ReturnValue | setMotorEncodersRaw (const double *vals) override |
| virtual ReturnValue | getMotorEncoderRaw (int m, double *v) override |
| virtual ReturnValue | getMotorEncodersRaw (double *encs) override |
| virtual ReturnValue | getMotorEncoderCountsPerRevolutionRaw (int m, double *cpr) override |
| virtual ReturnValue | setMotorEncoderCountsPerRevolutionRaw (int m, const double cpr) override |
| virtual ReturnValue | getMotorEncoderSpeedRaw (int m, double *sp) override |
| virtual ReturnValue | getMotorEncoderSpeedsRaw (double *spds) override |
| virtual ReturnValue | getMotorEncoderAccelerationRaw (int m, double *spds) override |
| virtual ReturnValue | getMotorEncoderAccelerationsRaw (double *accs) override |
| virtual ReturnValue | getMotorEncodersTimedRaw (double *v, double *t) override |
| virtual ReturnValue | getMotorEncoderTimedRaw (int m, double *v, double *t) override |
| virtual ReturnValue | enableAmpRaw (int j) override |
| virtual ReturnValue | disableAmpRaw (int j) override |
| virtual ReturnValue | getCurrentsRaw (double *vals) override |
| virtual ReturnValue | getCurrentRaw (int j, double *val) override |
| virtual ReturnValue | setMaxCurrentRaw (int j, double val) override |
| virtual ReturnValue | getMaxCurrentRaw (int j, double *val) override |
| virtual ReturnValue | getAmpStatusRaw (int *st) override |
| virtual ReturnValue | getAmpStatusRaw (int j, int *st) override |
| virtual ReturnValue | getPWMRaw (int j, double *val) override |
| virtual ReturnValue | getPWMLimitRaw (int j, double *val) override |
| virtual ReturnValue | setPWMLimitRaw (int j, const double val) override |
| virtual ReturnValue | getPowerSupplyVoltageRaw (int j, double *val) override |
| virtual ReturnValue | getNumberOfMotorsRaw (int *m) override |
| IMotor. | |
| virtual ReturnValue | getTemperatureRaw (int m, double *val) override |
| virtual ReturnValue | getTemperaturesRaw (double *vals) override |
| virtual ReturnValue | getTemperatureLimitRaw (int m, double *temp) override |
| virtual ReturnValue | setTemperatureLimitRaw (int m, const double temp) override |
| virtual ReturnValue | getPeakCurrentRaw (int m, double *val) override |
| virtual ReturnValue | setPeakCurrentRaw (int m, const double val) override |
| virtual ReturnValue | getNominalCurrentRaw (int m, double *val) override |
| virtual ReturnValue | setNominalCurrentRaw (int m, const double val) override |
| virtual ReturnValue | setGearboxRatioRaw (int m, const double val) override |
| virtual ReturnValue | getGearboxRatioRaw (int m, double *val) override |
| virtual ReturnValue | getAxes (size_t &axes) override |
| IAxisInfo. | |
| virtual ReturnValue | getAxisNameRaw (int axis, std::string &name) override |
| virtual ReturnValue | getJointTypeRaw (int axis, yarp::dev::JointTypeEnum &type) override |
| virtual ReturnValue | calibrationDoneRaw (int j) override |
| virtual ReturnValue | calibrateAxisWithParamsRaw (int axis, unsigned int type, double p1, double p2, double p3) override |
| virtual ReturnValue | 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 ReturnValue | setPosLimitsRaw (int axis, double min, double max) override |
| virtual ReturnValue | getPosLimitsRaw (int axis, double *min, double *max) override |
| virtual ReturnValue | setVelLimitsRaw (int axis, double min, double max) override |
| virtual ReturnValue | getVelLimitsRaw (int axis, double *min, double *max) override |
| virtual yarp::os::Stamp | getLastInputStamp () override |
| virtual ReturnValue | positionMoveRaw (const int n_joint, const int *joints, const double *refs) override |
| virtual ReturnValue | relativeMoveRaw (const int n_joint, const int *joints, const double *deltas) override |
| virtual ReturnValue | checkMotionDoneRaw (const std::vector< int > &joints, bool &flag) override |
| virtual ReturnValue | setTrajSpeedsRaw (const int n_joint, const int *joints, const double *spds) override |
| virtual ReturnValue | setTrajAccelerationsRaw (const int n_joint, const int *joints, const double *accs) override |
| virtual ReturnValue | getTrajSpeedsRaw (const int n_joint, const int *joints, double *spds) override |
| virtual ReturnValue | getTrajAccelerationsRaw (const int n_joint, const int *joints, double *accs) override |
| virtual ReturnValue | stopRaw (const int n_joint, const int *joints) override |
| virtual ReturnValue | getTargetPositionRaw (const int joint, double *ref) override |
| virtual ReturnValue | getTargetPositionsRaw (double *refs) override |
| virtual ReturnValue | getTargetPositionsRaw (const int n_joint, const int *joints, double *refs) override |
| virtual ReturnValue | velocityMoveRaw (const int n_joint, const int *joints, const double *spds) override |
| virtual ReturnValue | getTargetVelocityRaw (const int joint, double *ref) override |
| virtual ReturnValue | getTargetVelocitiesRaw (double *refs) override |
| virtual ReturnValue | getTargetVelocitiesRaw (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 ReturnValue | setPositionRaw (int j, double ref) override |
| virtual ReturnValue | setPositionsRaw (const int n_joint, const int *joints, const double *refs) override |
| virtual ReturnValue | setPositionsRaw (const double *refs) override |
| virtual ReturnValue | getRefPositionRaw (const int joint, double *ref) override |
| virtual ReturnValue | getRefPositionsRaw (double *refs) override |
| virtual ReturnValue | getRefPositionsRaw (const int n_joint, const int *joints, double *refs) override |
| virtual ReturnValue | getInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum &mode) override |
| virtual ReturnValue | getInteractionModesRaw (const std::vector< int > &joints, std::vector< yarp::dev::InteractionModeEnum > &modes) override |
| virtual ReturnValue | getInteractionModesRaw (std::vector< yarp::dev::InteractionModeEnum > &modes) override |
| virtual ReturnValue | setInteractionModeRaw (int axis, yarp::dev::InteractionModeEnum mode) override |
| virtual ReturnValue | setInteractionModesRaw (const std::vector< int > &joints, const std::vector< yarp::dev::InteractionModeEnum > &modes) override |
| virtual ReturnValue | setInteractionModesRaw (const std::vector< yarp::dev::InteractionModeEnum > &modes) override |
| virtual ReturnValue | setRefDutyCycleRaw (int j, double v) override |
| virtual ReturnValue | setRefDutyCyclesRaw (const double *v) override |
| virtual ReturnValue | getRefDutyCycleRaw (int j, double *v) override |
| virtual ReturnValue | getRefDutyCyclesRaw (double *v) override |
| virtual ReturnValue | getDutyCycleRaw (int j, double *v) override |
| virtual ReturnValue | getDutyCyclesRaw (double *v) override |
| virtual ReturnValue | getCurrentRangeRaw (int j, double *min, double *max) override |
| virtual ReturnValue | getCurrentRangesRaw (double *min, double *max) override |
| virtual ReturnValue | setRefCurrentsRaw (const double *t) override |
| virtual ReturnValue | setRefCurrentRaw (int j, double t) override |
| virtual ReturnValue | setRefCurrentsRaw (const int n_joint, const int *joints, const double *t) override |
| virtual ReturnValue | getRefCurrentsRaw (double *t) override |
| virtual ReturnValue | 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 1186 of file CanBusMotionControl.h.
|
protected |
| Enumerator | |
|---|---|
| CAN_SKIP_ADDR | |
Definition at line 1187 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 7164 of file CanBusMotionControl.cpp.
|
protected |
READ functions sends a message and gets a dword back.
Definition at line 6994 of file CanBusMotionControl.cpp.
|
protected |
reads an array of double words.
Definition at line 7044 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 7112 of file CanBusMotionControl.cpp.
|
protected |
reads an array.
Definition at line 7274 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 7216 of file CanBusMotionControl.cpp.
|
protected |
write a byte
Definition at line 6874 of file CanBusMotionControl.cpp.
|
protected |
prepare Can message.
Definition at line 6952 of file CanBusMotionControl.cpp.
|
protected |
write a DWord
Definition at line 6898 of file CanBusMotionControl.cpp.
|
protected |
WRITE functions sends a message without parameters.
Definition at line 6826 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 6922 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5644 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6479 of file CanBusMotionControl.cpp.
|
overridevirtual |
ret is a pointer to a bool
Definition at line 5578 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6588 of file CanBusMotionControl.cpp.
|
overridevirtual |
check motion done, single axis.
Definition at line 5559 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 7340 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6318 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5484 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6323 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 6818 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5394 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3887 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3870 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3952 of file CanBusMotionControl.cpp.
|
inlineprotected |
Definition at line 3905 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6505 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6522 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4018 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4306 of file CanBusMotionControl.cpp.
|
overridevirtual |
IAxisInfo.
Definition at line 4283 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4210 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4032 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4054 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 3833 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4406 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7579 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7584 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6343 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6329 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5146 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5205 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7544 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7554 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6151 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6138 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6103 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6125 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6113 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6077 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7372 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7392 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::getFilterTypeRaw | ( | int | j, |
| int * | type ) |
prepare Can message.
Definition at line 5878 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5220 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7644 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4423 of file CanBusMotionControl.cpp.
|
overridevirtual |
IMPEDANCE CONTROL INTERFACE RAW.
Definition at line 4343 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7406 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7418 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7434 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4225 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6096 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6362 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6306 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6293 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6246 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6205 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6282 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6270 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6186 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6215 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6235 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5825 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6414 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6256 of file CanBusMotionControl.cpp.
|
overridevirtual |
IMotor.
Definition at line 6263 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5089 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6404 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5364 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5370 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4958 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5079 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7614 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7619 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7634 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7629 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5446 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5474 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4584 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5301 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5351 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4611 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6545 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6448 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6429 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6424 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7609 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7604 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7516 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7531 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5049 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5069 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5058 of file CanBusMotionControl.cpp.
|
overridevirtual |
TORQUE CONTROL INTERFACE RAW.
cmd is an array of double (LATER: to be optimized).
Definition at line 5807 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5788 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4158 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4150 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4987 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5008 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4997 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5039 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5028 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5018 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6394 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6384 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6389 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4915 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4953 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis pointer with 1 double arg
Definition at line 4874 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4904 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5769 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6632 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 5748 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5738 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6622 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 6704 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_getCurPidRaw | ( | int | j, |
| Pid * | pid ) |
Definition at line 6673 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_getPosPidRaw | ( | int | j, |
| Pid * | pid ) |
Definition at line 4554 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_getTrqPidRaw | ( | int | j, |
| Pid * | pid ) |
Definition at line 4669 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_getVelPidRaw | ( | int | j, |
| Pid * | pid ) |
Definition at line 6684 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_setCurPidRaw | ( | int | j, |
| const Pid & | pid ) |
Definition at line 6668 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_setPosPidRaw | ( | int | j, |
| const Pid & | pid ) |
Definition at line 4291 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_setTrqPidRaw | ( | int | j, |
| const Pid & | pid ) |
prepare Can message.
Definition at line 4624 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::helper_setVelPidRaw | ( | int | j, |
| const Pid & | pid ) |
Definition at line 6679 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6769 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 6774 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 5534 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6568 of file CanBusMotionControl.cpp.
|
overridevirtual |
POSITION CONTROL INTERFACE RAW.
prepare can message.
pos
speed
Definition at line 5489 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5553 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6578 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5548 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6056 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6061 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6176 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6181 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5388 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 1189 of file CanBusMotionControl.h.
|
inlineprotected |
Definition at line 1203 of file CanBusMotionControl.h.
|
virtual |
Definition at line 6789 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 6809 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5650 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4068 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4110 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4240 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5418 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5437 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6033 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6042 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::setFilterTypeRaw | ( | int | j, |
| int | type ) |
prepare Can message.
Definition at line 5897 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7639 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4533 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4480 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7449 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7464 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7477 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6354 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6251 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6166 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6171 of file CanBusMotionControl.cpp.
|
overridevirtual |
prepare Can message.
Definition at line 5916 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6419 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 5410 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6409 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5376 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5382 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7624 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5400 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4316 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis poitner with 1 double arg
Definition at line 4829 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4836 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4814 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6715 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6756 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6743 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6531 of file CanBusMotionControl.cpp.
|
virtual |
IControlDebug Interface.
Definition at line 6499 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6439 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7594 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7589 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7599 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7495 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 7503 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is a SingleAxis poitner with 1 double arg
Definition at line 4852 of file CanBusMotionControl.cpp.
|
overridevirtual |
cmd is an array of double (LATER: to be optimized).
Definition at line 4888 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4863 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 4176 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 6453 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6399 of file CanBusMotionControl.cpp.
|
virtual |
Definition at line 4506 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5676 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5701 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6612 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5655 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5665 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6602 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6694 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::setVelocityShiftRaw | ( | int | j, |
| double | val ) |
Definition at line 6376 of file CanBusMotionControl.cpp.
| bool CanBusMotionControl::setVelocityTimeoutRaw | ( | int | j, |
| double | val ) |
Definition at line 6471 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5953 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6642 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 5939 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 6020 of file CanBusMotionControl.cpp.
|
overridevirtual |
Definition at line 6658 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 5974 of file CanBusMotionControl.cpp.
|
protected |
Definition at line 1164 of file CanBusMotionControl.h.
|
protected |
Definition at line 1167 of file CanBusMotionControl.h.
|
protected |
Definition at line 1163 of file CanBusMotionControl.h.
|
protected |
filter for recurrent messages.
Definition at line 1136 of file CanBusMotionControl.h.
|
protected |
Definition at line 1165 of file CanBusMotionControl.h.
|
protected |
Definition at line 1184 of file CanBusMotionControl.h.
|
protected |
Definition at line 1181 of file CanBusMotionControl.h.
|
protected |
Definition at line 1182 of file CanBusMotionControl.h.
|
protected |
Definition at line 1125 of file CanBusMotionControl.h.
|
protected |
Definition at line 1129 of file CanBusMotionControl.h.
|
protected |
Definition at line 1130 of file CanBusMotionControl.h.
|
protected |
Definition at line 1177 of file CanBusMotionControl.h.
|
protected |
Definition at line 1179 of file CanBusMotionControl.h.
|
protected |
Definition at line 1176 of file CanBusMotionControl.h.
|
protected |
Definition at line 1180 of file CanBusMotionControl.h.
|
protected |
Definition at line 1175 of file CanBusMotionControl.h.
|
protected |
Definition at line 1178 of file CanBusMotionControl.h.
|
protected |
Definition at line 1166 of file CanBusMotionControl.h.
|
protected |
Definition at line 1128 of file CanBusMotionControl.h.
|
protected |
Definition at line 1126 of file CanBusMotionControl.h.
|
protected |
Definition at line 1124 of file CanBusMotionControl.h.
|
protected |
Definition at line 1131 of file CanBusMotionControl.h.