経路計画アルゴリズム基底クラス More...
#include <Algorithm.h>

Public Member Functions | |
| Algorithm (PathPlanner *planner) | |
| コンストラクタ | |
| virtual bool | calcPath ()=0 |
| 経路計画を実行する | |
| const std::vector < Configuration > & | getPath () |
| 結果を取得する | |
| void | getProperties (std::vector< std::string > &names, std::vector< std::string > &values) |
| プロパティ一覧を取得する | |
| RoadmapPtr | getRoadmap () |
| ロードマップを取得する | |
| void | ignoreCollisionAtGoal (bool b) |
| ゴールでの干渉を許容する場合はtrue、それ以外の場合はfalseを設定する。初期状態では許容しない。 | |
| void | ignoreCollisionAtStart (bool b) |
| スタートでの干渉を許容する場合はtrue、それ以外の場合はfalseを設定する。初期状態では許容しない。 | |
| bool | preparePlanning () |
| 経路計画の準備をし、初期位置と目標位置が有効なものであることをチェックする | |
| void | setGoalConfiguration (const Configuration &pos) |
| 終了位置を設定する | |
| void | setProperties (const std::map< std::string, std::string > &properties) |
| アルゴリズムに対して各種情報を設定する | |
| void | setProperty (const std::string &key, const std::string &value) |
| void | setStartConfiguration (const Configuration &pos) |
| 初期位置を設定する | |
| void | stopPlanning () |
| 計算を止める | |
| bool | tryDirectConnection () |
| 初期位置と終了位置を直接結べないか検査する | |
| void | verbose (bool b) |
| デバッグ出力の制御 | |
| virtual | ~Algorithm () |
| デストラクタ | |
Protected Attributes | |
| Configuration | goal_ |
| 終了位置 | |
| bool | ignoreCollisionAtGoal_ |
| bool | ignoreCollisionAtStart_ |
| bool | isRunning_ |
| 計算中フラグ | |
| std::vector< Configuration > | path_ |
| 計画された経路 | |
| PathPlanner * | planner_ |
| 計画経路エンジン | |
| std::map< std::string, std::string > | properties_ |
| プロパティ | |
| RoadmapPtr | roadmap_ |
| ロードマップ | |
| Configuration | start_ |
| 開始位置 | |
| bool | verbose_ |
| デバッグ出力の制御 | |
経路計画アルゴリズム基底クラス
経路計画アルゴリズムを実装する際の基底クラス。 新たな経路計画アルゴリズムを実装する場合、このクラスを継承して以下のメソッドを実装する。
Definition at line 44 of file Algorithm.h.
| Algorithm::Algorithm | ( | PathPlanner * | planner | ) |
| Algorithm::~Algorithm | ( | ) | [virtual] |
デストラクタ
Definition at line 18 of file Algorithm.cpp.
| virtual bool PathEngine::Algorithm::calcPath | ( | ) | [pure virtual] |
経路計画を実行する
以下の条件を満たすように実装する。
Implemented in PathEngine::RRT, and PathEngine::PRM.
| const std::vector<Configuration>& PathEngine::Algorithm::getPath | ( | ) | [inline] |
| void Algorithm::getProperties | ( | std::vector< std::string > & | names, |
| std::vector< std::string > & | values | ||
| ) |
プロパティ一覧を取得する
| names | プロパティ名のリスト |
| values | プロパティ値のリスト |
Definition at line 37 of file Algorithm.cpp.
| RoadmapPtr PathEngine::Algorithm::getRoadmap | ( | ) | [inline] |
| void PathEngine::Algorithm::ignoreCollisionAtGoal | ( | bool | b | ) | [inline] |
ゴールでの干渉を許容する場合はtrue、それ以外の場合はfalseを設定する。初期状態では許容しない。
Definition at line 197 of file Algorithm.h.
| void PathEngine::Algorithm::ignoreCollisionAtStart | ( | bool | b | ) | [inline] |
スタートでの干渉を許容する場合はtrue、それ以外の場合はfalseを設定する。初期状態では許容しない。
Definition at line 202 of file Algorithm.h.
| bool Algorithm::preparePlanning | ( | ) |
経路計画の準備をし、初期位置と目標位置が有効なものであることをチェックする
Definition at line 64 of file Algorithm.cpp.
| void PathEngine::Algorithm::setGoalConfiguration | ( | const Configuration & | pos | ) | [inline] |
| void Algorithm::setProperties | ( | const std::map< std::string, std::string > & | properties | ) |
| void Algorithm::setProperty | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Definition at line 22 of file Algorithm.cpp.
| void PathEngine::Algorithm::setStartConfiguration | ( | const Configuration & | pos | ) | [inline] |
| void PathEngine::Algorithm::stopPlanning | ( | ) | [inline] |
計算を止める
Definition at line 168 of file Algorithm.h.
| bool Algorithm::tryDirectConnection | ( | ) |
| void PathEngine::Algorithm::verbose | ( | bool | b | ) | [inline] |
Configuration PathEngine::Algorithm::goal_ [protected] |
bool PathEngine::Algorithm::ignoreCollisionAtGoal_ [protected] |
ゴールでの干渉を許容するか否か
Definition at line 107 of file Algorithm.h.
bool PathEngine::Algorithm::ignoreCollisionAtStart_ [protected] |
スタートでの干渉を許容するか否か
Definition at line 102 of file Algorithm.h.
bool PathEngine::Algorithm::isRunning_ [protected] |
std::vector<Configuration> PathEngine::Algorithm::path_ [protected] |
PathPlanner* PathEngine::Algorithm::planner_ [protected] |
std::map<std::string, std::string> PathEngine::Algorithm::properties_ [protected] |
RoadmapPtr PathEngine::Algorithm::roadmap_ [protected] |
ロードマップ
Definition at line 92 of file Algorithm.h.
Configuration PathEngine::Algorithm::start_ [protected] |
bool PathEngine::Algorithm::verbose_ [protected] |
デバッグ出力の制御
Definition at line 97 of file Algorithm.h.