16 #include <mrpt/containers/yaml.h> 17 #include <mrpt/math/TLine3D.h> 18 #include <mrpt/serialization/CSerializable.h> 19 #include <mrpt/tfest/TMatchingPair.h> 20 #include <mrpt/typemeta/TTypeName.h> 34 : p_global(pl_this), p_local(pl_other)
60 : pl_global(p_global), pt_local(p_local)
76 const mrpt::math::TLine3D& l_global,
77 const mrpt::math::TPoint3D&
p_local)
78 : ln_global(l_global), pt_local(p_local)
99 mrpt::tfest::TMatchingPairList paired_pt2pt;
120 return paired_pt2pt.empty() && paired_pl2pl.empty() &&
121 paired_ln2ln.empty() && paired_pt2ln.empty() &&
122 paired_pt2pl.empty();
126 virtual size_t size()
const;
132 virtual void push_back(
const Pairings& o);
135 virtual void push_back(
Pairings&& o);
137 virtual void serializeTo(mrpt::serialization::CArchive&
out)
const;
138 virtual void serializeFrom(mrpt::serialization::CArchive& in);
149 virtual auto get_visualization(
150 const mrpt::poses::CPose3D& localWrtGlobal,
152 -> std::shared_ptr<mrpt::opengl::CSetOfObjects>;
155 virtual void get_visualization_pt2pt(
156 mrpt::opengl::CSetOfObjects& o,
157 const mrpt::poses::CPose3D& localWrtGlobal,
161 virtual void get_visualization_pt2pl(
162 mrpt::opengl::CSetOfObjects& o,
163 const mrpt::poses::CPose3D& localWrtGlobal,
167 virtual void get_visualization_pt2ln(
168 mrpt::opengl::CSetOfObjects& o,
169 const mrpt::poses::CPose3D& localWrtGlobal,
177 mrpt::serialization::CArchive&
out,
const Pairings& obj);
180 mrpt::serialization::CArchive& in,
Pairings& obj);
195 return point2point.empty() && line2line.empty() && plane2plane.empty();
197 inline std::size_t
size()
const 199 return point2point.size() + line2line.size() + plane2plane.size();
mrpt::math::TPoint3D pt_local
mrpt::math::TPoint3Df pt_local
MatchedLineList paired_ln2ln
std::vector< matched_plane_t > MatchedPlaneList
std::vector< matched_line_t > MatchedLineList
std::vector< std::size_t > plane2plane
Render parameters for the different geometric entities.
point_plane_pair_t(const plane_patch_t &p_global, const mrpt::math::TPoint3Df &p_local)
std::vector< point_plane_pair_t > MatchedPointPlaneList
matched_plane_t()=default
virtual bool empty() const
std::vector< std::size_t > point2point
matched_plane_t(const plane_patch_t &pl_this, const plane_patch_t &pl_other)
mrpt::math::TLine3D ln_local
std::vector< std::size_t > line2line
std::vector< std::pair< std::size_t, double > > point_weights
MatchedPointLineList paired_pt2ln
std::tuple< mrpt::math::TPoint3D, mrpt::math::TPoint3D > eval_centroids_robust(const Pairings &in, const OutlierIndices &outliers)
std::vector< point_line_pair_t > MatchedPointLineList
point_line_pair_t(const mrpt::math::TLine3D &l_global, const mrpt::math::TPoint3D &p_local)
MatchedPlaneList paired_pl2pl
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &out, const Pairings &obj)
mrpt::math::TLine3D ln_global
MatchedPointPlaneList paired_pt2pl
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, Pairings &obj)