add_executable(test10 src/test10.cc)
add_executable(test11 src/test11.cc)
add_executable(test12 src/test12.cc)
+add_executable(test13 src/test13.cc)
+add_executable(test14 src/test14.cc)
## Test files
There is a list of test files and what they include:
+- `test14.cc`: cute, grid, RS-heur, dijkstra (`ce9`).
+- `test13.cc`: cute, grid, RS-RS, dijkstra (`ce8`).
- `test12.cc`: cute collision, grid structure, RS for both -- build and search
cost (`ce6`).
- `test11.cc`: cute collision, grid structure, RS for build, Matej's heuristics
--- /dev/null
+#include <chrono>
+#include <iostream>
+#include <jsoncpp/json/json.h>
+
+#include "rrtce.h"
+#define EPP RRTCE8
+
+std::chrono::high_resolution_clock::time_point TSTART_;
+std::chrono::high_resolution_clock::time_point TEND_;
+inline void TSTART() { TSTART_ = std::chrono::high_resolution_clock::now(); }
+inline void TEND() { TEND_ = std::chrono::high_resolution_clock::now(); }
+inline double TDIFF()
+{
+ std::chrono::duration<double> DT_;
+ DT_ = std::chrono::duration_cast<std::chrono::duration<double>>(
+ TEND_ - TSTART_
+ );
+ return DT_.count();
+}
+inline void TPRINT(const char *what)
+{
+ std::cerr << what << ": " << TDIFF() << std::endl;
+}
+
+int main()
+{
+ Json::Value jvi; // JSON input
+ std::cin >> jvi;
+
+ EPP epp;
+ epp.json(jvi);
+ epp.init();
+
+ while (epp.next()) {}
+
+ std::cout << epp.json() << std::endl;
+ return 0;
+}
--- /dev/null
+#include <chrono>
+#include <iostream>
+#include <jsoncpp/json/json.h>
+
+#include "rrtce.h"
+#define EPP RRTCE9
+
+std::chrono::high_resolution_clock::time_point TSTART_;
+std::chrono::high_resolution_clock::time_point TEND_;
+inline void TSTART() { TSTART_ = std::chrono::high_resolution_clock::now(); }
+inline void TEND() { TEND_ = std::chrono::high_resolution_clock::now(); }
+inline double TDIFF()
+{
+ std::chrono::duration<double> DT_;
+ DT_ = std::chrono::duration_cast<std::chrono::duration<double>>(
+ TEND_ - TSTART_
+ );
+ return DT_.count();
+}
+inline void TPRINT(const char *what)
+{
+ std::cerr << what << ": " << TDIFF() << std::endl;
+}
+
+int main()
+{
+ Json::Value jvi; // JSON input
+ std::cin >> jvi;
+
+ EPP epp;
+ epp.json(jvi);
+ epp.init();
+
+ while (epp.next()) {}
+
+ std::cout << epp.json() << std::endl;
+ return 0;
+}