IMU: changed members from Eigen to cv to avoid seg faults about Eigen memory alignment when copying IMU object created dynamically (#270)

This commit is contained in:
matlabbe
2018-03-21 21:31:41 -04:00
parent 4188da2ef2
commit 00412749e7
5 changed files with 60 additions and 16 deletions

View File

@@ -375,13 +375,13 @@ int main(int argc, char * argv[])
std::string nanoseconds = s.substr(s.size() - 9, 9);
std::string seconds = s.substr(0, s.size() - 9);
Eigen::Vector3d gyr;
cv::Vec3d gyr;
for (int j = 0; j < 3; ++j) {
std::getline(stream, s, ',');
gyr[j] = std::stof(s);
}
Eigen::Vector3d acc;
cv::Vec3d acc;
for (int j = 0; j < 3; ++j) {
std::getline(stream, s, ',');
acc[j] = std::stof(s);