40 for (
const auto& factor : graph) {
60 bool singleIter =
true) {
66 const Key&
key = key_rot.first;
67 const auto&
rot = key_rot.second;
69 initialPose.
insert(key, initializedPose);
80 params.maxIterations = 1;
82 params.setVerbosity(
"TERMINATION");
89 for (
const auto& key_pose : GNresult.
extract<
Pose>()) {
90 const Key&
key = key_pose.first;
91 if (key != kAnchorKey) {
93 estimate.
insert(key, pose);
const gtsam::Symbol key('X', 0)
int EIGEN_BLAS_FUNC() rot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pc, RealScalar *ps)
virtual const Values & optimize()
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
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.
std::map< Key, ValueType > extract(const std::function< bool(Key)> &filterFcn=&_truePredicate< Key >) const
NonlinearFactorGraph graph
static Values computePoses(const Values &initialRot, NonlinearFactorGraph *posegraph, bool singleIter=true)
IsDerived< DERIVEDFACTOR > add(std::shared_ptr< DERIVEDFACTOR > factor)
add is a synonym for push_back.
static shared_ptr Create(size_t dim)
static const SmartProjectionParams params
static const Pose3 pose(Rot3(Vector3(1, -1, -1).asDiagonal()), Point3(0, 0, 0.5))
static constexpr Key kAnchorKey
void insert(Key j, const Value &val)
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.