29 using namespace PlatformGroup;
35 static std::map<std::string, Vector3> StringToDirection = {{
"forward",
Vector3(0.0, 1.0, 0.0)},
36 {
"left",
Vector3(-1.0, 0.0, 0)},
37 {
"right",
Vector3(1.0, 0.0, 0)},
38 {
"back",
Vector3(0.0, -1.0, 0)}};
47 auto dirIter = StringToDirection.find(in.getDirection());
48 if (dirIter != StringToDirection.end())
51 local.setRelativePose(
52 Eigen::Vector3f(dir.
toEigen() * in.getMillimeterPerStep() * in.getStepCount()));
58 <<
" is not a valid direction. Valid directions are: foreward, left, right, back";