38 #include <visp3/core/vpConfig.h>
40 #if defined(VISP_HAVE_CATCH2) && (VISP_HAVE_DATASET_VERSION >= 0x030400)
42 #include <visp3/core/vpIoTools.h>
43 #include <visp3/mbt/vpMbGenericTracker.h>
45 #include <catch_amalgamated.hpp>
47 #ifdef ENABLE_VISP_NAMESPACE
53 TEST_CASE(
"vpMbGenericTracker load CAO model Linux line ending",
"[vpMbGenericTracker CAO parsing]")
57 const bool verbose =
true;
58 REQUIRE_NOTHROW(tracker.
loadModel(cao_filename, verbose));
60 std::list<vpMbtDistanceCylinder *> cylinders;
62 CHECK(cylinders.size() == 1);
64 std::list<vpMbtDistanceCircle *> circles;
66 CHECK(circles.size() == 1);
69 TEST_CASE(
"vpMbGenericTracker load CAO model Windows line ending",
"[vpMbGenericTracker CAO parsing]")
71 const std::string cao_filename =
74 const bool verbose =
true;
75 REQUIRE_NOTHROW(tracker.
loadModel(cao_filename, verbose));
77 std::list<vpMbtDistanceCylinder *> cylinders;
79 CHECK(cylinders.size() == 1);
81 std::list<vpMbtDistanceCircle *> circles;
83 CHECK(circles.size() == 1);
86 int main(
int argc,
char *argv[])
88 Catch::Session session;
89 session.applyCommandLine(argc, argv);
90 int numFailed = session.run();
97 int main() {
return EXIT_SUCCESS; }
Real-time 6D object pose tracking using its CAD model.
virtual void getLcircle(std::list< vpMbtDistanceCircle * > &circlesList, unsigned int level=0) const
virtual void getLcylinder(std::list< vpMbtDistanceCylinder * > &cylindersList, unsigned int level=0) const
virtual void loadModel(const std::string &modelFile, bool verbose=false, const vpHomogeneousMatrix &T=vpHomogeneousMatrix()) VP_OVERRIDE