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 bool occupancyGridsIgnored =
false);
66 DBReader(
const std::list<std::string> & databasePaths,
67 float frameRate = 0.0f,
68 bool odometryIgnored =
false,
69 bool ignoreGoalDelay =
false,
70 bool goalsIgnored =
false,
72 const std::vector<unsigned int> & cameraIndices = std::vector<unsigned int>(),
74 bool intermediateNodesIgnored =
false,
75 bool landmarksIgnored =
false,
76 bool featuresIgnored =
false,
79 bool priorsIgnored =
false,
80 bool imuIgnored =
false,
81 bool intermediateNodesAreNormalNodes =
false,
82 const std::vector<Transform> & cameraLocalTransformOverrides = std::vector<Transform>(),
83 bool occupancyGridsIgnored =
false);
87 const std::string & calibrationFolder =
".",
88 const std::string & cameraName =
"");
90 virtual bool isCalibrated()
const;
93 virtual bool getPose(
double stamp,
Transform & pose, cv::Mat & covariance,
double maxWaitTime = 0.06);
95 const DBDriver * driver()
const {
return _dbDriver;}
102 void checkArguments();
105 std::list<std::string> _paths;
106 bool _odometryIgnored;
107 bool _ignoreGoalDelay;
111 std::vector<unsigned int> _cameraIndices;
112 bool _intermediateNodesIgnored;
113 bool _intermediateNodesAreNormalNodes;
114 bool _landmarksIgnored;
115 bool _featuresIgnored;
120 std::vector<Transform> _cameraLocalTransformOverrides;
121 bool _occupancyGridsIgnored;
126 std::set<int>::iterator _currentId;
128 cv::Mat _previousInfMatrix;
129 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.