|
33 | 33 | #include <dynamic-graph/entity.h>
|
34 | 34 | #include <dynamic-graph/pool.h>
|
35 | 35 | #include <dynamic-graph/all-signals.h>
|
| 36 | +#include <dynamic-graph/command-bind.h> |
36 | 37 | #include <sot/core/debug.hh>
|
37 | 38 |
|
38 | 39 | /* STD */
|
@@ -69,6 +70,29 @@ class IntegratorAbstract
|
69 | 70 | "sotIntegratorAbstract("+name+")::output(vector)::sout")
|
70 | 71 | {
|
71 | 72 | signalRegistration( SIN<<SOUT );
|
| 73 | + |
| 74 | + using namespace dg::command; |
| 75 | + |
| 76 | + const std::string typeName = |
| 77 | + Value::typeName(dg::command::ValueHelper<coefT>::TypeID); |
| 78 | + |
| 79 | + addCommand ("pushNumCoef", |
| 80 | + makeCommandVoid1 (*this, &IntegratorAbstract::pushNumCoef, |
| 81 | + docCommandVoid1 ("Push a new numerator coefficient", typeName) |
| 82 | + )); |
| 83 | + addCommand ("pushDenomCoef", |
| 84 | + makeCommandVoid1 (*this, &IntegratorAbstract::pushDenomCoef, |
| 85 | + docCommandVoid1 ("Push a new denomicator coefficient", typeName) |
| 86 | + )); |
| 87 | + |
| 88 | + addCommand ("popNumCoef", |
| 89 | + makeCommandVoid0 (*this, &IntegratorAbstract::popNumCoef, |
| 90 | + docCommandVoid0 ("Pop a new numerator coefficient") |
| 91 | + )); |
| 92 | + addCommand ("popDenomCoef", |
| 93 | + makeCommandVoid0 (*this, &IntegratorAbstract::popDenomCoef, |
| 94 | + docCommandVoid0 ("Pop a new denomicator coefficient") |
| 95 | + )); |
72 | 96 | }
|
73 | 97 |
|
74 | 98 | virtual ~IntegratorAbstract() {}
|
|
0 commit comments