namespace IMPLEMENTS_MRPT_OBJECT¶
Overview¶
namespace IMPLEMENTS_MRPT_OBJECT { // typedefs typedef std::shared_ptr<T> gtsam_shared_ptr; // global variables constexpr double ENU2MAP_WEAK_SIGMA = 1e4; constexpr double INIT_ODOM_FRAME_POSE_SIGMA = 1e3; constexpr double FIRST_POSE_WEAK_PRIOR_SIGMA = 1e6; constexpr double GAUGE_ANCHOR_SIGMA = 1e-3; constexpr double UNOBSERVED_ENU2MAP_ANGLE_SIGMA = 1.0; constexpr double KEPT_GEOREF_MAX_POSITION_JUMP = 1.0; constexpr double KEPT_GEOREF_MAX_ANGLE_JUMP_DEG = 5.0; constexpr double PLANAR_XY_SIGMA = 1e10; constexpr double PLANAR_Z_SIGMA = 1e-4; constexpr double TRICYCLE_LARGE_SIGMAS = 1e6; constexpr double MAX_BIAS_PRIOR_TO_LINK_SIGMA_RATIO = 1000.0; constexpr double GNSS_RESIDUAL_CHAIN_MAX_GAP = 5.0; constexpr size_t GNSS_RESIDUAL_CHAIN_MIN_OUT_OF_GATE = 3; constexpr std::array<char, 4> GNSS_BIAS_SYMBOLS = {'G', 'H', 'J', 'K'}; constexpr const char* WHEELS_ODOMETRY_FRAME_SUFFIX = "_wheels"; constexpr size_t POSE_LEAD_MAX_DROPS_IN_A_ROW = 10; constexpr double GYRO_HUBER_K = 1.345; constexpr double ACC_NORM_MIN_FOR_SI_UNITS = 3.0; constexpr double ACC_UNITS_DETECTION_PERIOD = 0.5; // global functions template <class FRAMES_MAP> std::string unused_wheels_frame_name( const FRAMES_MAP& frames, const std::string& label, const std::string& referenceFrame ); void enforce_planar_pose(mrpt::poses::CPose3D& p); void enforce_planar_twist(mrpt::math::TTwist3D& tw); double key_stamp_seconds(const mrpt::Clock::time_point& t); std::ofstream* navstate_dump_stream(); void navstate_dump_row( const mrpt::Clock::time_point& timestamp, double dt, const mola::NavState& ns ); gtsam::SharedNoiseModel with_huber(const gtsam::SharedNoiseModel& base, double threshold); mrpt::poses::CPose3DPDFGaussian odometry_increment_pdf( const mola::state_estimation_smoother::Parameters& p, const mrpt::poses::CPose2D& odometryIncrement ); gtsam::noiseModel::mEstimator::Base::shared_ptr make_gnss_kernel( const std::string& name, double scale ); std::set<int> parse_fix_qualities(const std::string& s); } // namespace IMPLEMENTS_MRPT_OBJECT
Global Variables¶
constexpr double GYRO_HUBER_K = 1.345
Huber threshold [whitened units] for raw gyro observations; the standard value giving ~95% efficiency under Gaussian noise.
Global Functions¶
gtsam::SharedNoiseModel with_huber( const gtsam::SharedNoiseModel& base, double threshold )
Wraps a pose factor’s Gaussian noise model in a Huber m-estimator when threshold (in whitened units) is > 0. Huber is convex, so unlike a redescending kernel it cannot switch off a correct measurement whose variable starts far from it, as a new keyframe seeded at its neighbor’s pose does.
mrpt::poses::CPose3DPDFGaussian odometry_increment_pdf( const mola::state_estimation_smoother::Parameters& p, const mrpt::poses::CPose2D& odometryIncrement )
Wheel-odometry increment with the uncertainty of the configured probabilistic motion model.