diff options
author | Martin Miller | 2017-04-06 11:44:05 -0500 |
---|---|---|
committer | Martin Miller | 2017-04-06 11:44:05 -0500 |
commit | fe4ed819b186d56c7c66e196c4717ddc4ab99415 (patch) | |
tree | cc1d726066f2bd3401dcde27a98407e51887a397 /src/main.h | |
parent | 0a4594884adcdef15abe861fc64d74b7511c6055 (diff) | |
download | refslam-fe4ed819b186d56c7c66e196c4717ddc4ab99415.zip refslam-fe4ed819b186d56c7c66e196c4717ddc4ab99415.tar.gz |
Implement quaternion covariance
Pq = J*Pa*J'
where J is the Jacobian of the euler to quaternion function
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -49,6 +49,7 @@ using Eigen::Matrix; using Eigen::Matrix3d; +using Eigen::Matrix4d; using Eigen::Quaterniond; using Eigen::Vector3d; @@ -57,7 +58,7 @@ int parseLine(char *line, message *msg); timestamp update_dt(const timestamp t, timestamp *t_old); #if STATESIZE==13 -void covCallback(const message &msg, State &mu); +void covCallback(const message &msg, State &mu, const attitude_t &att); void imgCallback(message &msg, State &mu, Camera &cam); void imuCallback(const message &msg, State &mu, const timestamp dt); void utmCallback(const message &msg, State &mu); @@ -68,6 +69,7 @@ void imuCallback(const message &msg, State &mu, const Quaterniond &q, const time void utmCallback(const message &msg, State &mu, const Quaterniond &q); #endif void pvaCallback(const message &msg, Matrix<double,STATESIZE,1> &X, Quaterniond &q); +Matrix<double,4,3> attitude_jacobian(double roll, double pitch, double yaw); #endif /* ----- #ifndef main_INC ----- */ |