iCub-main
Loading...
Searching...
No Matches
embObjMotionControl.h
Go to the documentation of this file.
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
4/* Copyright (C) 2012 iCub Facility, Istituto Italiano di Tecnologia
5 * Author: Alberto Cardellino
6 * email: alberto.cardellino@iit.it
7 * Permission is granted to copy, distribute, and/or modify this program
8 * under the terms of the GNU General Public License, version 2 or any
9 * later version published by the Free Software Foundation.
10 *
11 * A copy of the license can be found at
12 * http://www.robotcub.org/icub/license/gpl.txt
13 *
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17 * Public License for more details
18 */
19
20
21
22
23//
24// $Id: embObjMotionControl.h,v 1.5 2008/06/25 22:33:53 nat Exp $
25//
26
27#ifndef __embObjMotionControlh__
28#define __embObjMotionControlh__
29
30
31using namespace std;
32
33// system std include
34#include <string>
35#include <mutex>
36#include <math.h>
37// Yarp stuff
38#include <yarp/os/Bottle.h>
39#include <yarp/os/BufferedPort.h>
40#include <yarp/os/Timer.h>
41#include <yarp/dev/DeviceDriver.h>
42#include <yarp/dev/PolyDriver.h>
43#include <yarp/dev/ControlBoardHelper.h>
44#include <yarp/dev/IVirtualAnalogSensor.h>
45#include <yarp/dev/IVelocityDirect.h>
46#include <yarp/dev/ImplementJointFault.h>
47#include <yarp/dev/IDeviceDriverParams.h>
48#include <yarp/dev/IJointBrake.h>
49#include <yarp/dev/ImplementJointBrake.h>
50
52
53
54// local include
55#include "IethResource.h"
56#include "abstractEthResource.h"
57#include "EoError.h"
58#include "ethManager.h"
59#include "serviceParser.h"
60#include "eomcParser.h"
61#include "measuresConverter.h"
62#include "mcEventDownsampler.h"
63#include "ethParser.h"
64
65
66#ifdef NETWORK_PERFORMANCE_BENCHMARK
68#endif
69
70// - public #define --------------------------------------------------------------------------------------------------
71//
72// helper structures
73//
74namespace yarp {
75 namespace dev {
76 namespace eomc {
77
78typedef struct
79{
80 vector<int> joint2set;
81 vector <vector <int> > set2joint;
83 vector<eOmc_jointset_configuration_t> jointset_cfgs;
85
87{
88
89private:
90
91bool _isStarted;
92uint32_t _count;
93double _time;
94double _abstime;
95uint32_t _threshold; // use 10000 as limit on the watchdog for the error on the temperature sensor receiving of the values -
96 // since the ETH callback timing is 2ms by default so using 10000 we can set a checking threshould of 5 second
97 // in which we can allow the tdb to not respond. If cannot receive response over 1s we trigger the error
98public:
99
100Watchdog(): _count(0), _isStarted(false), _threshold(60000), _time(0), _abstime(yarp::os::Time::now()){;}
101Watchdog(uint32_t threshold):_count(0), _isStarted(false), _threshold(threshold), _time(0), _abstime(yarp::os::Time::now()){;}
102~Watchdog() = default;
103Watchdog(const Watchdog& other) = default;
104Watchdog(Watchdog&& other) noexcept = default;
105Watchdog& operator=(const Watchdog& other) = default;
106Watchdog& operator=(Watchdog&& other) noexcept = default;
107
108
109bool isStarted(){return _isStarted;}
110void start() {_count = 0; _time = yarp::os::Time::now(); _isStarted = true;}
111bool isExpired() {return (_count >= _threshold);}
112void increment() {++_count;}
113void clear(){_isStarted=false;}
114double getStartTime() {return _time;}
115uint32_t getCount() {return _count; }
116void setThreshold(uint8_t txrateOfRegularROPs){ if(txrateOfRegularROPs != 0) _threshold = _threshold / txrateOfRegularROPs;}
117uint32_t getThreshold(){return _threshold;}
118double getAbsoluteTime(){return _abstime;}
119
120};
121
123{
124private:
125 uint32_t _threshold; // threshold for the delta between current and previous temperature --> set to 20 Celsius deg by default --> over 20 deg delta spike
126 double _motorTempPrev; // motor temperature at previous instant for checking positive temperature spikes
127 bool _isStarted;
128 int32_t _initCounter;
129 std::vector<double> _initTempBuffer;
130public:
131 TemperatureFilter(): _threshold(20), _isStarted(false), _initCounter(50), _initTempBuffer(0), _motorTempPrev(0){;}
132 TemperatureFilter(uint32_t threshold, int32_t initCounter): _threshold(threshold), _isStarted(false), _initCounter(initCounter), _initTempBuffer(0), _motorTempPrev(0){;}
134 TemperatureFilter(const TemperatureFilter& other) = default;
135 TemperatureFilter(TemperatureFilter&& other) noexcept = default;
137 TemperatureFilter& operator=(TemperatureFilter&& other) noexcept = default;
138
139 bool isStarted(){return _isStarted;}
140 uint32_t getTemperatureThreshold() {return _threshold; }
141 double getPrevTemperature(){return _motorTempPrev;}
142 void updatePrevTemperature(double temperature){_motorTempPrev = temperature;}
143 void start(double temperature)
144 {
145 if(_initCounter < 0)
146 {
147 int median_pos = std::ceil(_initTempBuffer.size() / 2) -1;
148 _motorTempPrev = _initTempBuffer.at(median_pos);
149 _isStarted = true;
150 }
151 else
152 {
153 _initTempBuffer.push_back(temperature);
154 --_initCounter;
155 }
156
157 }
158};
159
160}}}
161
162namespace yarp {
163 namespace dev {
165 }
166}
167
168
170{
171 eOmn_serv_diagn_cfg_t config;
172 std::vector<BufferedPort<Bottle>*> ports;
173};
174
175using namespace yarp::dev;
176using namespace iCub;
177
178
198
199 /********************************************************************/
200 /********************************************************************/
201/* IMPORTANT IMPLEMENTATION DETAILS */
202/* Virtual methods in this device are NOT responsible for validating their inputs.
203 Do not check whether joint indices are within the managed range or whether
204 input vectors are properly allocated. These validations are performed by the
205 higher-level interfaces that call these methods.
206*/
207 /********************************************************************/
208 /********************************************************************/
209class yarp::dev::embObjMotionControl: public DeviceDriver,
210 public IPidControlRaw,
211 public IControlCalibrationRaw,
212 public IAmplifierControlRaw,
213 public IEncodersTimedRaw,
214 public IMotorEncodersRaw,
215 public ImplementEncodersTimed,
216 public ImplementMotorEncoders,
217 public IMotorRaw,
218 public ImplementMotor,
219 public IPositionControlRaw,
220 public IVelocityControlRaw,
221 public IControlModeRaw,
222 public ImplementControlMode,
223 public IControlLimitsRaw,
224 public IImpedanceControlRaw,
225 public ImplementImpedanceControl,
226 public ImplementControlLimits,
227 public ImplementAmplifierControl,
228 public ImplementPositionControl,
229 public ImplementControlCalibration,
230 public ImplementPidControl,
231 public ImplementVelocityControl,
232 public ITorqueControlRaw,
233 public ImplementTorqueControl,
234 public IVirtualAnalogSensor,
235 public IPositionDirectRaw,
236 public ImplementPositionDirect,
237 public IInteractionModeRaw,
238 public ImplementInteractionMode,
239 public IRemoteVariablesRaw,
240 public ImplementRemoteVariables,
241 public IAxisInfoRaw,
242 public ImplementAxisInfo,
243 public IPWMControlRaw,
244 public ImplementPWMControl,
245 public ICurrentControlRaw,
246 public ImplementCurrentControl,
247 public eth::IethResource,
248 public IJointFaultRaw,
249 public ImplementJointFault,
251 public IVelocityDirectRaw,
252 public ImplementVelocityDirect,
253 public IDeviceDriverParams,
254 public IJointBrakeRaw,
255 public ImplementJointBrake
256{
257private:
258 eth::TheEthManager* _ethManager;
260 ServiceParser* _srvParser;
261 eomc::Parser * _mcparser;
262 ControlBoardHelper* _measureConverter;
263 std::mutex _mutex;
264
265 //configuartion info (read from xml files)
266 int _njoints;
267 eomc::ParsedConfigData _parsedCfgData;
268
269 //internal info about the board and state of the device
271 bool _opened;
272
273 // in these vectors the device store some data that cannot be sent directly to the embedded firmware directly as is,
274 // because it needs other command befor to send them
275 std::vector<double> _ref_command_positions; // used for position control.
276 std::vector<double> _ref_speeds; // used for position control.
277 std::vector<double> _ref_command_speeds; // used for velocity control.
278 std::vector<double> _ref_positions; // used for direct position control.
279 std::vector<double> _ref_accs; // for velocity control, in position min jerk eq is used.
280 std::vector<double> _encodersStamp;
281 std::vector<double> _last_position_move_time;
282 std::vector<eOmc_impedance_t> _cacheImpedance; /* cache impedance value to split up the 2 sets */
283
284 // watchdog and filter for the temperature sensor values read from the 2FOC board. Since we can have some error in reading these values, we use a watchdog to filter these errors and avoid to print continuously error messages in case of temporary problem in reading these values. Moreover, we use a filter to avoid to print exceeded limit messages in case of positive spikes in the temperature values.
285 std::vector<yarp::dev::eomc::Watchdog> _temperatureSensorErrorWatchdog; /* counter used to filter error coming from tdb reading fromm 2FOC board*/
286 std::vector<yarp::dev::eomc::Watchdog> _temperatureExceededLimitWatchdog; /* counter used to filter the print of the exeded limits*/
287 std::vector<yarp::dev::eomc::TemperatureFilter> _temperatureSpikesFilter;
288
289 // this map is used to store the metadata of the raw values that can be published by this device, like the size of the vector to be sent in case of vectorial data, or the type of the data (double, int32_t, ecc)
290 std::map<std::string, rawValuesKeyMetadata> _rawValuesMetadataMap;
291 std::vector<std::int32_t> _rawDataAuxVector;
292
293 // diagnostics
294 MCdiagnostics _mcdiagnostics;
295
296 // event downsampler
297 mced::mcEventDownsampler* _event_downsampler;
298
299
300#ifdef NETWORK_PERFORMANCE_BENCHMARK
301 Tools::Emb_RensponseTimingVerifier _responseTimingVerifier;
302#endif
303
304private:
305
306 std::string getBoardInfo(void) const;
307 bool askRemoteValue(eOprotID32_t id32, void* value, uint16_t& size);
308 template <class T>
309 bool askRemoteValues(eOprotEndpoint_t ep, eOprotEntity_t entity, eOprotTag_t tag, std::vector<T>& values);
310 bool checkRemoteControlModeStatus(int joint, int target_mode);
311
312 bool verifyUserControlLawConsistencyInJointSet(eomc::PidInfo *ipdInfo);
313 bool verifyUserControlLawConsistencyInJointSet(eomc::TrqPidInfo *pidInfo);
314 bool verifyTorquePidshasSameUnitTypes(yarp::dev::PidFeedbackUnitsEnum &fbk_pidunits, yarp::dev::PidOutputUnitsEnum& out_pidunits);
315 bool verifyUseMotorSpeedFbkInJointSet(int useMotorSpeedFbk []);
316 bool updatedJointsetsCfgWithControlInfo(void);
317 bool saveCouplingsData(void);
318 void debugUtil_printJointsetInfo(void);
319 void debugUtil_printPidInfoByJointSet(void);
320
321
322 bool iNeedCouplingsInfo(void); //the device needs coupling info if it manages joints controlled by 2foc and mc4plus.
323
324 bool getJointConfiguration(int joint, eOmc_joint_config_t *jntCfg_ptr);
325 bool getMotorConfiguration(int axis, eOmc_motor_config_t *motCfg_ptr);
326 bool getGerabox_E2J(int joint, double *gearbox_E2J_ptr);
327 bool getJointEncTolerance(int joint, double *jEncTolerance_ptr);
328 bool getMotorEncTolerance(int axis, double *mEncTolerance_ptr);
329 void updateDeadZoneWithDefaultValues(void);
330 bool getJointDeadZoneRaw(int j, double &jntDeadZone);
331
332 //functions used in init this object
333 bool fromConfig(yarp::os::Searchable &config);
334 int fromConfig_NumOfJoints(yarp::os::Searchable &config);
335 bool fromConfig_Step2(yarp::os::Searchable &config);
336 bool fromConfig_readServiceCfg(yarp::os::Searchable &config);
337 bool initializeInterfaces(measureConvFactors &f);
338 bool alloc(int njoints);
339 bool init(void);
340
341 //function used in the closing this object
342 void cleanup(void);
343
344
345 //Currently we need to use a specific function to retrive values of vel direct because they depend on thje output type
346 ReturnValue helper_getVelDirPidRaw(int j, Pid *pid);
347 ReturnValue helper_getVelDirPidsRaw(Pid *pid);
348 ReturnValue helper_setVelDirPidRaw(int j, const Pid &pid);
349
350 bool checkCalib14RotationParam(int32_t calib_param4);
351
352 // used in rawvaluespublisher interface
353 bool getRawData_core(std::string key, std::vector<std::int32_t> &data);
354 std::string controlModeType2String(eOmc_controlmode_t type);
355
356public:
357
360
361
362 // Device Driver
363 virtual bool open(yarp::os::Searchable &par);
364 virtual bool close();
365
366 virtual bool initialised();
367 virtual eth::iethresType_t type();
368 virtual bool update(eOprotID32_t id32, double timestamp, void *rxdata);
369 virtual bool getEntityName(uint32_t entityId, std::string &entityName);
370 virtual bool getEncoderTypeName(uint32_t jomoId, eOmc_position_t pos, std::string &encoderTypeName) override;
371 virtual bool getEntityControlModeName(uint32_t entityId, eOenum08_t control_mode, std::string &controlModeName, eObool_t compact_string) override;
372
374 virtual ReturnValue getAvailablePidsRaw(int j, std::vector<PidControlTypeEnum>& avail) override;
375 virtual ReturnValue setPidRaw(const PidControlTypeEnum& pidtype, int j, const Pid &pid) override;
376 virtual ReturnValue setPidsRaw(const PidControlTypeEnum& pidtype, const Pid *pids) override;
377 virtual ReturnValue setPidReferenceRaw(const PidControlTypeEnum& pidtype, int j, double ref) override;
378 virtual ReturnValue setPidReferencesRaw(const PidControlTypeEnum& pidtype, const double *refs) override;
379 virtual ReturnValue setPidErrorLimitRaw(const PidControlTypeEnum& pidtype, int j, double limit) override;
380 virtual ReturnValue setPidErrorLimitsRaw(const PidControlTypeEnum& pidtype, const double *limits) override;
381 virtual ReturnValue getPidErrorRaw(const PidControlTypeEnum& pidtype, int j, double *err) override;
382 virtual ReturnValue getPidErrorsRaw(const PidControlTypeEnum& pidtype, double *errs) override;
383 virtual ReturnValue getPidOutputRaw(const PidControlTypeEnum& pidtype, int j, double *out) override;
384 virtual ReturnValue getPidOutputsRaw(const PidControlTypeEnum& pidtype, double *outs) override;
385 virtual ReturnValue getPidRaw(const PidControlTypeEnum& pidtype, int j, Pid *pid) override;
386 virtual ReturnValue getPidsRaw(const PidControlTypeEnum& pidtype, Pid *pids) override;
387 virtual ReturnValue getPidReferenceRaw(const PidControlTypeEnum& pidtype, int j, double *ref) override;
388 virtual ReturnValue getPidReferencesRaw(const PidControlTypeEnum& pidtype, double *refs) override;
389 virtual ReturnValue getPidErrorLimitRaw(const PidControlTypeEnum& pidtype, int j, double *limit) override;
390 virtual ReturnValue getPidErrorLimitsRaw(const PidControlTypeEnum& pidtype, double *limits) override;
391 virtual ReturnValue resetPidRaw(const PidControlTypeEnum& pidtype, int j) override;
392 virtual ReturnValue disablePidRaw(const PidControlTypeEnum& pidtype, int j) override;
393 virtual ReturnValue enablePidRaw(const PidControlTypeEnum& pidtype, int j) override;
394 virtual ReturnValue setPidOffsetRaw(const PidControlTypeEnum& pidtype, int j, double v) override;
395 virtual ReturnValue setPidFeedforwardRaw(const PidControlTypeEnum& pidtype,int j, double v) override;
396 virtual ReturnValue getPidOffsetRaw(const PidControlTypeEnum& pidtype,int j, double& v) override;
397 virtual ReturnValue getPidFeedforwardRaw(const PidControlTypeEnum& pidtype,int j, double& v) override;
398 virtual ReturnValue isPidEnabledRaw(const PidControlTypeEnum& pidtype, int j, bool& enabled) override;
399 virtual ReturnValue getPidExtraInfoRaw(const PidControlTypeEnum& pidtype, int j, yarp::dev::PidExtraInfo& units) override;
400 virtual ReturnValue getPidExtraInfosRaw(const PidControlTypeEnum& pidtype, std::vector<yarp::dev::PidExtraInfo>& units) override;
401
402 // POSITION CONTROL INTERFACE RAW
403 virtual ReturnValue positionMoveRaw(int j, double ref) override;
404 virtual ReturnValue positionMoveRaw(const double *refs) override;
405 virtual ReturnValue relativeMoveRaw(int j, double delta) override;
406 virtual ReturnValue relativeMoveRaw(const double *deltas) override;
407 virtual ReturnValue checkMotionDoneRaw(bool &flag) override;
408 virtual ReturnValue checkMotionDoneRaw(int j, bool &flag) override;
409 virtual ReturnValue setTrajSpeedRaw(int j, double sp) override;
410 virtual ReturnValue setTrajSpeedsRaw(const double *spds) override;
411 virtual ReturnValue setTrajAccelerationRaw(int j, double acc) override;
412 virtual ReturnValue setTrajAccelerationsRaw(const double *accs) override;
413 virtual ReturnValue getTrajSpeedRaw(int j, double *ref) override;
414 virtual ReturnValue getTrajSpeedsRaw(double *spds) override;
415 virtual ReturnValue getTrajAccelerationRaw(int j, double *acc) override;
416 virtual ReturnValue getTrajAccelerationsRaw(double *accs) override;
417 virtual ReturnValue stopRaw(int j) override;
418 virtual ReturnValue stopRaw() override;
419
420
421 // Position Control2 Interface
422 virtual ReturnValue positionMoveRaw(const int n_joint, const int *joints, const double *refs) override;
423 virtual ReturnValue relativeMoveRaw(const int n_joint, const int *joints, const double *deltas) override;
424 virtual ReturnValue checkMotionDoneRaw(const std::vector<int>& joints, bool& flag) override;
425 virtual ReturnValue setTrajSpeedsRaw(const int n_joint, const int *joints, const double *spds) override;
426 virtual ReturnValue setTrajAccelerationsRaw(const int n_joint, const int *joints, const double *accs) override;
427 virtual ReturnValue getTrajSpeedsRaw(const int n_joint, const int *joints, double *spds) override;
428 virtual ReturnValue getTrajAccelerationsRaw(const int n_joint, const int *joints, double *accs) override;
429 virtual ReturnValue stopRaw(const int n_joint, const int *joints) override;
430 virtual ReturnValue getTargetPositionRaw(const int joint, double *ref) override;
431 virtual ReturnValue getTargetPositionsRaw(double *refs) override;
432 virtual ReturnValue getTargetPositionsRaw(const int n_joint, const int *joints, double *refs) override;
433
434 // Velocity control interface raw
435 virtual ReturnValue velocityMoveRaw(int j, double sp) override;
436 virtual ReturnValue velocityMoveRaw(const double *sp) override;
437
438
439 // calibration2raw
440 virtual ReturnValue setCalibrationParametersRaw(int axis, const CalibrationParameters& params) override;
441 virtual ReturnValue calibrateAxisWithParamsRaw(int axis, unsigned int type, double p1, double p2, double p3) override;
442 virtual ReturnValue calibrationDoneRaw(int j) override;
443
444
446
447 // ControlMode
448 virtual ReturnValue getAvailableControlModesRaw(int j, std::vector<yarp::dev::SelectableControlModeEnum>& avail) override;
449 virtual ReturnValue getControlModeRaw(int j, yarp::dev::ControlModeEnum& mode) override;
450 virtual ReturnValue getControlModesRaw(std::vector<yarp::dev::ControlModeEnum>& mode) override;
451
452 // ControlMode 2
453 virtual ReturnValue getControlModesRaw(const std::vector<int>& joints, std::vector<yarp::dev::ControlModeEnum>& mode) override;
454 virtual ReturnValue setControlModeRaw(int j, yarp::dev::SelectableControlModeEnum mode) override;
455 virtual ReturnValue setControlModesRaw(const std::vector<int>& joints, const std::vector<yarp::dev::SelectableControlModeEnum>& modes) override;
456 virtual ReturnValue setControlModesRaw(const std::vector<yarp::dev::SelectableControlModeEnum>& modes) override;
457
459 virtual ReturnValue resetEncoderRaw(int j) override;
460 virtual ReturnValue resetEncodersRaw() override;
461 virtual ReturnValue setEncoderRaw(int j, double val) override;
462 virtual ReturnValue setEncodersRaw(const double *vals) override;
463 virtual ReturnValue getEncoderRaw(int j, double *v) override;
464 virtual ReturnValue getEncodersRaw(double *encs) override;
465 virtual ReturnValue getEncoderSpeedRaw(int j, double *sp) override;
466 virtual ReturnValue getEncoderSpeedsRaw(double *spds) override;
467 virtual ReturnValue getEncoderAccelerationRaw(int j, double *spds) override;
468 virtual ReturnValue getEncoderAccelerationsRaw(double *accs) override;
470
471 virtual ReturnValue getEncodersTimedRaw(double *encs, double *stamps) override;
472 virtual ReturnValue getEncoderTimedRaw(int j, double *encs, double *stamp) override;
473
475 virtual ReturnValue getNumberOfMotorEncodersRaw(int * num) override;
476 virtual ReturnValue resetMotorEncoderRaw(int m) override;
477 virtual ReturnValue resetMotorEncodersRaw() override;
478 virtual ReturnValue setMotorEncoderRaw(int m, const double val) override;
479 virtual ReturnValue setMotorEncodersRaw(const double *vals) override;
480 virtual ReturnValue getMotorEncoderRaw(int m, double *v) override;
481 virtual ReturnValue getMotorEncodersRaw(double *encs) override;
482 virtual ReturnValue getMotorEncoderSpeedRaw(int m, double *sp) override;
483 virtual ReturnValue getMotorEncoderSpeedsRaw(double *spds) override;
484 virtual ReturnValue getMotorEncoderAccelerationRaw(int m, double *spds) override;
485 virtual ReturnValue getMotorEncoderAccelerationsRaw(double *accs) override;
486 virtual ReturnValue getMotorEncodersTimedRaw(double *encs, double *stamps) override;
487 virtual ReturnValue getMotorEncoderTimedRaw(int m, double *encs, double *stamp) override;
488 virtual ReturnValue getMotorEncoderCountsPerRevolutionRaw(int m, double *v) override;
489 virtual ReturnValue setMotorEncoderCountsPerRevolutionRaw(int m, const double cpr) override;
491
493 virtual ReturnValue getRemoteVariableRaw(std::string key, yarp::os::Bottle& val) override;
494 virtual ReturnValue setRemoteVariableRaw(std::string key, const yarp::os::Bottle& val) override;
495 virtual ReturnValue getRemoteVariablesListRaw(yarp::os::Bottle* listOfKeys) override;
497
499 virtual ReturnValue getAxisNameRaw(int axis, std::string& name) override;
500 virtual ReturnValue getJointTypeRaw(int axis, yarp::dev::JointTypeEnum& type) override;
502
503 //Internal use, not exposed by Yarp (yet)
504 bool getRotorEncoderResolutionRaw(int m, double &rotres) ;
505 bool getJointEncoderResolutionRaw(int m, double &jntres) ;
506 bool getJointEncoderTypeRaw(int j, int &type) ;
507 bool getRotorEncoderTypeRaw(int j, int &type) ;
508 bool getKinematicMJRaw(int j, double &rotres) ;
509 bool getTemperatureSensorTypeRaw(int j, std::string& ret) ;
510 bool getHasTempSensorsRaw(int j, int& ret) ;
511 bool getHasHallSensorRaw(int j, int& ret) ;
512 bool getHasRotorEncoderRaw(int j, int& ret) ;
513 bool getHasRotorEncoderIndexRaw(int j, int& ret) ;
514 bool getMotorPolesRaw(int j, int& poles) ;
515 bool getRotorIndexOffsetRaw(int j, double& rotorOffset) ;
516 bool getTorqueControlFilterType(int j, int& type) ;
517 bool getRotorLimitsRaw(int j, double *rotorMin, double *rotorMax) ;
518 bool getWholeImpedanceRaw(int j, eOmc_impedance_t &imped);
519
521 virtual ReturnValue enableAmpRaw(int j) override;
522 virtual ReturnValue disableAmpRaw(int j) override;
523 virtual ReturnValue getCurrentsRaw(double *vals) override;
524 virtual ReturnValue getCurrentRaw(int j, double *val) override;
525 virtual ReturnValue setMaxCurrentRaw(int j, double val) override;
526 virtual ReturnValue getMaxCurrentRaw(int j, double *val) override;
527 virtual ReturnValue getAmpStatusRaw(int *st) override;
528 virtual ReturnValue getAmpStatusRaw(int j, int *st) override;
529 virtual ReturnValue getPWMRaw(int j, double* val) override;
530 virtual ReturnValue getPWMLimitRaw(int j, double* val) override;
531 virtual ReturnValue setPWMLimitRaw(int j, const double val) override;
532 virtual ReturnValue getPowerSupplyVoltageRaw(int j, double* val) override;
533
535
536 // virtual analog sensor
537 virtual yarp::dev::VAS_status getVirtualAnalogSensorStatus(int ch) override;
538 virtual int getVirtualAnalogSensorChannels() override;
539 virtual bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &fTorques) override;
540 virtual bool updateVirtualAnalogSensorMeasure(int j, double &fTorque) override;
541
542#ifdef IMPLEMENT_DEBUG_INTERFACE
543 //----------------------------------------------
544 // Debug interface
545 //----------------------------------------------
546 virtual bool setParameterRaw(int j, unsigned int type, double value) override;
547 virtual bool getParameterRaw(int j, unsigned int type, double *value) override;
548 virtual bool setDebugParameterRaw(int j, unsigned int index, double value) override;
549 virtual bool setDebugReferencePositionRaw(int j, double value) override;
550 virtual bool getDebugParameterRaw(int j, unsigned int index, double *value) override;
551 virtual bool getDebugReferencePositionRaw(int j, double *value) override;
552#endif
553
554 // Limits
555 virtual ReturnValue setPosLimitsRaw(int axis, double min, double max) override;
556 virtual ReturnValue getPosLimitsRaw(int axis, double *min, double *max) override;
557 // Limits 2
558 virtual ReturnValue setVelLimitsRaw(int axis, double min, double max) override;
559 virtual ReturnValue getVelLimitsRaw(int axis, double *min, double *max) override;
560
561 // Torque control
562 virtual ReturnValue getTorqueRaw(int j, double *t) override;
563 virtual ReturnValue getTorquesRaw(double *t) override;
564 virtual ReturnValue getTorqueRangeRaw(int j, double *min, double *max) override;
565 virtual ReturnValue getTorqueRangesRaw(double *min, double *max) override;
566 virtual ReturnValue setRefTorquesRaw(const double *t) override;
567 virtual ReturnValue setRefTorqueRaw(int j, double t) override;
568 virtual ReturnValue setRefTorquesRaw(const int n_joint, const int *joints, const double *t) override;
569 virtual ReturnValue getRefTorquesRaw(double *t) override;
570 virtual ReturnValue getRefTorqueRaw(int j, double *t) override;
571 virtual ReturnValue getMotorTorqueParamsRaw(int j, MotorTorqueParameters *params) override;
572 virtual ReturnValue setMotorTorqueParamsRaw(int j, const MotorTorqueParameters params) override;
573
574
575 // IVelocityControl2
576 virtual ReturnValue velocityMoveRaw(const int n_joint, const int *joints, const double *spds) override;
577 virtual ReturnValue getTargetVelocityRaw(const int joint, double *ref) override;
578 virtual ReturnValue getTargetVelocitiesRaw(double *refs) override;
579 virtual ReturnValue getTargetVelocitiesRaw(const int n_joint, const int *joints, double *refs) override;
580
581
582 // Impedance interface
583 virtual ReturnValue getImpedanceRaw(int j, double *stiffness, double *damping) override;
584 virtual ReturnValue setImpedanceRaw(int j, double stiffness, double damping) override;
585 virtual ReturnValue setImpedanceOffsetRaw(int j, double offset) override;
586 virtual ReturnValue getImpedanceOffsetRaw(int j, double *offset) override;
587 virtual ReturnValue getCurrentImpedanceLimitRaw(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override;
588
589 // PositionDirect Interface
590 virtual ReturnValue setPositionRaw(int j, double ref) override;
591 virtual ReturnValue setPositionsRaw(const int n_joint, const int *joints, const double *refs) override;
592 virtual ReturnValue setPositionsRaw(const double *refs) override;
593 virtual ReturnValue getRefPositionRaw(const int joint, double *ref) override;
594 virtual ReturnValue getRefPositionsRaw(double *refs) override;
595 virtual ReturnValue getRefPositionsRaw(const int n_joint, const int *joints, double *refs) override;
596
597 // InteractionMode interface
598 virtual ReturnValue getInteractionModeRaw(int j, yarp::dev::InteractionModeEnum & _mode) override;
599 virtual ReturnValue getInteractionModesRaw(const std::vector<int>& joints, std::vector<yarp::dev::InteractionModeEnum>& modes) override;
600 virtual ReturnValue getInteractionModesRaw(std::vector<yarp::dev::InteractionModeEnum>& modes) override;
601 virtual ReturnValue setInteractionModeRaw(int j, yarp::dev::InteractionModeEnum _mode) override;
602 virtual ReturnValue setInteractionModesRaw(const std::vector<int>& joints, const std::vector<yarp::dev::InteractionModeEnum>& modes) override;
603 virtual ReturnValue setInteractionModesRaw(const std::vector<yarp::dev::InteractionModeEnum>& modes) override;
604
605 // IMotor interface
606 virtual ReturnValue getNumberOfMotorsRaw(int * num) override;
607 virtual ReturnValue getTemperatureRaw(int m, double* val) override;
608 virtual ReturnValue getTemperaturesRaw(double *vals) override;
609 virtual ReturnValue getTemperatureLimitRaw(int m, double *temp) override;
610 virtual ReturnValue setTemperatureLimitRaw(int m, const double temp) override;
611 virtual ReturnValue getPeakCurrentRaw(int m, double *val) override;
612 virtual ReturnValue setPeakCurrentRaw(int m, const double val) override;
613 virtual ReturnValue getNominalCurrentRaw(int m, double *val) override;
614 virtual ReturnValue setNominalCurrentRaw(int m, const double val) override;
615 virtual ReturnValue getGearboxRatioRaw(int m, double *gearbox) override;
616 virtual ReturnValue setGearboxRatioRaw(int m, const double val) override;
617
618 // PWMControl
619 virtual ReturnValue setRefDutyCycleRaw(int j, double v) override;
620 virtual ReturnValue setRefDutyCyclesRaw(const double *v) override;
621 virtual ReturnValue getRefDutyCycleRaw(int j, double *v) override;
622 virtual ReturnValue getRefDutyCyclesRaw(double *v) override;
623 virtual ReturnValue getDutyCycleRaw(int j, double *v) override;
624 virtual ReturnValue getDutyCyclesRaw(double *v) override;
625
626 // CurrentControl
627 // virtual bool getAxes(int *ax) override;
628 //virtual bool getCurrentRaw(int j, double *t) override;
629 //virtual bool getCurrentsRaw(double *t) override;
630 virtual ReturnValue getCurrentRangeRaw(int j, double *min, double *max) override;
631 virtual ReturnValue getCurrentRangesRaw(double *min, double *max) override;
632 virtual ReturnValue setRefCurrentsRaw(const double *t) override;
633 virtual ReturnValue setRefCurrentRaw(int j, double t) override;
634 virtual ReturnValue setRefCurrentsRaw(const int n_joint, const int *joints, const double *t) override;
635 virtual ReturnValue getRefCurrentsRaw(double *t) override;
636 virtual ReturnValue getRefCurrentRaw(int j, double *t) override;
637
638 // Used in joint faults interface
639 // Teturns true if it was successful and writes the fault code in the fault parameter
640 // with the associated string in message. If no fault is detected the fault parameters is set to -1.
641 // Returns false and fault is set to -2 if retrieval was unsuccessful.
642 virtual ReturnValue getLastJointFaultRaw(int j, int& fault, std::string& message) override;
643
644 // IRawValuesPublisher
645 virtual bool getRawDataMap(std::map<std::string, std::vector<std::int32_t>> &map) override;
646 virtual bool getRawData(std::string key, std::vector<std::int32_t> &data) override;
647 virtual bool getKeys(std::vector<std::string> &keys) override;
648 virtual int getNumberOfKeys() override;
649 virtual bool getMetadataMap(rawValuesKeyMetadataMap &metamap) override;
650 virtual bool getKeyMetadata(std::string key, rawValuesKeyMetadata &meta) override;
651 virtual bool getAxesNames(std::string key, std::vector<std::string> &axesNames) override;
652
653 // VelocityDirect Interface
654 virtual ReturnValue getAxes(size_t& axes) override;
655 virtual ReturnValue setRefVelocityRaw(int jnt, double vel) override;
656 virtual ReturnValue setRefVelocityRaw(const std::vector<double>& vels) override;
657 virtual ReturnValue setRefVelocityRaw(const std::vector<int>& jnts, const std::vector<double>& vels) override;
658 virtual ReturnValue getRefVelocityRaw(const int jnt, double& vel) override;
659 virtual ReturnValue getRefVelocityRaw(std::vector<double>& vels) override;
660 virtual ReturnValue getRefVelocityRaw(const std::vector<int>& jnts, std::vector<double>& vels) override;
661
662 //DeviceDriverParams
663 virtual bool parseParams(const yarp::os::Searchable& config)override;
664
669 virtual std::string getDeviceClassName() const override;
670
675 virtual std::string getDeviceName() const override;
676
681 virtual std::string getDocumentationOfDeviceParams() const override;
682
687 virtual std::vector<std::string> getListOfParams() const override;
688
693 virtual bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
694
699 virtual std::string getConfiguration() const override;
700
701 // IjointBrake
702 virtual yarp::dev::ReturnValue isJointBrakedRaw(int j, bool& braked) const override;
703 virtual yarp::dev::ReturnValue setManualBrakeActiveRaw(int j, bool active) override;
704 virtual yarp::dev::ReturnValue setAutoBrakeEnabledRaw(int j, bool enabled) override;
705 virtual yarp::dev::ReturnValue getAutoBrakeEnabledRaw(int j, bool& enabled) const override;
706
707};
708
709#endif // include guard
@ data
Tools::Emb_RensponseTimingVerifier.
embObjMotionControl : driver for iCub motor control boards EMS on a ETH bus.
virtual ReturnValue getEncoderSpeedsRaw(double *spds) override
virtual ReturnValue getCurrentRangeRaw(int j, double *min, double *max) override
virtual ReturnValue getPidExtraInfosRaw(const PidControlTypeEnum &pidtype, std::vector< yarp::dev::PidExtraInfo > &units) override
virtual ReturnValue setInteractionModesRaw(const std::vector< int > &joints, const std::vector< yarp::dev::InteractionModeEnum > &modes) override
virtual bool getRawData(std::string key, std::vector< std::int32_t > &data) override
virtual ReturnValue getRefTorqueRaw(int j, double *t) override
virtual ReturnValue getPWMRaw(int j, double *val) override
virtual ReturnValue setEncoderRaw(int j, double val) override
virtual ReturnValue setPidReferenceRaw(const PidControlTypeEnum &pidtype, int j, double ref) override
virtual ReturnValue getPidErrorsRaw(const PidControlTypeEnum &pidtype, double *errs) override
virtual bool getEncoderTypeName(uint32_t jomoId, eOmc_position_t pos, std::string &encoderTypeName) override
virtual ReturnValue enablePidRaw(const PidControlTypeEnum &pidtype, int j) override
virtual ReturnValue setImpedanceOffsetRaw(int j, double offset) override
virtual ReturnValue disablePidRaw(const PidControlTypeEnum &pidtype, int j) override
virtual std::string getDeviceName() const override
Get the name of the device (i.e.
virtual ReturnValue setRefCurrentsRaw(const double *t) override
bool getRotorEncoderTypeRaw(int j, int &type)
virtual ReturnValue getAvailablePidsRaw(int j, std::vector< PidControlTypeEnum > &avail) override
virtual ReturnValue resetEncodersRaw() override
virtual ReturnValue setRefTorquesRaw(const double *t) override
virtual ReturnValue getRemoteVariablesListRaw(yarp::os::Bottle *listOfKeys) override
virtual ReturnValue getEncoderTimedRaw(int j, double *encs, double *stamp) override
virtual ReturnValue setPosLimitsRaw(int axis, double min, double max) override
virtual bool update(eOprotID32_t id32, double timestamp, void *rxdata)
virtual ReturnValue disableAmpRaw(int j) override
virtual ReturnValue getMotorEncoderAccelerationsRaw(double *accs) override
virtual ReturnValue getMotorEncoderTimedRaw(int m, double *encs, double *stamp) override
virtual ReturnValue getPeakCurrentRaw(int m, double *val) override
bool getHasRotorEncoderRaw(int j, int &ret)
virtual ReturnValue setRefVelocityRaw(int jnt, double vel) override
virtual ReturnValue calibrateAxisWithParamsRaw(int axis, unsigned int type, double p1, double p2, double p3) override
virtual ReturnValue setImpedanceRaw(int j, double stiffness, double damping) override
virtual ReturnValue getImpedanceRaw(int j, double *stiffness, double *damping) override
virtual ReturnValue calibrationDoneRaw(int j) override
virtual ReturnValue setPidErrorLimitRaw(const PidControlTypeEnum &pidtype, int j, double limit) override
virtual ReturnValue getRefPositionRaw(const int joint, double *ref) override
virtual ReturnValue getTrajAccelerationsRaw(double *accs) override
virtual ReturnValue getTargetVelocityRaw(const int joint, double *ref) override
virtual ReturnValue getTorquesRaw(double *t) override
virtual ReturnValue getMotorEncodersRaw(double *encs) override
virtual ReturnValue getAxisNameRaw(int axis, std::string &name) override
virtual ReturnValue setControlModesRaw(const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override
virtual ReturnValue getPidRaw(const PidControlTypeEnum &pidtype, int j, Pid *pid) override
virtual ReturnValue setPositionsRaw(const int n_joint, const int *joints, const double *refs) override
bool getRotorLimitsRaw(int j, double *rotorMin, double *rotorMax)
virtual ReturnValue getTorqueRangeRaw(int j, double *min, double *max) override
virtual std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
virtual bool open(yarp::os::Searchable &par)
virtual ReturnValue getTargetPositionRaw(const int joint, double *ref) override
virtual ReturnValue setRefCurrentRaw(int j, double t) override
virtual ReturnValue setPositionRaw(int j, double ref) override
bool getJointEncoderResolutionRaw(int m, double &jntres)
virtual ReturnValue getEncodersTimedRaw(double *encs, double *stamps) override
virtual ReturnValue setPidFeedforwardRaw(const PidControlTypeEnum &pidtype, int j, double v) override
virtual ReturnValue setPidReferencesRaw(const PidControlTypeEnum &pidtype, const double *refs) override
virtual ReturnValue setNominalCurrentRaw(int m, const double val) override
virtual ReturnValue getNumberOfMotorEncodersRaw(int *num) override
virtual ReturnValue getMotorEncodersTimedRaw(double *encs, double *stamps) override
virtual bool getEntityName(uint32_t entityId, std::string &entityName)
virtual eth::iethresType_t type()
virtual ReturnValue getEncoderSpeedRaw(int j, double *sp) override
bool getTemperatureSensorTypeRaw(int j, std::string &ret)
virtual bool getEntityControlModeName(uint32_t entityId, eOenum08_t control_mode, std::string &controlModeName, eObool_t compact_string) override
virtual ReturnValue getTorqueRaw(int j, double *t) override
virtual ReturnValue getPidErrorLimitRaw(const PidControlTypeEnum &pidtype, int j, double *limit) override
virtual yarp::dev::ReturnValue isJointBrakedRaw(int j, bool &braked) const override
virtual bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &fTorques) override
virtual ReturnValue setControlModeRaw(int j, yarp::dev::SelectableControlModeEnum mode) override
virtual ReturnValue getTrajAccelerationRaw(int j, double *acc) override
virtual ReturnValue getMotorEncoderRaw(int m, double *v) override
virtual yarp::dev::ReturnValue setAutoBrakeEnabledRaw(int j, bool enabled) override
virtual ReturnValue getNumberOfMotorsRaw(int *num) override
virtual ReturnValue getCurrentRangesRaw(double *min, double *max) override
virtual ReturnValue getTemperaturesRaw(double *vals) override
virtual ReturnValue getPidExtraInfoRaw(const PidControlTypeEnum &pidtype, int j, yarp::dev::PidExtraInfo &units) override
virtual ReturnValue getPidOffsetRaw(const PidControlTypeEnum &pidtype, int j, double &v) override
virtual ReturnValue getControlModeRaw(int j, yarp::dev::ControlModeEnum &mode) override
virtual yarp::dev::VAS_status getVirtualAnalogSensorStatus(int ch) override
virtual ReturnValue setMotorEncodersRaw(const double *vals) override
virtual ReturnValue getPidReferenceRaw(const PidControlTypeEnum &pidtype, int j, double *ref) override
virtual ReturnValue getCurrentImpedanceLimitRaw(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override
virtual ReturnValue resetEncoderRaw(int j) override
virtual ReturnValue setVelLimitsRaw(int axis, double min, double max) override
virtual ReturnValue getMotorEncoderSpeedRaw(int m, double *sp) override
virtual ReturnValue getAvailableControlModesRaw(int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail) override
virtual std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
virtual ReturnValue setPeakCurrentRaw(int m, const double val) override
virtual ReturnValue setPidsRaw(const PidControlTypeEnum &pidtype, const Pid *pids) override
virtual ReturnValue setMotorTorqueParamsRaw(int j, const MotorTorqueParameters params) override
virtual std::string getConfiguration() const override
Return the configuration of the device.
virtual ReturnValue getRefCurrentsRaw(double *t) override
virtual ReturnValue getTrajSpeedRaw(int j, double *ref) override
virtual ReturnValue getMotorEncoderCountsPerRevolutionRaw(int m, double *v) override
virtual bool getRawDataMap(std::map< std::string, std::vector< std::int32_t > > &map) override
virtual ReturnValue getPidOutputRaw(const PidControlTypeEnum &pidtype, int j, double *out) override
virtual ReturnValue getRefTorquesRaw(double *t) override
virtual ReturnValue getPowerSupplyVoltageRaw(int j, double *val) override
virtual ReturnValue getTorqueRangesRaw(double *min, double *max) override
virtual ReturnValue getImpedanceOffsetRaw(int j, double *offset) override
virtual ReturnValue getNominalCurrentRaw(int m, double *val) override
virtual ReturnValue stopRaw() override
virtual bool getMetadataMap(rawValuesKeyMetadataMap &metamap) override
virtual ReturnValue getPidOutputsRaw(const PidControlTypeEnum &pidtype, double *outs) override
virtual ReturnValue getPidReferencesRaw(const PidControlTypeEnum &pidtype, double *refs) override
virtual ReturnValue getAmpStatusRaw(int *st) override
virtual ReturnValue getMotorTorqueParamsRaw(int j, MotorTorqueParameters *params) override
virtual ReturnValue setTrajAccelerationRaw(int j, double acc) override
virtual ReturnValue setInteractionModeRaw(int j, yarp::dev::InteractionModeEnum _mode) override
virtual ReturnValue setMotorEncoderRaw(int m, const double val) override
virtual ReturnValue positionMoveRaw(int j, double ref) override
virtual ReturnValue getRefPositionsRaw(double *refs) override
virtual ReturnValue getTargetPositionsRaw(double *refs) override
virtual ReturnValue getTemperatureRaw(int m, double *val) override
bool getRotorEncoderResolutionRaw(int m, double &rotres)
virtual ReturnValue getPWMLimitRaw(int j, double *val) override
virtual ReturnValue setEncodersRaw(const double *vals) override
virtual ReturnValue getLastJointFaultRaw(int j, int &fault, std::string &message) override
virtual ReturnValue getDutyCycleRaw(int j, double *v) override
virtual ReturnValue setRemoteVariableRaw(std::string key, const yarp::os::Bottle &val) override
virtual ReturnValue getEncoderAccelerationsRaw(double *accs) override
bool getWholeImpedanceRaw(int j, eOmc_impedance_t &imped)
virtual ReturnValue checkMotionDoneRaw(bool &flag) override
virtual ReturnValue setCalibrationParametersRaw(int axis, const CalibrationParameters &params) override
bool getJointEncoderTypeRaw(int j, int &type)
virtual ReturnValue getJointTypeRaw(int axis, yarp::dev::JointTypeEnum &type) override
virtual ReturnValue setPWMLimitRaw(int j, const double val) override
virtual ReturnValue setRefDutyCycleRaw(int j, double v) override
virtual ReturnValue getEncoderAccelerationRaw(int j, double *spds) override
virtual ReturnValue isPidEnabledRaw(const PidControlTypeEnum &pidtype, int j, bool &enabled) override
virtual ReturnValue getPidFeedforwardRaw(const PidControlTypeEnum &pidtype, int j, double &v) override
virtual ReturnValue setRefTorqueRaw(int j, double t) override
virtual ReturnValue getAxes(size_t &axes) override
virtual ReturnValue setTrajSpeedRaw(int j, double sp) override
virtual ReturnValue getCurrentRaw(int j, double *val) override
virtual ReturnValue setRefDutyCyclesRaw(const double *v) override
virtual ReturnValue setMaxCurrentRaw(int j, double val) override
virtual ReturnValue getPidErrorRaw(const PidControlTypeEnum &pidtype, int j, double *err) override
virtual ReturnValue getMotorEncoderAccelerationRaw(int m, double *spds) override
virtual ReturnValue getEncoderRaw(int j, double *v) override
bool getMotorPolesRaw(int j, int &poles)
virtual ReturnValue getPosLimitsRaw(int axis, double *min, double *max) override
virtual ReturnValue setTemperatureLimitRaw(int m, const double temp) override
virtual ReturnValue getRemoteVariableRaw(std::string key, yarp::os::Bottle &val) override
virtual ReturnValue getRefVelocityRaw(const int jnt, double &vel) override
virtual bool getKeys(std::vector< std::string > &keys) override
bool getKinematicMJRaw(int j, double &rotres)
virtual std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
virtual ReturnValue velocityMoveRaw(int j, double sp) override
virtual yarp::dev::ReturnValue setManualBrakeActiveRaw(int j, bool active) override
virtual yarp::dev::ReturnValue getAutoBrakeEnabledRaw(int j, bool &enabled) const override
virtual ReturnValue getInteractionModeRaw(int j, yarp::dev::InteractionModeEnum &_mode) override
virtual ReturnValue resetMotorEncodersRaw() override
virtual ReturnValue getEncodersRaw(double *encs) override
virtual ReturnValue resetPidRaw(const PidControlTypeEnum &pidtype, int j) override
virtual ReturnValue relativeMoveRaw(int j, double delta) override
virtual ReturnValue getTemperatureLimitRaw(int m, double *temp) override
virtual bool getAxesNames(std::string key, std::vector< std::string > &axesNames) override
virtual ReturnValue getRefDutyCycleRaw(int j, double *v) override
virtual bool parseParams(const yarp::os::Searchable &config) override
virtual ReturnValue getRefDutyCyclesRaw(double *v) override
virtual ReturnValue getInteractionModesRaw(const std::vector< int > &joints, std::vector< yarp::dev::InteractionModeEnum > &modes) override
virtual ReturnValue getDutyCyclesRaw(double *v) override
virtual ReturnValue setTrajAccelerationsRaw(const double *accs) override
virtual ReturnValue setPidRaw(const PidControlTypeEnum &pidtype, int j, const Pid &pid) override
virtual ReturnValue getControlModesRaw(std::vector< yarp::dev::ControlModeEnum > &mode) override
virtual ReturnValue getMotorEncoderSpeedsRaw(double *spds) override
virtual ReturnValue getTrajSpeedsRaw(double *spds) override
virtual ReturnValue getCurrentsRaw(double *vals) override
virtual ReturnValue setTrajSpeedsRaw(const double *spds) override
bool getTorqueControlFilterType(int j, int &type)
virtual ReturnValue getRefCurrentRaw(int j, double *t) override
virtual ReturnValue getVelLimitsRaw(int axis, double *min, double *max) override
virtual int getVirtualAnalogSensorChannels() override
bool getRotorIndexOffsetRaw(int j, double &rotorOffset)
virtual ReturnValue getMaxCurrentRaw(int j, double *val) override
virtual ReturnValue resetMotorEncoderRaw(int m) override
virtual ReturnValue setPidOffsetRaw(const PidControlTypeEnum &pidtype, int j, double v) override
virtual ReturnValue setGearboxRatioRaw(int m, const double val) override
virtual bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
virtual ReturnValue setMotorEncoderCountsPerRevolutionRaw(int m, const double cpr) override
virtual ReturnValue setPidErrorLimitsRaw(const PidControlTypeEnum &pidtype, const double *limits) override
virtual bool getKeyMetadata(std::string key, rawValuesKeyMetadata &meta) override
virtual ReturnValue getGearboxRatioRaw(int m, double *gearbox) override
virtual ReturnValue getPidsRaw(const PidControlTypeEnum &pidtype, Pid *pids) override
virtual ReturnValue getTargetVelocitiesRaw(double *refs) override
virtual ReturnValue getPidErrorLimitsRaw(const PidControlTypeEnum &pidtype, double *limits) override
bool getHasRotorEncoderIndexRaw(int j, int &ret)
virtual ReturnValue enableAmpRaw(int j) override
void updatePrevTemperature(double temperature)
TemperatureFilter(TemperatureFilter &&other) noexcept=default
TemperatureFilter & operator=(const TemperatureFilter &other)=default
TemperatureFilter(const TemperatureFilter &other)=default
TemperatureFilter & operator=(TemperatureFilter &&other) noexcept=default
TemperatureFilter(uint32_t threshold, int32_t initCounter)
Watchdog & operator=(const Watchdog &other)=default
void setThreshold(uint8_t txrateOfRegularROPs)
Watchdog(const Watchdog &other)=default
Watchdog(Watchdog &&other) noexcept=default
Watchdog & operator=(Watchdog &&other) noexcept=default
_3f_vect_t acc
Definition dataTypes.h:1
iethresType_t
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.
Copyright (C) 2008 RobotCub Consortium.
out
Definition sine.m:8
degrees offset
Definition sine.m:4
std::vector< BufferedPort< Bottle > * > ports
eOmn_serv_diagn_cfg_t config
vector< eOmc_jointset_configuration_t > jointset_cfgs