GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
simulation_map_parameter_validator.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_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
9#define DESIGNLAB_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
10
11#include <string>
12#include <tuple>
13
16
17namespace designlab {
18
22 : public ITomlDataValidator<SimulationMapParameter> {
23 public:
24 std::tuple<bool, std::string> Validate(
25 const SimulationMapParameter& toml_data) const override;
26
27 private:
28 const std::string kErrMesPerforatedRange{
29 "確率は0 ~ 100 %の範囲にする必要があります."};
30 const std::string kErrMesRoughnessMaxMin{
31 "粗さの最大値は最小値以上にする必要があります."};
32 const std::string kErrMesStripeGtZero{
33 "ストライプの数は0より大きい必要があります."};
34 const std::string kErrMesStepLengthGtZero{
35 "階段の奥行は0より大きい必要があります."};
36};
37
38} // namespace designlab
39
40#endif // DESIGNLAB_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
TOMLファイルのデータの検証を行う処理のインターフェース.
std::tuple< bool, std::string > Validate(const SimulationMapParameter &toml_data) const override
TOMLファイルのデータの検証を行う.
マップ生成時のモードとオプションを指定する構造体.