GaitGeneration by Graph Search
全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 マクロ定義 ページ Concepts
gait_pattern_generator_basic.h
[詳解]
1
3
4// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5// Released under the MIT license
6// https://opensource.org/licenses/mit-license.php
7
8#ifndef DESIGNLAB_GAIT_PATTERN_GENERATOR_BASIC_H_
9#define DESIGNLAB_GAIT_PATTERN_GENERATOR_BASIC_H_
10
11#include <memory>
12#include <vector>
13
15#include "graph_tree_creator.h"
19#include "robot_state_node.h"
20
21
22namespace designlab
23{
24
28{
29public:
36 std::unique_ptr<GraphTreeCreator>&& graph_tree_creator_ptr,
37 std::unique_ptr<IGraphSearcher>&& graph_searcher_ptr,
38 int max_depth,
39 int max_node_num);
40
42
43
45 const RobotStateNode& current_node,
46 const MapState& map_ref,
47 const RobotOperation& operation,
48 RobotStateNode* output_node) override;
49
50private:
52 const std::unique_ptr<GraphTreeCreator> graph_tree_creator_ptr_;
53
55 const std::unique_ptr<const IGraphSearcher> graph_searcher_ptr_;
56
57 GaitPatternGraphTree graph_tree_;
58
59 const int max_depth_;
60};
61
62} // namespace designlab
63
64
65#endif // DESIGNLAB_GAIT_PATTERN_GENERATOR_BASIC_H_
普通にグラフ探索を行い,歩容パターン生成を行うクラス.
GraphSearchResult GetNextNodeByGraphSearch(const RobotStateNode &current_node, const MapState &map_ref, const RobotOperation &operation, RobotStateNode *output_node) override
グラフ探索を行い,次の動作として最適なノードを返す.
RobotStateNode 構造体をノードとする木構造のグラフのクラス.
グラフ探索による歩容パターン生成を行うクラスのインターフェース.
マップを表すクラス.
Definition map_state.h:32
グラフ探索の結果を表す構造体.
探索において目標となる座標や角度,評価する値についてまとめた構造体.
グラフ構造のためのノード(頂点).旧名 LNODE