移動アルゴリズム実装用抽象クラス More...
#include <Mobility.h>

Public Member Functions | |
| virtual double | distance (const Configuration &from, const Configuration &to) const =0 |
| virtual bool | getPath (Configuration &from, Configuration &to, std::vector< Configuration > &o_path) const |
| 開始位置から目標地点への移動を補間して生成された姿勢列を取得する。 More... | |
| virtual Configuration | interpolate (const Configuration &from, const Configuration &to, double ratio) const =0 |
| bool | isReachable (Configuration &from, Configuration &to, bool checkCollision=true) const |
| fromからtoへ干渉なしに移動可能であるかどうか More... | |
| virtual bool | isReversible () const =0 |
| この移動アルゴリズムでA→Bへ移動可能である時に、B→Aが同じ経路で移動可能であるかどうか More... | |
| Mobility (PathPlanner *planner) | |
| コンストラクタ More... | |
| virtual | ~Mobility () |
| デストラクタ More... | |
Static Public Member Functions | |
| static void | interpolationDistance (double d) |
| 補間時の隣接する2点間の最大距離を設定する More... | |
| static double | interpolationDistance () |
| 補間時の隣接する2点間の最大距離を取得する More... | |
Protected Attributes | |
| PathPlanner * | planner_ |
| 計画経路エンジン More... | |
Static Private Attributes | |
| static double | interpolationDistance_ = 0.1 |
| 補間時の隣接する2点間の最大距離 More... | |
移動アルゴリズム実装用抽象クラス
ロボットの移動アルゴリズムを実装するための抽象クラス。 各々のロボットの移動アルゴリズムを実装する場合、このクラスを継承し、以下のメンバ関数を実装する
Definition at line 20 of file Mobility.h.
|
inline |
|
inlinevirtual |
デストラクタ
Definition at line 39 of file Mobility.h.
|
pure virtual |
|
virtual |
開始位置から目標地点への移動を補間して生成された姿勢列を取得する。
隣接した二つの姿勢間の距離はinterpolationDistance()で得られる距離以下になるように補間を行う
| from | 開始位置 |
| to | 目標位置 |
Definition at line 26 of file Mobility.cpp.
|
pure virtual |
|
inlinestatic |
|
inlinestatic |
| bool Mobility::isReachable | ( | Configuration & | from, |
| Configuration & | to, | ||
| bool | checkCollision = true |
||
| ) | const |
fromからtoへ干渉なしに移動可能であるかどうか
Definition at line 8 of file Mobility.cpp.
|
pure virtual |
この移動アルゴリズムでA→Bへ移動可能である時に、B→Aが同じ経路で移動可能であるかどうか
Implemented in PathEngine::TGT, and PathEngine::OmniWheel.
|
staticprivate |
補間時の隣接する2点間の最大距離
Definition at line 95 of file Mobility.h.
|
protected |