along with I am car. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <algorithm>
#include <iostream>
#include <jsoncpp/json/json.h>
#include <signal.h>
#define USE_GL
#define USE_INTERRUPT
#define USE_TMAX
+#define USE_TMAX_1ST_CUSPS
bool run_planner = true;
nn = p.nn(p.nodes(), p.goal(), p.cost);
#endif
tr = p.findt(nn);
+#ifdef USE_TMAX_1ST_CUSPS
+ while (p.opt_path()) {}
+ tr = p.findt(nn);
+ std::reverse(tr.begin(), tr.end());
+ for (auto n: tr) {
+ if (n->s() != 0 &&
+ n->parent() &&
+ n->parent()->s() != 0 &&
+ sgn(n->s()) != sgn(n->parent()->s())) {
+ nn = n;
+ break;
+ }
+ }
+ tr = p.findt(nn);
+#endif
} else {
nn = p.goal();
tr = p.findt();