pfuclt_aux.cpp
Go to the documentation of this file.
2 #include <minicsv/minicsv.h>
3 #include <iostream>
4 
5 namespace pfuclt_omni_dataset
6 {
7 std::vector<Landmark> getLandmarks(const char* filename)
8 {
9  std::vector<Landmark> lm_vec;
10  mini::csv::ifstream is(filename);
11 
12  if (is.is_open())
13  {
14  Landmark lm;
15  while (is.read_line())
16  {
17  // order is serial,x,y\n
18  is >> lm.serial >> lm.x >> lm.y;
19  lm_vec.push_back(lm);
20  }
21  }
22 
23  is.close();
24  return lm_vec;
25 }
26 
27 // end of namespace pfuclt_omni_dataset
28 }
std::vector< Landmark > getLandmarks(const char *filename)
getLandmarks - read landmark configuration from CSV file
Definition: pfuclt_aux.cpp:7
The Landmark struct - used to store a landmark, defined by its serial number, and its position {x...
Definition: pfuclt_aux.h:29


pfuclt_omni_dataset
Author(s):
autogenerated on Tue Jul 4 2017 19:38:38