new test cases
worked on all walkers new helper methods new distributions some bugfixes
This commit is contained in:
@@ -97,7 +97,8 @@ TEST(Walk, DISABLED_plot) {
|
||||
GridWalkLightAtTheEndOfTheTunnel<GP> walk(g, tmp, *end);
|
||||
|
||||
std::minstd_rand gen;
|
||||
std::normal_distribution<float> dist(0.3, 0.3);
|
||||
std::normal_distribution<float> dWalk(0.3, 0.3);
|
||||
std::normal_distribution<float> dTurn(0.3, 0.3);
|
||||
|
||||
K::GnuplotSplotElementPoints pStates; pStates.setColorHex("#880000");
|
||||
|
||||
@@ -129,7 +130,7 @@ TEST(Walk, DISABLED_plot) {
|
||||
for (int i = 0; i < 5000; ++i) {
|
||||
pStates.clear();
|
||||
for (GridWalkState<GP>& state : states) {
|
||||
state = walk.getDestination(g, state, std::abs(dist(gen)));
|
||||
state = walk.getDestination(g, state, std::abs(dWalk(gen)), dTurn(gen));
|
||||
pStates.add(K::GnuplotPoint3(state.node->x_cm, state.node->y_cm, state.node->z_cm+10));
|
||||
}
|
||||
p.gp.draw(p.splot);
|
||||
|
||||
Reference in New Issue
Block a user