summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-12-14 14:40:24 +0100
committerTobias Klauser <tklauser@distanz.ch>2012-12-14 14:40:24 +0100
commitb9b52e6de6dc8c6397e19bb7115a4bba9a13837f (patch)
treec694723d26dae717090bf776a798a39dc2fd4023
parent2cf112259e09b88148dc98739bf57049b76337d2 (diff)
LocomotorPrimitivesController: Disable CSV read function
-rw-r--r--LocomotorPrimitivesController.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/LocomotorPrimitivesController.cpp b/LocomotorPrimitivesController.cpp
index e4308bc..0f57111 100644
--- a/LocomotorPrimitivesController.cpp
+++ b/LocomotorPrimitivesController.cpp
@@ -7,6 +7,7 @@
static const double TIME_DAMP = 0.1;
+#if 0
int LocomotorPrimitivesController::loadCsvData(const std::string &muscleName, const std::string &file)
{
std::cout << ">> loading CSV data from " << file << std::endl;
@@ -21,7 +22,7 @@ int LocomotorPrimitivesController::loadCsvData(const std::string &muscleName, co
}
MuscleEMGProfile p(muscleName, 0);
-
+
while (std::getline(data, line)) {
std::stringstream s(line);
std::string cell;
@@ -31,7 +32,7 @@ int LocomotorPrimitivesController::loadCsvData(const std::string &muscleName, co
while (std::getline(s, cell, ',')) {
if (!isdigit(cell[0]))
continue;
-
+
std::cout << "read cell(" << (i == 0 ? "x" : "y") << ") -> " << cell << std::endl;
double val = (double) atof(cell.c_str());
@@ -48,9 +49,10 @@ int LocomotorPrimitivesController::loadCsvData(const std::string &muscleName, co
//_act.push_back(p);
std::cout << ">>> loaded EMG profile for " << p.getName() << ", " << p.getIdx() << "/" << p.getCapacity() << std::endl;
-
+
return 0;
}
+#endif
void LocomotorPrimitivesController::computeControls(const SimTK::State &s, SimTK::Vector &controls) const
{
@@ -109,4 +111,4 @@ void LocomotorPrimitivesController::computeControls(const SimTK::State &s, SimTK
extobl_r->addInControls(ctrl_extobl, controls);
extobl_l->addInControls(ctrl_extobl, controls);
#endif
-} \ No newline at end of file
+}