Go to the documentation of this file.
43 bool defaultToUnit =
true);
51 inline constexpr
static auto N = T::LieAlgebra::RowsAtCompileTime;
52 inline constexpr
static auto Dim =
N *
N;
59 using NoiseModelFactor1<T>::evaluateError;
67 vecM_ << Eigen::Map<const Matrix>(
M.data(),
Dim, 1);
82 inline constexpr
static auto N = T::LieAlgebra::RowsAtCompileTime;
83 inline constexpr
static auto Dim =
N *
N;
88 using NoiseModelFactor2<T, T>::evaluateError;
114 inline constexpr
static auto N = T::LieAlgebra::RowsAtCompileTime;
115 inline constexpr
static auto Dim =
N *
N;
120 using NoiseModelFactor2<T, T>::evaluateError;
142 std::cout <<
s <<
"FrobeniusBetweenFactor<" <<
demangle(
typeid(
T).
name())
143 <<
">(" << keyFormatter(this->
key1()) <<
","
144 << keyFormatter(this->
key2()) <<
")\n";
151 double tol = 1
e-9)
const override {
164 const T T2hat =
T1.compose(
T12_);
166 Vector error =
T2.vec(H2) - T2hat.vec(H1 ? &vec_H_T2hat :
nullptr);
N*N matrix representation of SO(N). N can be Eigen::Dynamic.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
FrobeniusFactor(Key j1, Key j2, const SharedNoiseModel &model=nullptr)
Constructor.
const EIGEN_DEVICE_FUNC InverseReturnType inverse() const
Vector evaluateError(const T &g, OptionalMatrixType H) const override
Error is just Frobenius norm between T element and vectorized matrix M.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
constexpr static auto Dim
double error(const Values &c) const override
Vector evaluateError(const T &T1, const T &T2, OptionalMatrixType H1, OptionalMatrixType H2) const override
Error is Frobenius norm between T1*T12 and T2.
constexpr static auto Dim
T T12_
measured rotation between T1 and T2
SharedNoiseModel noiseModel_
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
3D rotation represented as a rotation matrix or quaternion
EIGEN_MAKE_ALIGNED_OPERATOR_NEW FrobeniusPrior(Key j, const MatrixNN &M, const SharedNoiseModel &model=nullptr)
Constructor.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
bool equals(const NonlinearFactor &f, double tol=1e-9) const override
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
noiseModel::Base::shared_ptr SharedNoiseModel
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW
noiseModel::Diagonal::shared_ptr model
void g(const string &key, int i)
SharedNoiseModel ConvertNoiseModel(const SharedNoiseModel &model, size_t d, bool defaultToUnit)
Non-linear factor base classes.
constexpr static auto Dim
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
assert equality up to a tolerance
Vector evaluateError(const T &T1, const T &T2, OptionalMatrixType H1, OptionalMatrixType H2) const override
Error is just Frobenius norm between rotation matrices.
Eigen::Matrix< double, T::dimension, T::dimension > T2hat_H_T1_
fixed derivative of T2hat wrpt T1
std::string demangle(const char *name)
Pretty print Value type name.
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
Eigen::Matrix< double, Dim, 1 > vecM_
vectorized matrix to approximate
Matrix * OptionalMatrixType
FrobeniusBetweenFactor(Key j1, Key j2, const T &T12, const SharedNoiseModel &model=nullptr)
Construct from two keys and measured rotation.
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
std::uint64_t Key
Integer nonlinear key type.
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
print with optional string
Matrix< RealScalar, Dynamic, Dynamic > M
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:01:40