added code from fusion2016
This commit is contained in:
29
code/MyGridNode.h
Normal file
29
code/MyGridNode.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef MYGRIDNODE_H
|
||||
#define MYGRIDNODE_H
|
||||
|
||||
#include <Indoor/grid/GridNode.h>
|
||||
#include <Indoor/grid/GridPoint.h>
|
||||
|
||||
/**
|
||||
* the nodes we add to our grid
|
||||
*/
|
||||
struct MyGridNode : public GridNode, public GridPoint {
|
||||
|
||||
/** distance to the desired target */
|
||||
float distToTarget = 1.0;
|
||||
|
||||
/** node importance based on surroundings */
|
||||
float imp = 1.0;
|
||||
|
||||
/** used for eval */
|
||||
int cnt = 0;
|
||||
|
||||
public:
|
||||
|
||||
/** needed ctor */
|
||||
MyGridNode(const float x_cm, const float y_cm, const float z_cm) : GridPoint(x_cm, y_cm, z_cm) {;}
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // MYGRIDNODE_H
|
||||
Reference in New Issue
Block a user