}
RRTNode *nn4(
- std::vector<RRTNode *> (&nodes)[IYSIZE],
+ std::array<std::vector<RRTNode *>, IYSIZE> &nodes,
RRTNode *node,
float (*cost)(RRTNode *, RRTNode *))
{
#ifndef NEARESTNEIGHBOUR_H
#define NEARESTNEIGHBOUR_H
+#include <array>
#include "aux.h"
#include "rrtbase.h"
#include "rrtnode.h"
RRTNode *node,
float (*cost)(RRTNode *, RRTNode *));
RRTNode *nn4(
- std::vector<RRTNode *> (&nodes)[IYSIZE],
+ std::array<std::vector<RRTNode *>, IYSIZE> &nodes,
RRTNode *node,
float (*cost)(RRTNode *, RRTNode *));
RRTNode *nn5(
#ifndef RRTBASE_H
#define RRTBASE_H
+#include <array>
#include <chrono>
#include <cmath>
#include <pthread.h>
std::queue<RRTNode *> &firsts();
PolygonObstacle &frame();
std::vector<RRTNode *> &samples();
- std::vector<RRTNode *> iy_[IYSIZE];
+ std::array<std::vector<RRTNode *>, IYSIZE> iy_;
Cell ixy_[IXSIZE][IYSIZE];
std::vector<CircleObstacle> *co();
std::vector<SegmentObstacle> *so();