small fix
This commit is contained in:
parent
b50597159a
commit
077af5937f
|
@ -63,8 +63,6 @@ class KeypointVioEstimator : public VioEstimatorBase,
|
||||||
typedef Eigen::Matrix<double, N, N> MatNN;
|
typedef Eigen::Matrix<double, N, N> MatNN;
|
||||||
typedef Eigen::Matrix<double, N, 3> MatN3;
|
typedef Eigen::Matrix<double, N, 3> MatN3;
|
||||||
|
|
||||||
static constexpr double prior_weight = 1e8;
|
|
||||||
|
|
||||||
KeypointVioEstimator(double int_std_dev, const Eigen::Vector3d& g,
|
KeypointVioEstimator(double int_std_dev, const Eigen::Vector3d& g,
|
||||||
const basalt::Calibration<double>& calib,
|
const basalt::Calibration<double>& calib,
|
||||||
const VioConfig& config);
|
const VioConfig& config);
|
||||||
|
|
|
@ -62,6 +62,8 @@ KeypointVioEstimator::KeypointVioEstimator(
|
||||||
marg_H.setZero(POSE_VEL_BIAS_SIZE, POSE_VEL_BIAS_SIZE);
|
marg_H.setZero(POSE_VEL_BIAS_SIZE, POSE_VEL_BIAS_SIZE);
|
||||||
marg_b.setZero(POSE_VEL_BIAS_SIZE);
|
marg_b.setZero(POSE_VEL_BIAS_SIZE);
|
||||||
|
|
||||||
|
double prior_weight = 1.0 / (int_std_dev * int_std_dev);
|
||||||
|
|
||||||
// prior on position
|
// prior on position
|
||||||
marg_H.diagonal().head<3>().setConstant(prior_weight);
|
marg_H.diagonal().head<3>().setConstant(prior_weight);
|
||||||
// prior on yaw
|
// prior on yaw
|
||||||
|
|
Loading…
Reference in New Issue