Go to the documentation of this file.
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;
TimeStamp(const std::string &name)
virtual void display(std::ostream &os) const
dynamicgraph::Vector & getTimeStamp(dynamicgraph::Vector &res, const sigtime_t &time)
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)
dynamicgraph::SignalTimeDependent< double, sigtime_t > timeOnceDoubleSOUT
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
#define sotDEBUGOUT(level)
#define sotDEBUGIN(level)
dynamicgraph::Signal< double, sigtime_t > timeDoubleSOUT
SignalArray< sigtime_t > sotNOSIGNAL(0)
#define SOT_CALL_SIG(sotName, sotType)
double & getTimeStampDouble(const dynamicgraph::Vector &vect, double &res)
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > timeOnceSOUT
dynamicgraph::Signal< dynamicgraph::Vector, sigtime_t > timeSOUT
void signalRegistration(const SignalArray< sigtime_t > &signals)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32