Go to the documentation of this file.
32 #include <dynamic-graph/factory.h>
35 #include <dynamic-graph/signal.h>
59 "TRACE operation not possible with this signal. ",
60 "(bad cast while getting value from %s).",
66 throw std::runtime_error(
"Not implemented.");
70 throw std::runtime_error(
"Not implemented.");
74 throw std::runtime_error(
"Not implemented.");
95 #ifdef HAVE_LIBBOOST_THREAD
108 throw std::runtime_error(
"Output signal cannot be assigned a value.");
113 os <<
"Sig:" << this->
name <<
" (Type ";
138 velocitySIN_(0
x0,
"Integrator(" +
name +
")::input(vector)::velocity"),
139 configurationSOUT_(
"Integrator(" +
name +
140 ")::output(vector)::configuration"),
143 lastComputationTime_(-1),
144 recursivityLevel_(0) {
168 return configuration;
177 }
catch (
const std::exception &e) {
178 dgRTLOG() <<
"exception caught while running periodical commands (before): "
179 << e.what() << std::endl;
183 std::ostringstream os;
184 os <<
"Integrator entity expects zero velocity input for the first "
185 "computation. Got instead "
186 << velocity.transpose() <<
".";
187 throw std::runtime_error(os.str().c_str());
196 }
catch (
const std::exception &e) {
197 dgRTLOG() <<
"exception caught while running periodical commands (after): "
198 << e.what() << std::endl;
201 return configuration;
static T cast(std::istringstream &is)
::pinocchio::Model * getModel()
virtual void get(std::ostream &value) const
void setModel(::pinocchio::Model *model)
Integrator(const std::string &name)
virtual void setReferenceNonConstant(Vector *t, Mutex *mutexref=NULL)
virtual void setReference(const Vector *t, Mutex *mutexref=NULL)
PeriodicCall periodicCallAfter_
static void trace(const T &value, std::ostream &os)
virtual void set(std::istringstream &value)
PeriodicCall periodicCallBefore_
void run(const sigtime_t &t)
Vector & integrate(Vector &configuration, sigtime_t time)
sigtime_t lastComputationTime_
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
virtual void setConstant(const Vector &t)
boost::function2< Vector &, Vector &, sigtime_t > Tfunction
virtual Signal & operator=(const Vector &t)
virtual const Vector & accessCopy() const
virtual const Vector & access(const sigtime_t &t)
::pinocchio::Model * model_
sigtime_t recursivityLevel_
internal::Signal configurationSOUT_
SignalPtr< Vector, sigtime_t > velocitySIN_
virtual std::ostream & display(std::ostream &os) const
void signalRegistration(const SignalArray< sigtime_t > &signals)
void setInitialConfig(const Vector &initConfig)
virtual void trace(std::ostream &os) const
static void disp(const T &value, std::ostream &os)
virtual void setFunction(boost::function2< Vector &, Vector &, sigtime_t > t, Mutex *mutexref=NULL)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31