filter yaw ok
This commit is contained in:
@@ -137,7 +137,8 @@ class ImuOdom {
|
|||||||
q.x() = deltaQ(1);
|
q.x() = deltaQ(1);
|
||||||
q.y() = deltaQ(2);
|
q.y() = deltaQ(2);
|
||||||
q.z() = deltaQ(3);
|
q.z() = deltaQ(3);
|
||||||
odomPOS = odomPOS + deltaP.cast<double>();
|
odomPOS = odomPOS + odomROT*deltaP.cast<double>(); // V1
|
||||||
|
//odomPOS = odomPOS + deltaP.cast<double>(); // V2
|
||||||
odomROT = odomROT * q.normalized().toRotationMatrix();
|
odomROT = odomROT * q.normalized().toRotationMatrix();
|
||||||
|
|
||||||
// compute euler
|
// compute euler
|
||||||
|
|||||||
@@ -9,7 +9,11 @@ const char *o1_bin = "imuodom/layers/output1.bin";
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
downloadWeightsifDoNotExist(i0_bin, "imuodom", "https://cloud.hipert.unimore.it/s/BBSEbEbQbPKxp4s/download");
|
// V1
|
||||||
|
downloadWeightsifDoNotExist(i0_bin, "imuodom", "https://cloud.hipert.unimore.it/s/ZAy34K5w2ixED6x/download");
|
||||||
|
|
||||||
|
// V2
|
||||||
|
//downloadWeightsifDoNotExist(i0_bin, "imuodom", "https://cloud.hipert.unimore.it/s/BBSEbEbQbPKxp4s/download");
|
||||||
|
|
||||||
tk::dnn::ImuOdom ImuNet;
|
tk::dnn::ImuOdom ImuNet;
|
||||||
ImuNet.init("imuodom/layers/");
|
ImuNet.init("imuodom/layers/");
|
||||||
|
|||||||
Reference in New Issue
Block a user