refactoring to add nav mesh
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
#include <Indoor/grid/Grid.h>
|
||||
|
||||
#include <KLib/math/filter/particles/Particle.h>
|
||||
#include "../nav/Node.h"
|
||||
#include "../nav/State.h"
|
||||
#include "../nav/grid/Node.h"
|
||||
#include "../nav/Observation.h"
|
||||
|
||||
/**
|
||||
* debug color points
|
||||
|
||||
@@ -111,7 +111,7 @@ void MapView2D::setMap(WiFiCalibrationDataModel* mdl, Floorplan::IndoorMap* map)
|
||||
|
||||
}
|
||||
|
||||
void MapView2D::showParticles(const std::vector<K::Particle<MyState>>* particles) {
|
||||
void MapView2D::showParticles(const std::vector<K::Particle<GridBased::MyState>>* particles) {
|
||||
this->colorPoints->setFromParticles(*particles);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include <Indoor/nav/dijkstra/DijkstraPath.h>
|
||||
#include <Indoor/geo/Point3.h>
|
||||
|
||||
#include "nav/grid/State.h"
|
||||
|
||||
namespace Floorplan {
|
||||
class IndoorMap;
|
||||
}
|
||||
@@ -99,11 +101,11 @@ public:
|
||||
|
||||
/** NOTE: must be called from Qt's main thread! */
|
||||
Q_INVOKABLE void showParticles(const void* particles) {
|
||||
showParticles((const std::vector<K::Particle<MyState>>*) particles);
|
||||
showParticles((const std::vector<K::Particle<GridBased::MyState>>*) particles);
|
||||
}
|
||||
|
||||
/** NOTE: must be called from Qt's main thread! */
|
||||
void showParticles(const std::vector<K::Particle<MyState>>* particles);
|
||||
void showParticles(const std::vector<K::Particle<GridBased::MyState>>* particles);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <Indoor/nav/dijkstra/DijkstraPath.h>
|
||||
#include <Indoor/grid/Grid.h>
|
||||
|
||||
#include "../nav/Node.h"
|
||||
#include "../nav/grid/Node.h"
|
||||
|
||||
|
||||
class Path2D : public Renderable2D {
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
#include "elements/ColorPoints.h"
|
||||
#include "elements/Object.h"
|
||||
|
||||
#include "../nav/State.h"
|
||||
#include "../nav/Observation.h"
|
||||
#include "../nav/grid/State.h"
|
||||
|
||||
|
||||
namespace Floorplan {
|
||||
class IndoorMap;
|
||||
@@ -122,11 +124,11 @@ public:
|
||||
|
||||
/** NOTE: must be called from Qt's main thread! */
|
||||
Q_INVOKABLE void showParticles(const void* particles) {
|
||||
showParticles((const std::vector<K::Particle<MyState>>*) particles);
|
||||
showParticles((const std::vector<K::Particle<GridBased::MyState>>*) particles);
|
||||
}
|
||||
|
||||
/** NOTE: must be called from Qt's main thread! */
|
||||
void showParticles(const std::vector<K::Particle<MyState>>* particles) {
|
||||
void showParticles(const std::vector<K::Particle<GridBased::MyState>>* particles) {
|
||||
this->colorPoints->setFromParticles(*particles);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "../Renderable.h"
|
||||
|
||||
#include "../../../../Settings.h"
|
||||
#include "../../../../nav/Node.h"
|
||||
#include "../../../../nav/grid/Node.h"
|
||||
|
||||
class ColorPoints : public Renderable {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user