diff options
author | Jean Fabre-Monplaisir <jean-isaac-fm@live.fr> | 2015-02-01 19:06:59 +0100 |
---|---|---|
committer | Jean Fabre-Monplaisir <jean-isaac-fm@live.fr> | 2015-02-01 19:06:59 +0100 |
commit | 93cd8ba7c9ea2ee22bfcb828cd5190c4662a05b0 (patch) | |
tree | 8bdaae15ed9302409756a10faec053db5aea122a /problem.hpp | |
parent | 2cb65f6726bbdecdc57b1544fe11fa6c586783dc (diff) | |
parent | 3b8497a4d6c71ac542a2992a645c00bf99d45390 (diff) | |
download | Robotique-Projet-93cd8ba7c9ea2ee22bfcb828cd5190c4662a05b0.tar.gz Robotique-Projet-93cd8ba7c9ea2ee22bfcb828cd5190c4662a05b0.zip |
Merge branch 'master' of github.com:Alexis211/Robotique
Conflicts:
problem.cpp
Diffstat (limited to 'problem.hpp')
-rw-r--r-- | problem.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/problem.hpp b/problem.hpp index 3fc3054..f268d55 100644 --- a/problem.hpp +++ b/problem.hpp @@ -7,6 +7,7 @@ struct obstacle { circle c; + obstacle(circle cc) : c(cc) {} }; struct hilare_a_param { @@ -51,6 +52,7 @@ struct hilare_a_mvt { // deux étapes dans le mouvement : // - bien orienter la voiture (c'est l'angle dtheta_before) // - avancer/reculer sur le cercle (c'est l'angle domega) + hilare_a_mvt() : center(0, 0) {} hilare_a from, to; @@ -88,14 +90,14 @@ struct solver_internal { // intermediate data for the solver // represents a graph of randomly chosen positions and simple solutions between them std::vector<hilare_a> pts; - std::map<int, std::map<int, hilare_a_mvt> > paths; + std::map<int, std::map<int, solution> > paths; }; class solver { // mutex-protected asynchronous structure private: - //todo + solver_internal _d; public: solver(); @@ -103,6 +105,8 @@ class solver { void start(const problem &p); bool finished(); solution get_solution(); + + solver_internal peek_internal(); }; |