]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/blobdiff - src/test22.cc
Add method to set dimensions of more cars
[hubacji1/iamcar2.git] / src / test22.cc
index 7f521466cd67b20ec29205a58829c1192becc486..edd985f214084152acdd43b1122a2a66f25fa58b 100644 (file)
@@ -1,6 +1,6 @@
 #include <chrono>
 #include <iostream>
-#include <jsoncpp/json/json.h>
+#include <json/json.h>
 
 #include "psp.h"
 #include "rrtce.h"
@@ -23,13 +23,14 @@ inline void TPRINT(const char *what)
         std::cerr << what << ": " << TDIFF() << std::endl;
 }
 
+PSPlanner psp;
+EPP epp;
 int main()
 {
         Json::Value jvi; // JSON input
         Json::Value jvo; // JSON output
         std::cin >> jvi;
 
-        PSPlanner psp;
         psp.ps().border(
                 jvi["slot"][0][0][0].asDouble(),
                 jvi["slot"][0][0][1].asDouble(),
@@ -60,7 +61,6 @@ int main()
         jvi["goals"][icnt][1] = psp.cc().y();
         jvi["goals"][icnt][2] = psp.cc().h();
 
-        EPP epp;
         epp.json(jvi);
         epp.init();
         epp.sample_dist_type(1);