Go to the documentation of this file.
31 MotionPeriod::MotionPeriod(
const string &fName)
36 "MotionPeriod(" +
name +
")::output(vector)::motion") {
51 for (std::size_t
i = 0;
i <
size; ++
i) {
53 double x = (
double)((time -
p.initPeriod) %
p.period) / (
double)(
p.period);
54 res(
i) =
p.initAmplitude;
55 switch (
p.motionType) {
57 res(
i) +=
p.amplitude;
79 for (std::size_t
i = 0;
i <
size; ++
i) {
89 os <<
"MotionPeriod <" <<
name <<
"> ... TODO";
92 #define SOT_PARAMS_CONFIG(ARGname, ARGtype) \
93 else if (cmdLine == #ARGname) { \
96 cmdArgs >> rank >> std::ws; \
97 if (rank >= this->size) { \
98 os << "!! Error: size size too large." << std::endl; \
100 if (cmdArgs.good()) { \
102 motionParams[rank].ARGname = period; \
104 os << #ARGname << "[" << rank << "] = " << motionParams[rank].ARGname \
std::vector< sotMotionParam > motionParams
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(MotionPeriod, "MotionPeriod")
#define sotDEBUGOUT(level)
virtual void display(std::ostream &os) const
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > motionSOUT
#define sotDEBUGIN(level)
void resize(const std::size_t &size)
dynamicgraph::Vector & computeMotion(dynamicgraph::Vector &res, const sigtime_t &time)
void signalRegistration(const SignalArray< sigtime_t > &signals)
DYNAMIC_GRAPH_DLLAPI SignalArray< sigtime_t > sotNOSIGNAL
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31