37 : V(Eigen::Vector3f::Zero()), W(Eigen::Matrix3f::Identity())
43 std::ifstream inputFile(filename);
47 inputFile.ignore(1000,
'\n');
49 for (
int i = 0; i < 3; i++)
51 for (
int j = 0; j < 3; j++)
54 inputFile.ignore(1,
',');
58 for (
int i = 0; i < 3; i++)
61 inputFile.ignore(1,
',');
74 std::ofstream outputFile(filename);
78 outputFile <<
"w00,w01,w02,w10,w11,w12,w20,w21,w22,v0,v1,v2"
80 outputFile <<
W(0, 0) <<
"," <<
W(0, 1) <<
"," <<
W(0, 2) <<
","
81 <<
W(1, 0) <<
"," <<
W(1, 1) <<
"," <<
W(1, 2) <<
","
82 <<
W(2, 0) <<
"," <<
W(2, 1) <<
"," <<
W(2, 2) <<
"," <<
V(0)
83 <<
"," <<
V(1) <<
"," <<
V(2) << std::endl;
93 const Eigen::Vector3f& inputVector)
const
95 return (
W * inputVector) +
V;
Eigen::Vector3f correct(const Eigen::Vector3f &inputVector) const
Applies the correction to a_b,real.
bool toFile(const std::string &filename)
Writes the .csv file with the coefficients of W and V.
Eigen::Matrix3f getW() const
TwelveParametersCorrector()
bool fromFile(const std::string &filename)
Reads the .csv file for the coefficients to configure the W and V terms of the system.
void setW(const Eigen::Matrix3f &W)
void setV(const Eigen::Vector3f &V)
Eigen::Vector3f getV() const
Driver for the VN100S IMU.