worked on grid-walker v3
This commit is contained in:
43
grid/walk/v3/Structs.h
Normal file
43
grid/walk/v3/Structs.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#ifndef INDOOR_GW3_STRUCTS_H
|
||||
#define INDOOR_GW3_STRUCTS_H
|
||||
|
||||
#include "../../../geo/Heading.h"
|
||||
#include "../../../geo/Point3.h"
|
||||
#include <vector>
|
||||
|
||||
namespace GW3 {
|
||||
|
||||
/** paremters for the walk */
|
||||
struct WalkParams {
|
||||
Point3 start;
|
||||
float distance_m;
|
||||
Heading heading = Heading(0);
|
||||
};
|
||||
|
||||
/** result of the random walk */
|
||||
struct WalkResult {
|
||||
Point3 position;
|
||||
Heading heading = Heading(0);
|
||||
double probability = 1.0;
|
||||
};
|
||||
|
||||
/** several nodes */
|
||||
template <typename Node> struct Nodes : public std::vector<const Node*> {
|
||||
|
||||
};
|
||||
|
||||
/** one walk along several nodes */
|
||||
template <typename Node> struct Walk : public std::vector<const Node*> {
|
||||
|
||||
};
|
||||
|
||||
/** several walks */
|
||||
template <typename Node> struct Walks : public std::vector<Walk<Node>> {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INDOOR_GW3_STRUCTS_H
|
||||
Reference in New Issue
Block a user