Go to the documentation of this file.
16 #include <dynamic-graph/factory.h>
18 #include <boost/bind.hpp>
35 selectionSIN(NULL,
"Reader(" +
n +
")::input(flag)::selec"),
39 vectorSOUT,
"Reader(" +
n +
")::matrix"),
59 std::ifstream datafile(
filename.c_str());
60 const std::size_t SIZE = 1024;
62 std::vector<double> newline;
63 while (datafile.good()) {
64 datafile.getline(buffer, SIZE);
65 const std::size_t gcount = (std::size_t)(datafile.gcount());
68 std::istringstream iss(buffer);
70 sotDEBUG(25) <<
"Get line = '" << buffer <<
"'" << std::endl;
78 sotDEBUG(45) <<
"New data = " <<
x << std::endl;
80 if (newline.size() > 0)
dataSet.push_back(newline);
102 const std::size_t time) {
106 sotDEBUG(15) <<
"Start the list" << std::endl;
122 for (std::size_t
i = 0;
i < curr.size(); ++
i)
123 if (selection(
i))
dim++;
127 for (std::size_t
i = 0;
i < curr.size(); ++
i)
128 if (selection(
i))
res(cursor++) = curr[
i];
135 const std::size_t time) {
152 os << CLASS_NAME <<
" " <<
name << endl;
163 namespace dc = ::dynamicgraph::command;
165 "Clear the data loaded"));
167 dc::makeCommandVoid0(
169 "Reset the iterator to the beginning of the data set"));
void load(const std::string &filename)
sotReader(const std::string n)
void display(std::ostream &os) const
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
dynamicgraph::Vector & getNextData(dynamicgraph::Vector &res, const std::size_t time)
#define sotDEBUGOUT(level)
#define sotDEBUGIN(level)
dynamicgraph::Matrix & getNextMatrix(dynamicgraph::Matrix &res, const std::size_t time)
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > vectorSOUT
SignalArray< sigtime_t > sotNOSIGNAL(0)
SignalTimeDependent< dynamicgraph::Matrix, sigtime_t > matrixSOUT
SOT_CORE_EXPORT std::ostream & operator<<(std::ostream &os, const VectorMultiBound &v)
virtual void initCommands()
void addCommand(const std::string &name, command::Command *command)
SignalPtr< Flags, sigtime_t > selectionSIN
void resize(const size_type &nbRow, const size_type &nbCol)
DataType::const_iterator currentData
void signalRegistration(const SignalArray< sigtime_t > &signals)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31