GaitGeneration by Graph Search
全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 マクロ定義 ページ Concepts
map_file_importer.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_FILE_IMPORTER_H_
9#define DESIGNLAB_MAP_FILE_IMPORTER_H_
10
11#include <optional>
12#include <string>
13
14#include "map_state.h"
15
16
17namespace designlab
18{
19
23class MapFileImporter final
24{
25public:
30 [[nodiscard("読み込んだデータを破棄しています.")]]
31 std::optional<MapState> ImportMap(const std::string& file_path) const noexcept;
32};
33
34} // namespace designlab
35
36
37#endif // DESIGNLAB_MAP_FILE_IMPORTER_H_
マップを csv に出力したものを読み込むクラス. マップには脚接地可能点が羅列されているので,1行ずつ読み込み,それぞれマップに追加する.
std::optional< MapState > ImportMap(const std::string &file_path) const noexcept
マップを csv に出力したものを読み込む.