GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
system_main_graph_viewer.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_SYSTEM_MAIN_GRAPH_VIEWER_H_
9#define DESIGNLAB_SYSTEM_MAIN_GRAPH_VIEWER_H_
10
11#include <memory>
12#include <vector>
13
15#include "graphic_data_broker.h"
16#include "graph_tree_creator.h"
19#include "map_state.h"
20#include "stopwatch.h"
21
22
23namespace designlab
24{
25
33{
34public:
36 std::unique_ptr<GraphTreeCreator>&& graph_tree_creator,
37 std::unique_ptr<IMapCreator>&& map_creator,
38 const std::shared_ptr<GraphicDataBroker>& broker_ptr,
39 const std::shared_ptr<const ApplicationSettingRecord>& setting_ptr);
40
41 void Main() override;
42
43private:
47 void CreateGraph(const RobotStateNode parent, std::vector<RobotStateNode>* graph);
48
49
53 void OutputGraphStatus(const std::vector<RobotStateNode>& graph) const;
54
55
56
61 RobotStateNode SelectNodeByInput(const std::vector<RobotStateNode>& graph) const;
62
63
64 const std::unique_ptr<GraphTreeCreator> graph_tree_creator_ptr_;
65
66 const std::unique_ptr<IMapCreator> map_creator_ptr_;
67
68 const std::shared_ptr<GraphicDataBroker> broker_ptr_;
69
70 const std::shared_ptr<const ApplicationSettingRecord> setting_ptr_;
71
72 MapState map_state_;
73
74 Stopwatch stopwatch_;
75};
76
77} // namespace designlab
78
79
80#endif // DESIGNLAB_SYSTEM_MAIN_GRAPH_VIEWER_H_
プログラムの面の処理のインターフェース.
マップを表すクラス.
Definition map_state.h:32
時間計測用のクラス.
Definition stopwatch.h:31
グラフを表示するシステムのメインクラス.
void Main() override
主要な処理を行う関数.
グラフ構造のためのノード(頂点).旧名 LNODE