40 for (
const auto& factor : graph) {
60 bool singleIter =
true) {
65 for (
const auto key_value : initialRot) {
69 initialPose.
insert(key, initializedPose);
80 params.maxIterations = 1;
82 params.setVerbosity(
"TERMINATION");
89 for (
const auto key_value : GNresult) {
91 if (key != kAnchorKey) {
93 estimate.
insert(key, pose);
int EIGEN_BLAS_FUNC() rot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pc, RealScalar *ps)
virtual const Values & optimize()
Factor Graph consisting of non-linear factors.
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 origin
Point2 prior(const Point2 &x)
Prior on a single pose.
void insert(Key j, const Value &val)
IsDerived< DERIVEDFACTOR > add(boost::shared_ptr< DERIVEDFACTOR > factor)
add is a synonym for push_back.
NonlinearFactorGraph graph
static Values computePoses(const Values &initialRot, NonlinearFactorGraph *posegraph, bool singleIter=true)
static shared_ptr Create(size_t dim)
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&...args)
Emplace a shared pointer to factor of given type.
static const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
static SmartStereoProjectionParams params
static constexpr Key kAnchorKey
static NonlinearFactorGraph buildPoseGraph(const NonlinearFactorGraph &graph)
Values initialize(const NonlinearFactorGraph &graph, bool useOdometricPath)
Expression< T > between(const Expression< T > &t1, const Expression< T > &t2)
std::uint64_t Key
Integer nonlinear key type.