Buran Motion Planning Framework
optimize_path.h
1 #pragma once
2 
3 
4 #include <vector>
5 #include <memory>
6 #include "base/path_finder.h"
7 
8 namespace bmpf {
12  class PathOptimizer {
13  public:
19  explicit PathOptimizer(std::shared_ptr<bmpf::PathFinder> &pf, const std::string &optimizeMethod);
20 
26  virtual std::vector<std::vector<double>> optimizePath(std::vector<std::vector<double>> path) = 0;
27 
32  std::shared_ptr<bmpf::PathFinder> getPathFinder() { return _pf; }
33 
38  std::string getPathOptimizeMethod() { return _optimizeMethod; }
39 
40  protected:
41 
45  std::shared_ptr<bmpf::PathFinder> _pf;
49  std::string _optimizeMethod;
50 
51  };
52 
53 }
bmpf::PathOptimizer::optimizePath
virtual std::vector< std::vector< double > > optimizePath(std::vector< std::vector< double >> path)=0
bmpf::PathOptimizer::getPathOptimizeMethod
std::string getPathOptimizeMethod()
Definition: optimize_path.h:38
bmpf::PathOptimizer::PathOptimizer
PathOptimizer(std::shared_ptr< bmpf::PathFinder > &pf, const std::string &optimizeMethod)
Definition: optimize_path.cpp:10
bmpf::PathOptimizer
Definition: optimize_path.h:12
bmpf::PathOptimizer::_pf
std::shared_ptr< bmpf::PathFinder > _pf
Definition: optimize_path.h:45
bmpf::PathOptimizer::_optimizeMethod
std::string _optimizeMethod
Definition: optimize_path.h:49
bmpf::PathOptimizer::getPathFinder
std::shared_ptr< bmpf::PathFinder > getPathFinder()
Definition: optimize_path.h:32