Buran Motion Planning Framework
generator.h
1 #pragma once
2 
3 #include <base/path_finder.h>
4 #include <string>
5 #include <vector>
6 #include <chrono>
7 #include <fstream>
8 #include <json/json.h>
9 #include <memory>
10 #include <climits>
11 #include <utility>
12 #include <log.h>
13 #include <base/path_finder.h>
14 #include <urdf_robot.h>
15 #include <solid_collider.h>
16 #include "one_direction_path_finder.h"
17 #include "one_direction_ordered_path_finder.h"
18 #include "state.h"
19 #include "all_directions_path_finder.h"
20 #include "base/path_finder.h"
21 
31 class Generator {
32 public:
40  Generator(
41  const std::string &scenePath, const std::vector<std::string> &algorithms,
42  unsigned int gridSize, bool trace
43  );
44 
49  std::string buildStat();
50 
56  Json::Value generateRoutes(unsigned int testCnt);
57 
64  void generate(const std::string &routePath, const std::string &reportPath, unsigned int testCnt);
65 
72  Json::Value test(const std::vector<double> &start, const std::vector<double> &end);
73 
74 
75 private:
79  std::vector<std::shared_ptr<bmpf::PathFinder>> _pathFinders;
83  std::vector<std::vector<double>> _startPoints;
87  std::vector<std::vector<double>> _endPoints;
91  std::vector<std::vector<double>> _secondsList;
95  std::vector<std::vector<bool>> _isValid;
99  std::vector<std::vector<int>> _errorCodes;
100 };
Generator::generateRoutes
Json::Value generateRoutes(unsigned int testCnt)
Definition: generator.cpp:106
Generator::test
Json::Value test(const std::vector< double > &start, const std::vector< double > &end)
Definition: generator.cpp:168
Generator::Generator
Generator(const std::string &scenePath, const std::vector< std::string > &algorithms, unsigned int gridSize, bool trace)
Definition: generator.cpp:13
Generator::buildStat
std::string buildStat()
Definition: generator.cpp:51
Generator
Definition: generator.h:31
Generator::generate
void generate(const std::string &routePath, const std::string &reportPath, unsigned int testCnt)
Definition: generator.cpp:146