![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Diff: CSV.cpp
- Revision:
- 13:711f74b2fa33
- Parent:
- 12:6cd135bf03bd
diff -r 6cd135bf03bd -r 711f74b2fa33 CSV.cpp --- a/CSV.cpp Sun Feb 03 04:53:44 2013 +0000 +++ b/CSV.cpp Sun Feb 03 21:22:21 2013 +0000 @@ -19,21 +19,24 @@ while(getline(file, str)) { vector<string> str_line = split(str, (string)","); - stringstream sstr; if (str_line[0] == "servo_size") { + stringstream sstr; sstr << str_line[1]; sstr >> *servo_size; } else if (str_line[0] == "motion_size") { + stringstream sstr; sstr << str_line[1]; sstr >> *motion_size; } else if (str_line[0] == "pose_size") { + stringstream sstr; sstr << str_line[1]; sstr >> pose_size[id]; ++ id; } else { int size = str_line.size(); for(int i = 0; i < size; ++i) { + stringstream sstr; sstr << str_line[i]; sstr >> p[i]; }