refactoring to add nav mesh
This commit is contained in:
@@ -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