#include <GL/glu.h>
#include <SDL2/SDL.h>
+#define USE_GL
#define USE_INTERRUPT
bool run_planner = true;
int main()
{
+#ifdef USE_GL
init();
+#endif
Json::Value jvi; // JSON input
Json::Value jvo; // JSON output
while (run_planner) {
p.next();
p.tend();
+#ifdef USE_GL
p.glplot();
+#endif
}
if (!p.goal_found()) {
#if NNVERSION > 1
// print output
std::cout << jvo << std::endl;
+#ifdef USE_GL
SDL_DestroyWindow(gw);
SDL_Quit();
+#endif
// free mem
for (auto o: so) {