15 #include <dynamic-graph/signal.h> 28 cout <<
"Dummy::getError [" << t <<
"] " << endl;
46 errSig.
setFunction(boost::bind(&DummyClass::getError, dummy, _1, _2));
49 cout <<
"Appel of errSig and display of the result." << endl;
50 cout << errSig(0) << endl;
54 cout <<
"Compute gain from Gain Signal and display." << endl;
55 cout << gainSig(0) << endl;
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > errorSIN
dynamicgraph::SignalTimeDependent< double, int > gainSOUT
virtual void plug(SignalBase< Time > *ref)
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)