From b9b52e6de6dc8c6397e19bb7115a4bba9a13837f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 14 Dec 2012 14:40:24 +0100 Subject: LocomotorPrimitivesController: Disable CSV read function --- LocomotorPrimitivesController.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'LocomotorPrimitivesController.cpp') 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 +} -- cgit v1.2.3-54-g00ecf /linux/net-next.git/diff/drivers/staging?id=20df080da27e368eea04e5d69d4c7292f8425281'>diff
path: root/drivers/staging
ModeNameSize