YARP
Yet Another Robot Platform
ControlBoardRemapper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPER_H
10 #define YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPER_H
11 
12 #include <yarp/os/Network.h>
13 
15 #include <yarp/dev/PolyDriver.h>
18 #include <yarp/os/Semaphore.h>
20 
21 #include <string>
22 #include <vector>
23 
25 
26 #ifdef MSVC
27  #pragma warning(disable:4355)
28 #endif
29 
81  public yarp::dev::IMotor,
91  public yarp::dev::IAxisInfo,
95 private:
96  std::vector<std::string> axesNames;
97  RemappedControlBoards remappedControlBoards;
98 
100  int controlledJoints{0};
101 
103  bool _verb{false};
104 
105  // to open ports and print more detailed debug messages
106  std::string partName;
107 
108  // Buffer data used to simplify implementation of multi joint methods
110 
111  // Buffer data used for full controlboard methods
113 
114  // Buffer data for multiple arbitrary joint methods
115  ControlBoardArbitraryAxesDecomposition selectedJointsBuffers;
116 
121  void setNrOfControlledAxes(const size_t nrOfControlledAxes);
122 
128  bool updateAxesName();
129 
133  void configureBuffers();
134 
135  // Parse device options
136  bool parseOptions(yarp::os::Property &prop);
137 
138  bool usingAxesNamesForAttachAll{false};
139  bool usingNetworksForAttachAll{false};
140 
141  /***
142  * Parse device options if networks option is passed
143  *
144  * This will fill the axesNames and controlledJoints attributes, while it
145  * leaves empty the remappedDevices attribute that will be then
146  * filled only at the attachAll method.
147  */
148  bool parseAxesNames(const yarp::os::Property &prop);
149 
150  /***
151  * Parse device options if networks option is passed
152  *
153  * This will fill the remappedDevices and controlledJoints attributes, while it
154  * leaves empty the axesNames attribute that will be then
155  * filled only at the attachAll method.
156  */
157  bool parseNetworks(const yarp::os::Property &prop);
158 
162  bool attachAllUsingNetworks(const yarp::dev::PolyDriverList &l);
163 
167  bool attachAllUsingAxesNames(const yarp::dev::PolyDriverList &l);
168 
173  bool setControlModeAllAxes(const int cm);
174 
175 
176 public:
177  ControlBoardRemapper() = default;
182  ~ControlBoardRemapper() override = default;
183 
188  bool verbose() const { return _verb; }
189 
194  bool close() override;
195 
196 
202  bool open(yarp::os::Searchable &prop) override;
203 
204  bool detachAll() override;
205 
206  bool attachAll(const yarp::dev::PolyDriverList &l) override;
207 
208  /* IPidControl */
209  bool setPid(const yarp::dev::PidControlTypeEnum& pidtype,int j, const yarp::dev::Pid &p) override;
210 
211  bool setPids(const yarp::dev::PidControlTypeEnum& pidtype,const yarp::dev::Pid *ps) override;
212 
213  bool setPidReference(const yarp::dev::PidControlTypeEnum& pidtype,int j, double ref) override;
214 
215  bool setPidReferences(const yarp::dev::PidControlTypeEnum& pidtype,const double *refs) override;
216 
217  bool setPidErrorLimit(const yarp::dev::PidControlTypeEnum& pidtype,int j, double limit) override;
218 
219  bool setPidErrorLimits(const yarp::dev::PidControlTypeEnum& pidtype,const double *limits) override;
220 
221  bool getPidError(const yarp::dev::PidControlTypeEnum& pidtype,int j, double *err) override;
222 
223  bool getPidErrors(const yarp::dev::PidControlTypeEnum& pidtype,double *errs) override;
224 
225  bool getPidOutput(const yarp::dev::PidControlTypeEnum& pidtype,int j, double *out) override;
226 
227  bool getPidOutputs(const yarp::dev::PidControlTypeEnum& pidtype,double *outs) override;
228 
229  bool setPidOffset(const yarp::dev::PidControlTypeEnum& pidtype,int j, double v) override;
230 
231  bool getPid(const yarp::dev::PidControlTypeEnum& pidtype,int j, yarp::dev::Pid *p) override;
232 
233  bool getPids(const yarp::dev::PidControlTypeEnum& pidtype,yarp::dev::Pid *pids) override;
234 
235  bool getPidReference(const yarp::dev::PidControlTypeEnum& pidtype,int j, double *ref) override;
236 
237  bool getPidReferences(const yarp::dev::PidControlTypeEnum& pidtype,double *refs) override;
238 
239  bool getPidErrorLimit(const yarp::dev::PidControlTypeEnum& pidtype,int j, double *limit) override;
240 
241  bool getPidErrorLimits(const yarp::dev::PidControlTypeEnum& pidtype,double *limits) override;
242 
243  bool resetPid(const yarp::dev::PidControlTypeEnum& pidtype,int j) override;
244 
245  bool disablePid(const yarp::dev::PidControlTypeEnum& pidtype,int j) override;
246 
247  bool enablePid(const yarp::dev::PidControlTypeEnum& pidtype,int j) override;
248 
249  bool isPidEnabled(const yarp::dev::PidControlTypeEnum& pidtype, int j, bool* enabled) override;
250 
251  /* IPositionControl */
252  bool getAxes(int *ax) override;
253 
254  bool positionMove(int j, double ref) override;
255 
256  bool positionMove(const double *refs) override;
257 
258  bool positionMove(const int n_joints, const int *joints, const double *refs) override;
259 
260  bool getTargetPosition(const int joint, double *ref) override;
261 
262  bool getTargetPositions(double *refs) override;
263 
264  bool getTargetPositions(const int n_joint, const int *joints, double *refs) override;
265 
266  bool relativeMove(int j, double delta) override;
267 
268  bool relativeMove(const double *deltas) override;
269 
270  bool relativeMove(const int n_joints, const int *joints, const double *deltas) override;
271 
272  bool checkMotionDone(int j, bool *flag) override;
273 
274  bool checkMotionDone(bool *flag) override;
275 
276  bool checkMotionDone(const int n_joints, const int *joints, bool *flags) override;
277 
278  bool setRefSpeed(int j, double sp) override;
279 
280  bool setRefSpeeds(const double *spds) override;
281 
282  bool setRefSpeeds(const int n_joints, const int *joints, const double *spds) override;
283 
284  bool setRefAcceleration(int j, double acc) override;
285 
286  bool setRefAccelerations(const double *accs) override;
287 
288  bool setRefAccelerations(const int n_joints, const int *joints, const double *accs) override;
289 
290  bool getRefSpeed(int j, double *ref) override;
291 
292  bool getRefSpeeds(double *spds) override;
293 
294  bool getRefSpeeds(const int n_joints, const int *joints, double *spds) override;
295 
296  bool getRefAcceleration(int j, double *acc) override;
297 
298  bool getRefAccelerations(double *accs) override;
299 
300  bool getRefAccelerations(const int n_joints, const int *joints, double *accs) override;
301 
302  bool stop(int j) override;
303 
304  bool stop() override;
305 
306  bool stop(const int n_joints, const int *joints) override;
307 
308  /* IVelocityControl */
309  bool velocityMove(int j, double v) override;
310 
311  bool velocityMove(const double *v) override;
312 
313  /* IEncoders */
314  bool resetEncoder(int j) override;
315 
316  bool resetEncoders() override;
317 
318  bool setEncoder(int j, double val) override;
319 
320  bool setEncoders(const double *vals) override;
321 
322  bool getEncoder(int j, double *v) override;
323 
324  bool getEncoders(double *encs) override;
325 
326  bool getEncodersTimed(double *encs, double *t) override;
327 
328  bool getEncoderTimed(int j, double *v, double *t) override;
329 
330  bool getEncoderSpeed(int j, double *sp) override;
331 
332  bool getEncoderSpeeds(double *spds) override;
333 
334  bool getEncoderAcceleration(int j, double *acc) override;
335 
336  bool getEncoderAccelerations(double *accs) override;
337 
338  /* IMotorEncoders */
339  bool getNumberOfMotorEncoders(int *num) override;
340 
341  bool resetMotorEncoder(int m) override;
342 
343  bool resetMotorEncoders() override;
344 
345  bool setMotorEncoderCountsPerRevolution(int m, const double cpr) override;
346 
347  bool getMotorEncoderCountsPerRevolution(int m, double *cpr) override;
348 
349  bool setMotorEncoder(int m, const double val) override;
350 
351  bool setMotorEncoders(const double *vals) override;
352 
353  bool getMotorEncoder(int m, double *v) override;
354 
355  bool getMotorEncoders(double *encs) override;
356 
357  bool getMotorEncodersTimed(double *encs, double *t) override;
358 
359  bool getMotorEncoderTimed(int m, double *v, double *t) override;
360 
361  bool getMotorEncoderSpeed(int m, double *sp) override;
362 
363  bool getMotorEncoderSpeeds(double *spds) override;
364 
365  bool getMotorEncoderAcceleration(int m, double *acc) override;
366 
367  bool getMotorEncoderAccelerations(double *accs) override;
368 
369  /* IAmplifierControl */
370  bool enableAmp(int j) override;
371 
372  bool disableAmp(int j) override;
373 
374  bool getAmpStatus(int *st) override;
375 
376  bool getAmpStatus(int j, int *v) override;
377 
378  bool setMaxCurrent(int j, double v) override;
379 
380  bool getMaxCurrent(int j, double *v) override;
381 
382  bool getNominalCurrent(int m, double *val) override;
383 
384  bool setNominalCurrent(int m, const double val) override;
385 
386  bool getPeakCurrent(int m, double *val) override;
387 
388  bool setPeakCurrent(int m, const double val) override;
389 
390  bool getPWM(int m, double *val) override;
391 
392  bool getPWMLimit(int m, double *val) override;
393 
394  bool setPWMLimit(int m, const double val) override;
395 
396  bool getPowerSupplyVoltage(int m, double *val) override;
397 
398  /* IControlLimits */
399  bool setLimits(int j, double min, double max) override;
400 
401  bool getLimits(int j, double *min, double *max) override;
402 
403  bool setVelLimits(int j, double min, double max) override;
404 
405  bool getVelLimits(int j, double *min, double *max) override;
406 
407  /* IRemoteVariables */
408 
409  bool getRemoteVariable(std::string key, yarp::os::Bottle &val) override;
410 
411  bool setRemoteVariable(std::string key, const yarp::os::Bottle &val) override;
412 
413  bool getRemoteVariablesList(yarp::os::Bottle *listOfKeys) override;
414 
415  /* IRemoteCalibrator */
416 
417  bool isCalibratorDevicePresent(bool *isCalib) override;
418 
420 
421  bool calibrateSingleJoint(int j) override;
422 
423  bool calibrateWholePart() override;
424 
425  bool homingSingleJoint(int j) override;
426 
427  bool homingWholePart() override;
428 
429  bool parkSingleJoint(int j, bool _wait = true) override;
430 
431  bool parkWholePart() override;
432 
433  bool quitCalibrate() override;
434 
435  bool quitPark() override;
436 
437  /* IControlCalibration */
438 
439  bool calibrateAxisWithParams(int j, unsigned int ui, double v1, double v2, double v3) override;
440 
441  bool setCalibrationParameters(int j, const yarp::dev::CalibrationParameters &params) override;
442 
443  bool calibrationDone(int j) override;
444 
445  bool abortPark() override;
446 
447  bool abortCalibration() override;
448 
449  /* IMotor */
450  bool getNumberOfMotors(int *num) override;
451 
452  bool getTemperature(int m, double *val) override;
453 
454  bool getTemperatures(double *vals) override;
455 
456  bool getTemperatureLimit(int m, double *val) override;
457 
458  bool setTemperatureLimit(int m, const double val) override;
459 
460  bool getGearboxRatio(int m, double *val) override;
461 
462  bool setGearboxRatio(int m, const double val) override;
463 
464  /* IAxisInfo */
465  bool getAxisName(int j, std::string &name) override;
466 
467  bool getJointType(int j, yarp::dev::JointTypeEnum &type) override;
468 
469  bool getRefTorques(double *refs) override;
470 
471  bool getRefTorque(int j, double *t) override;
472 
473  bool setRefTorques(const double *t) override;
474 
475  bool setRefTorque(int j, double t) override;
476 
477  bool setRefTorques(const int n_joint, const int *joints, const double *t) override;
478 
479  bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params) override;
480 
481  bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override;
482 
483  bool setImpedance(int j, double stiff, double damp) override;
484 
485  bool setImpedanceOffset(int j, double offset) override;
486 
487  bool getTorque(int j, double *t) override;
488 
489  bool getTorques(double *t) override;
490 
491  bool getTorqueRange(int j, double *min, double *max) override;
492 
493  bool getTorqueRanges(double *min, double *max) override;
494 
495  bool getImpedance(int j, double *stiff, double *damp) override;
496 
497  bool getImpedanceOffset(int j, double *offset) override;
498 
499  bool getCurrentImpedanceLimit(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override;
500 
501  bool getControlMode(int j, int *mode) override;
502 
503  bool getControlModes(int *modes) override;
504 
505  // iControlMode2
506  bool getControlModes(const int n_joint, const int *joints, int *modes) override;
507 
508  bool setControlMode(const int j, const int mode) override;
509 
510  bool setControlModes(const int n_joints, const int *joints, int *modes) override;
511 
512  bool setControlModes(int *modes) override;
513 
514  bool setPosition(int j, double ref) override;
515 
516  bool setPositions(const int n_joints, const int *joints, const double *dpos) override;
517 
518  bool setPositions(const double *refs) override;
519 
520  bool getRefPosition(const int joint, double *ref) override;
521 
522  bool getRefPositions(double *refs) override;
523 
524  bool getRefPositions(const int n_joint, const int *joints, double *refs) override;
525 
527 
528  //
529  // IVelocityControl2 Interface
530  //
531  bool velocityMove(const int n_joints, const int *joints, const double *spds) override;
532 
533  bool getRefVelocity(const int joint, double *vel) override;
534 
535  bool getRefVelocities(double *vels) override;
536 
537  bool getRefVelocities(const int n_joint, const int *joints, double *vels) override;
538 
539  bool getInteractionMode(int j, yarp::dev::InteractionModeEnum *mode) override;
540 
541  bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override;
542 
544 
545  bool setInteractionMode(int j, yarp::dev::InteractionModeEnum mode) override;
546 
547  bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override;
548 
550 
551  // IPWMControl
552  bool setRefDutyCycle(int m, double ref) override;
553 
554  bool setRefDutyCycles(const double *refs) override;
555 
556  bool getRefDutyCycle(int m, double *ref) override;
557 
558  bool getRefDutyCycles(double *refs) override;
559 
560  bool getDutyCycle(int m, double *val) override;
561 
562  bool getDutyCycles(double *vals) override;
563 
564  // ICurrentControl
565  bool getCurrent(int m, double *curr) override;
566 
567  bool getCurrents(double *currs) override;
568 
569  bool getCurrentRange(int m, double *min, double *max) override;
570 
571  bool getCurrentRanges(double *min, double *max) override;
572 
573  bool setRefCurrents(const double *currs) override;
574 
575  bool setRefCurrent(int m, double curr) override;
576 
577  bool setRefCurrents(const int n_motor, const int *motors, const double *currs) override;
578 
579  bool getRefCurrents(double *currs) override;
580 
581  bool getRefCurrent(int m, double *curr) override;
582 };
583 
584 #endif // YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPER_H
ControlBoardRemapper::attachAll
bool attachAll(const yarp::dev::PolyDriverList &l) override
Attach to a list of objects.
Definition: ControlBoardRemapper.cpp:236
ControlBoardRemapper::getPid
bool getPid(const yarp::dev::PidControlTypeEnum &pidtype, int j, yarp::dev::Pid *p) override
Get current pid value for a specific joint.
Definition: ControlBoardRemapper.cpp:762
ControlBoardRemapper::getImpedance
bool getImpedance(int j, double *stiff, double *damp) override
Get current impedance gains (stiffness,damping,offset) for a specific joint.
Definition: ControlBoardRemapper.cpp:3490
yarp::os::Bottle
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:73
ControlBoardRemapper::setEncoder
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
Definition: ControlBoardRemapper.cpp:1720
yarp::dev::IRemoteVariables
IRemoteVariables interface.
Definition: IRemoteVariables.h:51
ControlBoardRemapper::setMotorTorqueParams
bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
Definition: ControlBoardRemapper.cpp:3331
ControlBoardRemapper::verbose
bool verbose() const
Return the value of the verbose flag.
Definition: ControlBoardRemapper.h:188
ControlBoardRemapperHelpers.h
Network.h
ControlBoardRemapper::getDutyCycles
bool getDutyCycles(double *vals) override
Gets the current dutycycle of the output of the amplifier (i.e.
Definition: ControlBoardRemapper.cpp:4232
ControlBoardRemapper::getAmpStatus
bool getAmpStatus(int *st) override
Definition: ControlBoardRemapper.cpp:2551
ControlBoardRemapper::open
bool open(yarp::os::Searchable &prop) override
Open the device driver.
Definition: ControlBoardRemapper.cpp:32
yarp::os::Searchable
A base class for nested structures that can be searched.
Definition: Searchable.h:69
ControlBoardRemapper::resetMotorEncoder
bool resetMotorEncoder(int m) override
Reset motor encoder, single motor.
Definition: ControlBoardRemapper.cpp:2188
ControlBoardRemapper::homingSingleJoint
bool homingSingleJoint(int j) override
homingSingleJoint: call the homing procedure for a single joint
Definition: ControlBoardRemapper.cpp:2946
ControlBoardRemapper::homingWholePart
bool homingWholePart() override
homingWholePart: call the homing procedure for a the whole part/device
Definition: ControlBoardRemapper.cpp:2972
ControlBoardRemapper::setRefAccelerations
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
Definition: ControlBoardRemapper.cpp:1361
ControlBoardRemapper::disablePid
bool disablePid(const yarp::dev::PidControlTypeEnum &pidtype, int j) override
Disable the pid computation for a joint.
Definition: ControlBoardRemapper.cpp:927
t
float t
Definition: FfmpegWriter.cpp:74
yarp::dev::IImpedanceControl
Interface for control boards implementing impedance control.
Definition: IImpedanceControl.h:75
ControlBoardRemapper::parkSingleJoint
bool parkSingleJoint(int j, bool _wait=true) override
parkSingleJoint(): start the parking procedure for the single joint
Definition: ControlBoardRemapper.cpp:2991
ControlBoardRemapper::getTorqueRanges
bool getTorqueRanges(double *min, double *max) override
Get the full scale of the torque sensors of all joints.
Definition: ControlBoardRemapper.cpp:3461
ControlBoardRemapper::resetEncoders
bool resetEncoders() override
Reset encoders.
Definition: ControlBoardRemapper.cpp:1692
ControlBoardRemapper::getCurrentRanges
bool getCurrentRanges(double *min, double *max) override
Get the full scale of the current measurements for all motors motor (e.g.
Definition: ControlBoardRemapper.cpp:4326
ControlBoardRemapper::setControlMode
bool setControlMode(const int j, const int mode) override
Set the current control mode.
Definition: ControlBoardRemapper.cpp:3627
ControlBoardRemapper::ControlBoardRemapper
ControlBoardRemapper(ControlBoardRemapper &&)=delete
ControlBoardRemapper::getGearboxRatio
bool getGearboxRatio(int m, double *val) override
Get the gearbox ratio for a specific motor.
Definition: ControlBoardRemapper.cpp:2058
ControlBoardRemapper::enablePid
bool enablePid(const yarp::dev::PidControlTypeEnum &pidtype, int j) override
Enable the pid computation for a joint.
Definition: ControlBoardRemapper.cpp:942
ControlBoardRemapper::setVelLimits
bool setVelLimits(int j, double min, double max) override
Set the software speed limits for a particular axis, the behavior of the control card when these limi...
Definition: ControlBoardRemapper.cpp:2843
ControlBoardRemapper::getJointType
bool getJointType(int j, yarp::dev::JointTypeEnum &type) override
Definition: ControlBoardRemapper.cpp:3175
ControlBoardRemapper::getMotorEncoderAccelerations
bool getMotorEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all motor encoders.
Definition: ControlBoardRemapper.cpp:2488
ControlBoardRemapper::getPWM
bool getPWM(int m, double *val) override
Definition: ControlBoardRemapper.cpp:2721
yarp::dev::MotorTorqueParameters
Definition: ITorqueControl.h:24
ControlBoardRemapper::isPidEnabled
bool isPidEnabled(const yarp::dev::PidControlTypeEnum &pidtype, int j, bool *enabled) override
Get the current status (enabled/disabled) of the pid.
Definition: ControlBoardRemapper.cpp:962
IPreciselyTimed.h
yarp::dev::DeviceDriver
Interface implemented by all device drivers.
Definition: DeviceDriver.h:38
ControlBoardRemapper::setPosition
bool setPosition(int j, double ref) override
Set new position for a single axis.
Definition: ControlBoardRemapper.cpp:3686
ControlBoardRemapper::close
bool close() override
Close the device driver by deallocating all resources and closing ports.
Definition: ControlBoardRemapper.cpp:27
ControlBoardRemapper::resetMotorEncoders
bool resetMotorEncoders() override
Reset motor encoders.
Definition: ControlBoardRemapper.cpp:2208
ControlBoardRemapper::getMaxCurrent
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
Definition: ControlBoardRemapper.cpp:2621
ControlBoardRemapper::getRemoteVariable
bool getRemoteVariable(std::string key, yarp::os::Bottle &val) override
Definition: ControlBoardRemapper.cpp:2099
ControlBoardRemapper::setPositions
bool setPositions(const int n_joints, const int *joints, const double *dpos) override
Set new reference point for all axes.
Definition: ControlBoardRemapper.cpp:3706
ControlBoardRemapper::getEncoders
bool getEncoders(double *encs) override
Read the position of all axes.
Definition: ControlBoardRemapper.cpp:1789
ControlBoardRemapper::setControlModes
bool setControlModes(const int n_joints, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
Definition: ControlBoardRemapper.cpp:3646
ControlBoardRemapper::ControlBoardRemapper
ControlBoardRemapper(const ControlBoardRemapper &)=delete
ControlBoardRemapper::calibrateAxisWithParams
bool calibrateAxisWithParams(int j, unsigned int ui, double v1, double v2, double v3) override
Start calibration, this method is very often platform specific.
Definition: ControlBoardRemapper.cpp:3092
ControlBoardRemapper::getTorque
bool getTorque(int j, double *t) override
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
Definition: ControlBoardRemapper.cpp:3391
ControlBoardRemapper::getRefDutyCycle
bool getRefDutyCycle(int m, double *ref) override
Gets the last reference sent using the setRefDutyCycle function.
Definition: ControlBoardRemapper.cpp:4168
ControlBoardRemapper::getPidErrors
bool getPidErrors(const yarp::dev::PidControlTypeEnum &pidtype, double *errs) override
Get the error of all joints.
Definition: ControlBoardRemapper.cpp:668
ControlBoardRemapper::getMotorEncoderAcceleration
bool getMotorEncoderAcceleration(int m, double *acc) override
Read the instantaneous acceleration of a motor encoder.
Definition: ControlBoardRemapper.cpp:2468
ControlBoardRemapper::getPidErrorLimits
bool getPidErrorLimits(const yarp::dev::PidControlTypeEnum &pidtype, double *limits) override
Get the error limit for all controllers.
Definition: ControlBoardRemapper.cpp:877
ControlBoardRemapper::setMaxCurrent
bool setMaxCurrent(int j, double v) override
Definition: ControlBoardRemapper.cpp:2601
ControlBoardRemapper::getTemperature
bool getTemperature(int m, double *val) override
Get temperature of a motor.
Definition: ControlBoardRemapper.cpp:1972
ControlBoardRemapper::setRefAcceleration
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
Definition: ControlBoardRemapper.cpp:1341
ControlBoardRemapper::quitPark
bool quitPark() override
quitPark: interrupt the park procedure
Definition: ControlBoardRemapper.cpp:3064
ControlBoardRemapper::getNumberOfMotors
bool getNumberOfMotors(int *num) override
Retrieves the number of controlled axes from the current physical interface.
Definition: ControlBoardRemapper.cpp:1966
ControlBoardRemapper::setInteractionModes
bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
Definition: ControlBoardRemapper.cpp:4081
ControlBoardRemapper::getInteractionMode
bool getInteractionMode(int j, yarp::dev::InteractionModeEnum *mode) override
Get the current interaction mode of the robot, values can be stiff or compliant.
Definition: ControlBoardRemapper.cpp:3978
ControlBoardRemapper::setEncoders
bool setEncoders(const double *vals) override
Set the value of all encoders.
Definition: ControlBoardRemapper.cpp:1740
ControlBoardRemapper::getEncoderTimed
bool getEncoderTimed(int j, double *v, double *t) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardRemapper.cpp:1847
ControlBoardRemapper::getLimits
bool getLimits(int j, double *min, double *max) override
Get the software limits for a particular axis.
Definition: ControlBoardRemapper.cpp:2823
yarp::dev::PolyDriverList
Definition: PolyDriverList.h:22
ControlBoardInterfaces.h
define control board standard interfaces
ControlBoardRemapper::setInteractionMode
bool setInteractionMode(int j, yarp::dev::InteractionModeEnum mode) override
Set the interaction mode of the robot, values can be stiff or compliant.
Definition: ControlBoardRemapper.cpp:4061
ControlBoardRemapper::getPids
bool getPids(const yarp::dev::PidControlTypeEnum &pidtype, yarp::dev::Pid *pids) override
Get current pid value for a specific joint.
Definition: ControlBoardRemapper.cpp:781
ControlBoardRemapper::getMotorEncoders
bool getMotorEncoders(double *encs) override
Read the position of all motor encoders.
Definition: ControlBoardRemapper.cpp:2347
ControlBoardRemapper::getRefDutyCycles
bool getRefDutyCycles(double *refs) override
Gets the last reference sent using the setRefDutyCycles function.
Definition: ControlBoardRemapper.cpp:4185
ControlBoardRemapper::getMotorEncoderCountsPerRevolution
bool getMotorEncoderCountsPerRevolution(int m, double *cpr) override
Gets number of counts per revolution for motor encoder m.
Definition: ControlBoardRemapper.cpp:2307
ControlBoardRemapper::getEncoderSpeed
bool getEncoderSpeed(int j, double *sp) override
Read the istantaneous speed of an axis.
Definition: ControlBoardRemapper.cpp:1867
ControlBoardRemapper::relativeMove
bool relativeMove(int j, double delta) override
Set relative position.
Definition: ControlBoardRemapper.cpp:1134
ControlBoardRemapper::getRefTorque
bool getRefTorque(int j, double *t) override
Get the reference value of the torque for a given joint.
Definition: ControlBoardRemapper.cpp:3224
ControlBoardRemapper::resetPid
bool resetPid(const yarp::dev::PidControlTypeEnum &pidtype, int j) override
Reset the controller of a given joint, usually sets the current status of the joint as the reference ...
Definition: ControlBoardRemapper.cpp:907
ControlBoardRemapper::isCalibratorDevicePresent
bool isCalibratorDevicePresent(bool *isCalib) override
isCalibratorDevicePresent: check if a calibrator device has been set
Definition: ControlBoardRemapper.cpp:2889
ControlBoardRemapper::getRefVelocity
bool getRefVelocity(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
Definition: ControlBoardRemapper.cpp:3893
ControlBoardRemapper::setMotorEncoders
bool setMotorEncoders(const double *vals) override
Set the value of all motor encoders.
Definition: ControlBoardRemapper.cpp:2257
ControlBoardRemapper::getRefAcceleration
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
Definition: ControlBoardRemapper.cpp:1485
ControlBoardRemapper::getPidError
bool getPidError(const yarp::dev::PidControlTypeEnum &pidtype, int j, double *err) override
Get the current error for a joint.
Definition: ControlBoardRemapper.cpp:648
ControlBoardRemapper::setRemoteVariable
bool setRemoteVariable(std::string key, const yarp::os::Bottle &val) override
Definition: ControlBoardRemapper.cpp:2133
yarp::dev::IInteractionMode
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
Definition: IInteractionMode.h:43
ControlBoardRemapper::setRefDutyCycles
bool setRefDutyCycles(const double *refs) override
Sets the reference dutycycle for all the motors.
Definition: ControlBoardRemapper.cpp:4138
ControlBoardRemapper::getNominalCurrent
bool getNominalCurrent(int m, double *val) override
Definition: ControlBoardRemapper.cpp:2641
ControlBoardRemapper::setMotorEncoder
bool setMotorEncoder(int m, const double val) override
Set the value of the motor encoder for a given motor.
Definition: ControlBoardRemapper.cpp:2237
ControlBoardRemapper::getCurrentRange
bool getCurrentRange(int m, double *min, double *max) override
Get the full scale of the current measurement for a given motor (e.g.
Definition: ControlBoardRemapper.cpp:4309
ControlBoardRemapper::getRefPositions
bool getRefPositions(double *refs) override
Get the last position reference for all axes.
Definition: ControlBoardRemapper.cpp:3805
ControlBoardRemapper
controlboardremapper : device that takes a list of axes from multiple controlboards and expose them a...
Definition: ControlBoardRemapper.h:94
ControlBoardRemapper::getRefCurrents
bool getRefCurrents(double *currs) override
Get the reference value of the currents for all motors.
Definition: ControlBoardRemapper.cpp:4436
ControlBoardRemapper::getCurrents
bool getCurrents(double *currs) override
Definition: ControlBoardRemapper.cpp:4279
ControlBoardRemapper::setLimits
bool setLimits(int j, double min, double max) override
Set the software limits for a particular axis, the behavior of the control card when these limits are...
Definition: ControlBoardRemapper.cpp:2803
ControlBoardRemapper::getLastInputStamp
yarp::os::Stamp getLastInputStamp() override
Return the time stamp relative to the last acquisition.
Definition: ControlBoardRemapper.cpp:3746
ControlBoardRemapper::getRefTorques
bool getRefTorques(double *refs) override
Get the reference value of the torque for all joints.
Definition: ControlBoardRemapper.cpp:3195
ControlBoardRemapper::getTorques
bool getTorques(double *t) override
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
Definition: ControlBoardRemapper.cpp:3411
yarp::dev::IControlMode
Interface for setting control mode in control board.
Definition: IControlMode.h:28
ControlBoardRemapper::getEncoder
bool getEncoder(int j, double *v) override
Read the value of an encoder.
Definition: ControlBoardRemapper.cpp:1769
ControlBoardRemapper::getRefSpeed
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
Definition: ControlBoardRemapper.cpp:1401
ControlBoardRemapper::getAxisName
bool getAxisName(int j, std::string &name) override
Definition: ControlBoardRemapper.cpp:3155
ControlBoardRemapper::getPidErrorLimit
bool getPidErrorLimit(const yarp::dev::PidControlTypeEnum &pidtype, int j, double *limit) override
Get the error limit for the controller on a specific joint.
Definition: ControlBoardRemapper.cpp:858
yarp::dev::IControlCalibration
Interface for control devices, calibration commands.
Definition: IControlCalibration.h:85
ControlBoardRemapper::getPowerSupplyVoltage
bool getPowerSupplyVoltage(int m, double *val) override
Definition: ControlBoardRemapper.cpp:2780
ControlBoardRemapper::getTemperatures
bool getTemperatures(double *vals) override
Get temperature of all the motors.
Definition: ControlBoardRemapper.cpp:1992
yarp::dev::IAxisInfo
Interface for getting information about specific axes, if available.
Definition: IAxisInfo.h:43
yarp::dev::PidControlTypeEnum
PidControlTypeEnum
Definition: PidEnums.h:21
ControlBoardRemapper::getPidReference
bool getPidReference(const yarp::dev::PidControlTypeEnum &pidtype, int j, double *ref) override
Get the current reference of the pid controller for a specific joint.
Definition: ControlBoardRemapper.cpp:810
ControlBoardRemapper::velocityMove
bool velocityMove(int j, double v) override
Start motion at a given speed, single joint.
Definition: ControlBoardRemapper.cpp:1632
PolyDriver.h
ControlBoardRemapper::setPid
bool setPid(const yarp::dev::PidControlTypeEnum &pidtype, int j, const yarp::dev::Pid &p) override
ControlBoard methods.
Definition: ControlBoardRemapper.cpp:503
ControlBoardRemapper::getTargetPositions
bool getTargetPositions(double *refs) override
Get the last position reference for all axes.
Definition: ControlBoardRemapper.cpp:1070
ControlBoardRemapper::setRefCurrents
bool setRefCurrents(const double *currs) override
Set the reference value of the currents for all motors.
Definition: ControlBoardRemapper.cpp:4399
ControlBoardRemapper::getDutyCycle
bool getDutyCycle(int m, double *val) override
Gets the current dutycycle of the output of the amplifier (i.e.
Definition: ControlBoardRemapper.cpp:4215
yarp::dev::IControlLimits
Interface for control devices, commands to get/set position and veloity limits.
Definition: IControlLimits.h:33
ControlBoardRemapper::disableAmp
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
Definition: ControlBoardRemapper.cpp:2546
ControlBoardRemapper::getMotorEncoderTimed
bool getMotorEncoderTimed(int m, double *v, double *t) override
Read the instantaneous position of a motor encoder.
Definition: ControlBoardRemapper.cpp:2399
ControlBoardRemapper::operator=
ControlBoardRemapper & operator=(const ControlBoardRemapper &)=delete
yarp::dev::InteractionModeEnum
InteractionModeEnum
Definition: IInteractionMode.h:21
ControlBoardRemapper::getPidReferences
bool getPidReferences(const yarp::dev::PidControlTypeEnum &pidtype, double *refs) override
Get the current reference of all pid controllers.
Definition: ControlBoardRemapper.cpp:829
ControlBoardRemapper::getRefAccelerations
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
Definition: ControlBoardRemapper.cpp:1505
ControlBoardRemapper::setPeakCurrent
bool setPeakCurrent(int m, const double val) override
Definition: ControlBoardRemapper.cpp:2681
ControlBoardRemapper::setRefTorques
bool setRefTorques(const double *t) override
Set the reference value of the torque for all joints.
Definition: ControlBoardRemapper.cpp:3243
ControlBoardRemapper::enableAmp
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
Definition: ControlBoardRemapper.cpp:2526
ControlBoardRemapper::setTemperatureLimit
bool setTemperatureLimit(int m, const double val) override
Set the temperature limit for a specific motor.
Definition: ControlBoardRemapper.cpp:2038
ControlBoardRemapper::getMotorEncoder
bool getMotorEncoder(int m, double *v) override
Read the value of a motor encoder.
Definition: ControlBoardRemapper.cpp:2327
ControlBoardRemapper::setPidErrorLimits
bool setPidErrorLimits(const yarp::dev::PidControlTypeEnum &pidtype, const double *limits) override
Get the error limit for the controller on all joints.
Definition: ControlBoardRemapper.cpp:619
ControlBoardRemapper::calibrateSingleJoint
bool calibrateSingleJoint(int j) override
calibrateSingleJoint: call the calibration procedure for the single joint
Definition: ControlBoardRemapper.cpp:2894
ControlBoardRemapper::getPeakCurrent
bool getPeakCurrent(int m, double *val) override
Definition: ControlBoardRemapper.cpp:2661
yarp::dev::IPWMControl
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition: IPWMControl.h:28
ControlBoardRemapper::getInteractionModes
bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
Definition: ControlBoardRemapper.cpp:3998
ControlBoardRemapper::getMotorEncoderSpeed
bool getMotorEncoderSpeed(int m, double *sp) override
Read the istantaneous speed of a motor encoder.
Definition: ControlBoardRemapper.cpp:2419
ControlBoardRemapper::quitCalibrate
bool quitCalibrate() override
quitCalibrate: interrupt the calibration procedure
Definition: ControlBoardRemapper.cpp:3038
ControlBoardRemapper::getNumberOfMotorEncoders
bool getNumberOfMotorEncoders(int *num) override
Get the number of available motor encoders.
Definition: ControlBoardRemapper.cpp:2519
ControlBoardRemapper::setRefSpeed
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
Definition: ControlBoardRemapper.cpp:1281
Semaphore.h
IMultipleWrapper.h
ControlBoardRemapper::getVelLimits
bool getVelLimits(int j, double *min, double *max) override
Get the software speed limits for a particular axis.
Definition: ControlBoardRemapper.cpp:2863
ControlBoardRemapper::setRefCurrent
bool setRefCurrent(int m, double curr) override
Set the reference value of the current for a single motor.
Definition: ControlBoardRemapper.cpp:4356
ControlBoardRemapper::getCurrentImpedanceLimit
bool getCurrentImpedanceLimit(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override
Get the current impedandance limits for a specific joint.
Definition: ControlBoardRemapper.cpp:3530
yarp::dev::IMotorEncoders
Control board, encoder interface.
Definition: IMotorEncoders.h:155
ControlBoardRemapper::getImpedanceOffset
bool getImpedanceOffset(int j, double *offset) override
Get current force Offset for a specific joint.
Definition: ControlBoardRemapper.cpp:3510
ControlBoardArbitraryAxesDecomposition
Class storing the decomposition of a subset of the total remapped axes of the remapped controlboard i...
Definition: ControlBoardRemapperHelpers.h:244
yarp::dev::IAmplifierControl
Interface for control devices, amplifier commands.
Definition: IAmplifierControl.h:33
ControlBoardRemapper::getEncoderSpeeds
bool getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
Definition: ControlBoardRemapper.cpp:1887
ControlBoardRemapper::getMotorEncoderSpeeds
bool getMotorEncoderSpeeds(double *spds) override
Read the instantaneous speed of all motor encoders.
Definition: ControlBoardRemapper.cpp:2439
yarp::dev::IMotor
Control board, encoder interface.
Definition: IMotor.h:99
ControlBoardRemapper::calibrateWholePart
bool calibrateWholePart() override
calibrateWholePart: call the procedure for calibrating the whole device
Definition: ControlBoardRemapper.cpp:2920
ControlBoardRemapper::abortCalibration
bool abortCalibration() override
Definition: ControlBoardRemapper.cpp:3147
yarp::dev::IVelocityControl
Interface for control boards implementing velocity control.
Definition: IVelocityControl.h:160
yarp::os::Stamp
An abstraction for a time stamp and/or sequence number.
Definition: Stamp.h:25
ControlBoardRemapperBuffers
Definition: ControlBoardRemapperHelpers.h:140
ControlBoardRemapper::setRefDutyCycle
bool setRefDutyCycle(int m, double ref) override
Sets the reference dutycycle to a single motor.
Definition: ControlBoardRemapper.cpp:4121
ControlBoardRemapper::getMotorEncodersTimed
bool getMotorEncodersTimed(double *encs, double *t) override
Read the instantaneous position of all motor encoders.
Definition: ControlBoardRemapper.cpp:2370
ControlBoardRemapper::ControlBoardRemapper
ControlBoardRemapper()=default
ControlBoardRemapper::getControlModes
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
Definition: ControlBoardRemapper.cpp:3563
ControlBoardRemapper::getRefVelocities
bool getRefVelocities(double *vels) override
Get the last reference speed set by velocityMove for all joints.
Definition: ControlBoardRemapper.cpp:3915
ControlBoardRemapper::getPidOutputs
bool getPidOutputs(const yarp::dev::PidControlTypeEnum &pidtype, double *outs) override
Get the output of the controllers (e.g.
Definition: ControlBoardRemapper.cpp:715
ControlBoardRemapper::getEncoderAccelerations
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardRemapper.cpp:1936
ControlBoardRemapper::parkWholePart
bool parkWholePart() override
parkWholePart: start the parking procedure for the whole part
Definition: ControlBoardRemapper.cpp:3017
yarp::dev::ICurrentControl
Interface for control boards implementing current control.
Definition: ICurrentControl.h:28
yarp::dev::IPidControl
Interface for a generic control board device implementing a PID controller, with scaled arguments.
Definition: IPidControl.h:211
ControlBoardRemapper::~ControlBoardRemapper
~ControlBoardRemapper() override=default
ControlBoardRemapper::getEncodersTimed
bool getEncodersTimed(double *encs, double *t) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardRemapper.cpp:1818
ControlBoardRemapper::getTargetPosition
bool getTargetPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
Definition: ControlBoardRemapper.cpp:1049
ControlBoardRemapper::getCalibratorDevice
yarp::dev::IRemoteCalibrator * getCalibratorDevice() override
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
Definition: ControlBoardRemapper.cpp:2884
yarp::dev::IPositionDirect
Interface for a generic control board device implementing position control.
Definition: IPositionDirect.h:32
ControlBoardRemapper::setImpedanceOffset
bool setImpedanceOffset(int j, double offset) override
Set current force Offset for a specific joint.
Definition: ControlBoardRemapper.cpp:3371
ControlBoardRemapper::getCurrent
bool getCurrent(int m, double *curr) override
Definition: ControlBoardRemapper.cpp:4262
yarp::dev::IEncodersTimed
Control board, extend encoder interface with timestamps.
Definition: IEncodersTimed.h:59
yarp::dev::IMultipleWrapper
Interface for an object that can wrap/attach to to another.
Definition: IMultipleWrapper.h:30
ControlBoardRemapper::setPidErrorLimit
bool setPidErrorLimit(const yarp::dev::PidControlTypeEnum &pidtype, int j, double limit) override
Set the error limit for the controller on a specifi joint.
Definition: ControlBoardRemapper.cpp:600
ControlBoardRemapper::getPWMLimit
bool getPWMLimit(int m, double *val) override
Definition: ControlBoardRemapper.cpp:2740
ControlBoardRemapper::getRefCurrent
bool getRefCurrent(int m, double *curr) override
Get the reference value of the current for a single motor.
Definition: ControlBoardRemapper.cpp:4419
ControlBoardInterfacesImpl.h
ControlBoardRemapper::setRefTorque
bool setRefTorque(int j, double t) override
Set the reference value of the torque for a given joint.
Definition: ControlBoardRemapper.cpp:3273
ControlBoardRemapper::setPidReference
bool setPidReference(const yarp::dev::PidControlTypeEnum &pidtype, int j, double ref) override
Set the controller reference for a given axis.
Definition: ControlBoardRemapper.cpp:551
ControlBoardRemapper::getRefSpeeds
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
Definition: ControlBoardRemapper.cpp:1421
ControlBoardRemapper::checkMotionDone
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
Definition: ControlBoardRemapper.cpp:1194
ControlBoardRemapper::setImpedance
bool setImpedance(int j, double stiff, double damp) override
Set current impedance gains (stiffness,damping) for a specific joint.
Definition: ControlBoardRemapper.cpp:3351
ControlBoardRemapper::getRemoteVariablesList
bool getRemoteVariablesList(yarp::os::Bottle *listOfKeys) override
Definition: ControlBoardRemapper.cpp:2166
yarp::dev::Pid
Contains the parameters for a PID.
Definition: ControlBoardPid.h:29
ControlBoardRemapper::getMotorTorqueParams
bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params) override
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
Definition: ControlBoardRemapper.cpp:3311
yarp::dev::ITorqueControl
Interface for control boards implementing torque control.
Definition: ITorqueControl.h:39
ControlBoardRemapper::calibrationDone
bool calibrationDone(int j) override
Check if the calibration is terminated, on a particular joint.
Definition: ControlBoardRemapper.cpp:3121
yarp::dev::CalibrationParameters
Definition: IControlCalibration.h:32
ControlBoardRemapper::stop
bool stop() override
Stop motion, multiple joints.
Definition: ControlBoardRemapper.cpp:1588
ControlBoardRemapper::abortPark
bool abortPark() override
Definition: ControlBoardRemapper.cpp:3141
ControlBoardRemapper::getEncoderAcceleration
bool getEncoderAcceleration(int j, double *acc) override
Read the instantaneous acceleration of an axis.
Definition: ControlBoardRemapper.cpp:1916
ControlBoardRemapper::setPidReferences
bool setPidReferences(const yarp::dev::PidControlTypeEnum &pidtype, const double *refs) override
Set the controller reference, multiple axes.
Definition: ControlBoardRemapper.cpp:571
ControlBoardRemapper::getRefPosition
bool getRefPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
Definition: ControlBoardRemapper.cpp:3784
ControlBoardRemapper::getPidOutput
bool getPidOutput(const yarp::dev::PidControlTypeEnum &pidtype, int j, double *out) override
Get the output of the controller (e.g.
Definition: ControlBoardRemapper.cpp:696
ControlBoardRemapper::getControlMode
bool getControlMode(int j, int *mode) override
Get the current control mode.
Definition: ControlBoardRemapper.cpp:3550
yarp::dev::IRemoteCalibrator
IRemoteCalibrator interface is meant to remotize the access of the calibration device in order to all...
Definition: IRemoteCalibrator.h:30
ControlBoardRemapper::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ControlBoardRemapper.cpp:983
yarp::dev::IPreciselyTimed
Definition: IPreciselyTimed.h:21
ControlBoardRemapper::getTorqueRange
bool getTorqueRange(int j, double *min, double *max) override
Get the full scale of the torque sensor of a given joint.
Definition: ControlBoardRemapper.cpp:3441
ControlBoardRemapper::setPidOffset
bool setPidOffset(const yarp::dev::PidControlTypeEnum &pidtype, int j, double v) override
Set offset value for a given controller.
Definition: ControlBoardRemapper.cpp:743
yarp::dev::JointTypeEnum
JointTypeEnum
Definition: IAxisInfo.h:29
ControlBoardRemapper::getTemperatureLimit
bool getTemperatureLimit(int m, double *val) override
Retreives the current temperature limit for a specific motor.
Definition: ControlBoardRemapper.cpp:2018
ControlBoardRemapper::setCalibrationParameters
bool setCalibrationParameters(int j, const yarp::dev::CalibrationParameters &params) override
Start calibration, this method is very often platform specific.
Definition: ControlBoardRemapper.cpp:3106
yarp::dev::IPositionControl
Interface for a generic control board device implementing position control.
Definition: IPositionControl.h:257
ControlBoardRemapper::setRefSpeeds
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
Definition: ControlBoardRemapper.cpp:1301
ControlBoardRemapper::setNominalCurrent
bool setNominalCurrent(int m, const double val) override
Definition: ControlBoardRemapper.cpp:2701
ControlBoardRemapper::operator=
ControlBoardRemapper & operator=(ControlBoardRemapper &&)=delete
ControlBoardSubControlBoardAxesDecomposition
Class storing the decomposition of all the axes in the Remapped ControlBoard in the SubControlBoard,...
Definition: ControlBoardRemapperHelpers.h:157
ControlBoardRemapper::setPids
bool setPids(const yarp::dev::PidControlTypeEnum &pidtype, const yarp::dev::Pid *ps) override
Set new pid value on multiple axes.
Definition: ControlBoardRemapper.cpp:522
ControlBoardRemapper::positionMove
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
Definition: ControlBoardRemapper.cpp:989
RemappedControlBoards
Definition: ControlBoardRemapperHelpers.h:105
ControlBoardRemapper::setPWMLimit
bool setPWMLimit(int m, const double val) override
Definition: ControlBoardRemapper.cpp:2760
yarp::os::Property
A class for storing options and configuration information.
Definition: Property.h:37
ControlBoardRemapper::setGearboxRatio
bool setGearboxRatio(int m, const double val) override
Set the gearbox ratio for a specific motor.
Definition: ControlBoardRemapper.cpp:2078
ControlBoardRemapper::resetEncoder
bool resetEncoder(int j) override
Reset encoder, single joint.
Definition: ControlBoardRemapper.cpp:1673
ControlBoardRemapper::setMotorEncoderCountsPerRevolution
bool setMotorEncoderCountsPerRevolution(int m, const double cpr) override
Sets number of counts per revolution for motor encoder m.
Definition: ControlBoardRemapper.cpp:2287
ControlBoardRemapper::detachAll
bool detachAll() override
Detach the object (you must have first called attach).
Definition: ControlBoardRemapper.cpp:466