CameraMyntEye/GUI: added manual/auto exposure option (default auto). Rtabmap: refactored warning when RGBD/OptimizeFromGraphEnd changes state.

This commit is contained in:
matlabbe
2020-05-28 19:50:02 -04:00
parent 6e0081e248
commit 45ddce938a
6 changed files with 164 additions and 26 deletions

View File

@@ -284,6 +284,7 @@ private:
double _lastProcessTime;
bool _someNodesHaveBeenTransferred;
float _distanceTravelled;
bool _optimizeFromGraphEndChanged;
// Abstract classes containing all loop closure
// strategies for a type of signature or configuration.

View File

@@ -61,6 +61,7 @@ public:
virtual bool odomProvided() const { return false; }
void publishInterIMU(bool enabled);
void setAutoExposure(bool enabled, int manualGain=24, int manualBrightness=120, int manualConstrast=116);
protected:
/**
@@ -80,6 +81,10 @@ private:
std::string deviceName_;
bool apiRectification_;
bool apiDepth_;
bool autoExposure_;
int gain_;
int brightness_;
int contrast_;
USemaphore dataReady_;
UMutex dataMutex_;
cv::Mat leftFrameBuffer_;
@@ -94,7 +99,7 @@ private:
double softTimeBegin_;
std::uint64_t hardTimeBegin_;
std::uint64_t unitHardTime;
std::uint64_t unitHardTime_;
std::vector<std::uint64_t> lastHardTimes_;
std::vector<std::uint64_t> acc_;
#endif