UI: Added option to change map resolution on UI side, save/restore thresholds in figures, fixed basic panel's slam/rgbd mode checkboxes not changing the state of corresponding parameters.

This commit is contained in:
matlabbe
2024-04-12 17:12:23 -07:00
parent fbbab1c077
commit a3267c9da6
8 changed files with 213 additions and 45 deletions

View File

@@ -226,6 +226,7 @@ public:
double getSubtractFilteringRadius() const;
double getSubtractFilteringAngle() const;
double getGridUIResolution() const;
bool getGridMapShown() const;
int getElevationMapShown() const;
int getGridMapSensor() const;

View File

@@ -95,8 +95,9 @@ public:
StatsToolBox(QWidget * parent);
virtual ~StatsToolBox();
void getFiguresSetup(QList<int> & curvesPerFigure, QStringList & curveNames);
void getFiguresSetup(QList<int> & curvesPerFigure, QStringList & curveNames, QStringList & curveThresholds);
void addCurve(const QString & name, bool newFigure = true, bool cacheOn = false);
void addThreshold(const QString & name, qreal value); // Add to latest figure
void setWorkingDirectory(const QString & workingDirectory);
void setNewFigureMaxItems(int value) {_newFigureMaxItems = value;}
void closeFigures();

View File

@@ -270,6 +270,7 @@ public:
*/
UPlotCurveThreshold(const QString & name, qreal thesholdValue, Qt::Orientation orientation = Qt::Horizontal, QObject * parent = 0);
virtual ~UPlotCurveThreshold();
qreal getThreshold() const {return _threshold;}
public Q_SLOTS:
/**
@@ -288,6 +289,7 @@ protected:
private:
Qt::Orientation _orientation;
qreal _threshold;
};
/**
@@ -509,8 +511,10 @@ public:
/**
* Get all curve names.
*/
QStringList curveNames();
bool contains(const QString & curveName);
QStringList curveNames() const;
bool contains(const QString & curveName) const;
bool isThreshold(const QString & curveName) const;
double getThresholdValue(const QString & curveName) const;
void removeCurves();
QString getAllCurveDataAsText() const;
/**