|
Buran Motion Planning Framework
|
#include <generator.h>
Public Member Functions | |
| Generator (const std::string &scenePath, const std::vector< std::string > &algorithms, unsigned int gridSize, bool trace) | |
| std::string | buildStat () |
| Json::Value | generateRoutes (unsigned int testCnt) |
| void | generate (const std::string &routePath, const std::string &reportPath, unsigned int testCnt) |
| Json::Value | test (const std::vector< double > &start, const std::vector< double > &end) |
Генератор для сравнивания планировщиков "all_directions" - AStar со смещением ровно вдоль всех осей "one_direction" - AStar со смещением ровно вдоль одной оси "ordered_one_direction" - AStar со смещением ровно вдоль одной оси, смещается в первую очередь в сторону наибольшего отклонения "multirobot" - режим с многими роботами "continuous" - непрерывный планировщик
| Generator::Generator | ( | const std::string & | scenePath, |
| const std::vector< std::string > & | algorithms, | ||
| unsigned int | gridSize, | ||
| bool | trace | ||
| ) |
Конструктор
| scenePath | путь к файлу сцены, |
| algorithms | список названий алгоритмов |
| gridSize | размер решётки планирования |
| trace | флаг, нужно ли выводить лог |
| std::string Generator::buildStat | ( | ) |
построить статистику по найденным путям
| void Generator::generate | ( | const std::string & | routePath, |
| const std::string & | reportPath, | ||
| unsigned int | testCnt | ||
| ) |
генерирование тестов
| routePath | путь к сохранённым маршрутам |
| reportPath | путь к сохранённым отчётам |
| testCnt | количество тестов |
| Json::Value Generator::generateRoutes | ( | unsigned int | testCnt | ) |
сгенерировать маршруты
| testCnt | количество тестов |
| Json::Value Generator::test | ( | const std::vector< double > & | start, |
| const std::vector< double > & | end | ||
| ) |
тест поиска конкретного пути с помощью всех заданных планировщиков
| start | стартовое состояние |
| end | конечное состояние |
1.8.17