48 DBReader(
const std::string & databasePath,
49 float frameRate = 0.0f,
50 bool odometryIgnored =
false,
51 bool ignoreGoalDelay =
false,
52 bool goalsIgnored =
false,
54 const std::vector<unsigned int> & cameraIndices = std::vector<unsigned int>(),
56 bool intermediateNodesIgnored =
false,
57 bool landmarksIgnored =
false,
58 bool featuresIgnored =
false,
61 bool priorsIgnored =
false,
62 bool imuIgnored =
false,
63 bool intermediateNodesAreNormalNodes =
false,
64 const std::vector<Transform> & cameraLocalTransformOverrides = std::vector<Transform>());
65 DBReader(
const std::list<std::string> & databasePaths,
66 float frameRate = 0.0f,
67 bool odometryIgnored =
false,
68 bool ignoreGoalDelay =
false,
69 bool goalsIgnored =
false,
71 const std::vector<unsigned int> & cameraIndices = std::vector<unsigned int>(),
73 bool intermediateNodesIgnored =
false,
74 bool landmarksIgnored =
false,
75 bool featuresIgnored =
false,
78 bool priorsIgnored =
false,
79 bool imuIgnored =
false,
80 bool intermediateNodesAreNormalNodes =
false,
81 const std::vector<Transform> & cameraLocalTransformOverrides = std::vector<Transform>());
85 const std::string & calibrationFolder =
".",
86 const std::string & cameraName =
"");
88 virtual bool isCalibrated()
const;
91 virtual bool getPose(
double stamp,
Transform & pose, cv::Mat & covariance,
double maxWaitTime = 0.06);
93 const DBDriver * driver()
const {
return _dbDriver;}
100 void checkArguments();
103 std::list<std::string> _paths;
104 bool _odometryIgnored;
105 bool _ignoreGoalDelay;
109 std::vector<unsigned int> _cameraIndices;
110 bool _intermediateNodesIgnored;
111 bool _intermediateNodesAreNormalNodes;
112 bool _landmarksIgnored;
113 bool _featuresIgnored;
118 std::vector<Transform> _cameraLocalTransformOverrides;
123 std::set<int>::iterator _currentId;
125 cv::Mat _previousInfMatrix;
126 double _previousStamp;
virtual bool getPose(double stamp, Transform &pose, cv::Mat &covariance, double maxWaitTime=0.06)
Gets the sensor's pose estimate at a specific timestamp.