19 #include <OpenKarto/Karto.h> 45 typedef std::vector<sba::Node2d, Eigen::aligned_allocator<sba::Node2d> > NodeVector;
47 printf(
"DO SPA BEGIN\n");
49 printf(
"DO SPA END\n");
50 NodeVector nodes =
m_Spa.getNodes();
53 karto::Pose2 pose(iter->trans(0), iter->trans(1), iter->arot);
54 corrections.push_back(std::make_pair(iter->nodeId, pose));
75 Eigen::Matrix<double,3,3> m;
76 m(0,0) = precisionMatrix(0,0);
77 m(0,1) = m(1,0) = precisionMatrix(0,1);
78 m(0,2) = m(2,0) = precisionMatrix(0,2);
79 m(1,1) = precisionMatrix(1,1);
80 m(1,2) = m(2,1) = precisionMatrix(1,2);
81 m(2,2) = precisionMatrix(2,2);
kt_double GetHeading() const
virtual const karto::ScanSolver::IdPoseVector & GetCorrections() const
virtual void AddNode(karto::Vertex< karto::LocalizedRangeScan > *pVertex)
const Matrix3 & GetCovariance()
#define forEach(listtype, list)
kt_int32s GetUniqueId() const
karto::ScanSolver::IdPoseVector corrections
std::vector< std::pair< kt_int32s, Pose2 > > IdPoseVector
virtual void AddConstraint(karto::Edge< karto::LocalizedRangeScan > *pEdge)
Vertex< T > * GetSource() const
Vertex< T > * GetTarget() const
const Pose2 & GetCorrectedPose() const
const Pose2 & GetPoseDifference()