GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 全メンバ一覧
designlab::IGraphSearcher クラスabstract

グラフ探索の処理のインターフェース. [詳解]

#include <interface_graph_searcher.h>

designlab::IGraphSearcher の継承関係図
Inheritance graph
[凡例]

公開メンバ関数

 IGraphSearcher ()=default
 
virtual ~IGraphSearcher ()=default
 
virtual std::tuple< GraphSearchResult, GraphSearchEvaluationValue, RobotStateNode > SearchGraphTree (const GaitPatternGraphTree &graph, const RobotOperation &operation, const DividedMapState &divided_map_state, int max_depth) const =0
 グラフを受け取り,その中から最適な次の動作を出力する.
 
virtual std::tuple< GraphSearchResult, GraphSearchEvaluationValue, RobotStateNode > SearchGraphTreeVector (const std::vector< GaitPatternGraphTree > &graph_vector, const RobotOperation &operation, const DividedMapState &divided_map_state, int max_depth) const =0
 

詳解

グラフ探索の処理のインターフェース.

interface_graph_searcher.h の 27 行目に定義があります。

構築子と解体子

◆ IGraphSearcher()

designlab::IGraphSearcher::IGraphSearcher ( )
default

◆ ~IGraphSearcher()

virtual designlab::IGraphSearcher::~IGraphSearcher ( )
virtualdefault

継承をするクラスのデストラクタは virtual にしておく. 参考 https://www.yunabe.jp/docs/cpp_virtual_destructor.html (アクセス日: 2023/12/27)

関数詳解

◆ SearchGraphTree()

virtual std::tuple< GraphSearchResult, GraphSearchEvaluationValue, RobotStateNode > designlab::IGraphSearcher::SearchGraphTree ( const GaitPatternGraphTree &  graph,
const RobotOperation &  operation,
const DividedMapState &  divided_map_state,
int  max_depth 
) const
pure virtual

グラフを受け取り,その中から最適な次の動作を出力する.

引数
[in]graphグラフ木.
[in]operation目標姿勢,方向.
[in]divided_map_state分割されたマップの状態.
[in]max_depth探索する最大深さ.
戻り値
グラフ探索の結果,評価値,選択されたノードのインデックスのタプル.

designlab::GraphSearcherSpotTurn, designlab::GraphSearcherStraightMove, designlab::GraphSearcherTurnで実装されています。

◆ SearchGraphTreeVector()

virtual std::tuple< GraphSearchResult, GraphSearchEvaluationValue, RobotStateNode > designlab::IGraphSearcher::SearchGraphTreeVector ( const std::vector< GaitPatternGraphTree > &  graph_vector,
const RobotOperation &  operation,
const DividedMapState &  divided_map_state,
int  max_depth 
) const
pure virtual

このクラス詳解は次のファイルから抽出されました: