This commit is contained in:
aozhiwei 2023-05-24 14:50:35 +08:00
parent 328bfac1d0
commit 3f6a45e547

View File

@ -209,6 +209,29 @@ namespace mt
}
}
{
std::vector<std::string> strings;
a8::Split(GetStringParam("robot_placement"), strings, '|');
for (auto& str : strings) {
s_.robot_placement.push_back(a8::XValue(str).GetDouble());
}
if (s_.robot_placement.size() != 9) {
abort();
}
}
{
s_.robot_placement_time = GetIntParam("robot_placement_time");
}
{
std::vector<std::string> strings;
a8::Split(GetStringParam("robot_placement_type"), strings, '|');
for (auto& str : strings) {
s_.robot_placement_type.push_back(a8::XValue(str).GetDouble());
}
if (s_.robot_placement_type.size() != 2) {
abort();
}
}
}
int Param::GetIntParam(const std::string& param_name, int def_val)