MCPcopy Create free account
hub / github.com/KumarRobotics/sloam / SetUp

Method SetUp

sloam/src/tests/cylinder_test.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19{
20protected:
21 void SetUp() override
22 {
23 setupParams();
24 PointT pta, ptb, ptc, ptd;
25 pta.x = 0; pta.y = 0; pta.z = 0;
26 ptb.x = 0; ptb.y = 1; ptb.z = 0;
27 ptc.x = 1; ptc.y = 0; ptc.z = 0;
28 ptd.x = 1; ptd.y = 1; ptd.z = 0;
29 VectorType gfeatures{pta, ptb, ptc, ptd};
30 plane = boost::make_shared<Plane>(gfeatures, params);
31
32 std::ifstream ifs("/opt/sloam_ws/src/sloam/src/tests/aux/still_landmarks_t0");
33 boost::archive::text_iarchive ia(ifs);
34 // read class state from archive
35 ia >> landmarks;
36 }
37
38 void setupParams()
39 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected