1
This commit is contained in:
parent
328bfac1d0
commit
3f6a45e547
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user