GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
map_creator_for_simulation.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_MAP_CREATOR_FOR_SIMULATION_H_
9#define DESIGNLAB_MAP_CREATOR_FOR_SIMULATION_H_
10
11#include <vector>
12
13#include "math_vector3.h"
15#include "map_state.h"
17
18
19namespace designlab
20{
21
27{
28public:
32
33
34 MapState InitMap() override;
35
36 void UpdateMap(MapState* current_map) override;
37
38
39private:
41 void CreateFlatMap(std::vector<Vector3>* map) const;
42
44 void CreateVerticalStripeMap(std::vector<Vector3>* map) const;
45
47 void CreateHorizontalStripeMap(std::vector<Vector3>* map) const;
48
50 void CreateDiagonalStripeMap(std::vector<Vector3>* map) const;
51
53 void CreateMeshMap(std::vector<Vector3>* map) const;
54
56 void CreateLatticePointMap(std::vector<Vector3>* map) const;
57
59 void CreateCircleMap(std::vector<Vector3>* map) const;
60
62 void CreateDonutMap(std::vector<Vector3>* map) const;
63
65 void ChangeMapToPerforated(std::vector<Vector3>* map) const;
66
68 void ChangeMapToStep(std::vector<Vector3>* map) const;
69
71 void ChangeMapToSlope(std::vector<Vector3>* map) const;
72
74 void ChangeMapToTilt(std::vector<Vector3>* map) const;
75
77 void ChangeMapToRough(std::vector<Vector3>* map) const;
78
80 void ChangeMapToRadial(std::vector<Vector3>* map) const;
81
82
83 const SimulationMapParameter messenger_;
84};
85
86} // namespace designlab
87
88
89#endif // DESIGNLAB_MAP_CREATOR_FOR_SIMULATION_H_
マップ生成クラスのインターフェース.
シミュレーション用のマップを生成するクラス.
MapState InitMap() override
マップの初期化を行う.
void UpdateMap(MapState *current_map) override
マップの更新を行う.
マップを表すクラス.
Definition map_state.h:32
マップ生成時のモードとオプションを指定する構造体.