15 #include <dynamic-graph/factory.h> 35 timeSOUT(
"TimeStamp(" + name +
")::output(vector2)::time"),
36 timeDoubleSOUT(
"TimeStamp(" + name +
")::output(double)::timeDouble"),
39 "TimeStamp(" + name +
")::output(vector2)::synchro"),
43 timeSOUT,
"TimeStamp(" + name +
")::output(double)::synchroDouble") {
55 gettimeofday(&
val, NULL);
62 os <<
"TimeStamp <> : " <<
val.tv_sec <<
"s; " <<
val.tv_usec <<
"us." 73 gettimeofday(&
val, NULL);
74 if (res.size() != 2) res.resize(2);
76 res(0) =
static_cast<double>(
val.tv_sec);
77 res(1) =
static_cast<double>(
val.tv_usec);
90 res += vect(1) / 1000;
#define SOT_CALL_SIG(sotName, sotType)
SignalArray< int > sotNOSIGNAL(0)
dynamicgraph::Vector & getTimeStamp(dynamicgraph::Vector &res, const int &time)
void signalRegistration(const SignalArray< int > &signals)
#define sotDEBUGOUT(level)
void setNeedUpdateFromAllChildren(const bool b=true)
dynamicgraph::Signal< double, int > timeDoubleSOUT
double & getTimeStampDouble(const dynamicgraph::Vector &vect, double &res)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
#define sotDEBUGIN(level)
TimeStamp(const std::string &name)
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > timeOnceSOUT
virtual void display(std::ostream &os) const
dynamicgraph::Signal< dynamicgraph::Vector, int > timeSOUT
dynamicgraph::SignalTimeDependent< double, int > timeOnceDoubleSOUT
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)