GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
interface_node_creator.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_INTERFACE_NODE_CREATOR_H_
9#define DESIGNLAB_INTERFACE_NODE_CREATOR_H_
10
11#include <vector>
12
13#include "robot_state_node.h"
14
15namespace designlab {
16
20 public:
22 INodeCreator() = default;
23 virtual ~INodeCreator() = default;
24
29 virtual void Create(const RobotStateNode& current_node,
30 int current_node_index,
31 std::vector<RobotStateNode>* output_graph) const = 0;
32};
33
34} // namespace designlab
35
36#endif // DESIGNLAB_INTERFACE_NODE_CREATOR_H_
ノード生成処理のインターフェース.
INodeCreator()=default
コンストラクタでは次動作を設定する.またマップのポインタを受け取る.
virtual ~INodeCreator()=default
virtual void Create(const RobotStateNode &current_node, int current_node_index, std::vector< RobotStateNode > *output_graph) const =0
現在のノードから次のノード群を生成する.
グラフ構造のためのノード(頂点).