summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}