Files
IPIN2016/code/MyGridNode.h
2016-04-11 10:57:29 +02:00

31 lines
584 B
C++

#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() : GridNode(), GridPoint() {;}
MyGridNode(const float x_cm, const float y_cm, const float z_cm) : GridPoint(x_cm, y_cm, z_cm) {;}
};
#endif // MYGRIDNODE_H