geometry changes/fixes/new features
new grid walkers + fixes new test-cases worked on step/and turn detection android offline-data-reader worked on vap-grouping
This commit is contained in:
@@ -39,7 +39,7 @@ struct MyNode1239 : public GridPoint, public GridNode, public GridNodeImportance
|
||||
|
||||
// ENSURE UNIQUE CLASS NAME
|
||||
struct MyState23452 : public WalkState, public WalkStateHeading {
|
||||
MyState23452(const GridPoint& pos, const Heading head) : WalkState(pos), WalkStateHeading(head) {;}
|
||||
MyState23452(const GridPoint& pos, const Heading head) : WalkState(pos), WalkStateHeading(head, 0) {;}
|
||||
};
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ TEST(GridWalk2, LIVE_error) {
|
||||
} ctrl;
|
||||
|
||||
GridWalker<MyNode1239, MyState23452> walker;
|
||||
WalkModuleHeadingControl<MyNode1239, MyState23452, Control> modHead(&ctrl);
|
||||
WalkModuleHeadingControl<MyNode1239, MyState23452, Control> modHead(&ctrl, 3.0f);
|
||||
|
||||
walker.addModule(&modHead);
|
||||
|
||||
@@ -81,9 +81,9 @@ TEST(GridWalk2, LIVE_error) {
|
||||
for (int j = 0; j < 100; ++j) {
|
||||
|
||||
state = walker.getDestination(grid, state, 0.4);
|
||||
gp << "set label 1 at screen 0.5,0.5 '" << state.startHeading.getRAD() << "'\n";
|
||||
gp << "set label 1 at screen 0.5,0.5 '" << state.heading.direction.getRAD() << "'\n";
|
||||
|
||||
lines.add(K::GnuplotPoint2(state.startPos.x_cm, state.startPos.y_cm));
|
||||
lines.add(K::GnuplotPoint2(state.position.x_cm, state.position.y_cm));
|
||||
|
||||
gp.draw(plot);
|
||||
gp.flush();
|
||||
@@ -147,7 +147,7 @@ TEST(GgridWalk2, LIVE_walkHeading) {
|
||||
for (int i = 0; i < points.size(); ++i) {
|
||||
MyState23452 start(points[i], Heading(0.0));
|
||||
MyState23452 next = walker.getDestination(grid, start, 2.0);
|
||||
points[i] = next.startPos;
|
||||
points[i] = next.position;
|
||||
states.add(K::GnuplotPoint3(points[i].x_cm, points[i].y_cm, points[i].z_cm));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user