diff options
author | Martin Miller | 2017-03-18 23:01:15 -0500 |
---|---|---|
committer | Martin Miller | 2017-03-18 23:01:15 -0500 |
commit | 0862825c7e37a45c343559b7c18a21fc0bb965f9 (patch) | |
tree | 4f9c8729ff6a137a426b5ed017773bf698f0a641 /src/main.cpp | |
parent | f098647e69c1fe3a3a20599405962e7e1f3c7c0f (diff) | |
download | refslam-0862825c7e37a45c343559b7c18a21fc0bb965f9.zip refslam-0862825c7e37a45c343559b7c18a21fc0bb965f9.tar.gz |
Start Feature::h() method
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6cc4317..5d4ea71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,7 +31,7 @@ using std::cerr; #else /* ----- not USE_ROS ----- */ void -covCallback(const message &msg, State &mu, const Quaternion<double> &q) +covCallback(const message &msg, State &mu, const Quaterniond &q) { if (seencov && seenutm && seenpva) return; seencov=true; @@ -49,7 +49,7 @@ imgCallback(const message *msg) } void -imuCallback(const message &msg, State &mu, const Quaternion<double> &q, const timestamp dt) +imuCallback(const message &msg, State &mu, const Quaterniond &q, const timestamp dt) { if (!seenutm || !seenpva || !seencov || (dt.secs==0 && dt.nsecs==0)) return; Vector3d acc(msg.linear_acceleration.y,msg.linear_acceleration.x,-msg.linear_acceleration.z); @@ -63,7 +63,7 @@ imuCallback(const message &msg, State &mu, const Quaternion<double> &q, const ti } void -pvaCallback(const message &msg, State &mu, Quaternion<double> &q) +pvaCallback(const message &msg, State &mu, Quaterniond &q) { // Update quaternion using Eigen::AngleAxisd; @@ -76,7 +76,7 @@ pvaCallback(const message &msg, State &mu, Quaternion<double> &q) R = AngleAxisd(yaw, Vector3d::UnitZ()) * AngleAxisd(roll, Vector3d::UnitX()) * AngleAxisd(pitch, Vector3d::UnitY()); - q = Quaternion<double>(R); + q = Quaterniond(R); // Set body velocity if (!seenpva || !seencov || !seenutm) { @@ -217,7 +217,7 @@ int main(int argc, char **argv) { State mu; - Quaternion<double> qbw; + Quaterniond qbw; // bias in FRD coordinates Vector3d acc_bias; acc_bias << -0.03713532, 1.125*0.01465135, -1*-0.00709229; |