MoveXMeters.cpp
Go to the documentation of this file.
1 #include "MoveXMeters.h"
2 
4 {
5 
6  MoveXMeters::MoveXMeters(const Services& srv) : Base(srv, DefaultSkillDescription())
7  {
8  }
9 
10  Eigen::Isometry3f
11  MoveXMeters::relativeTarget(const Base::SpecializedMainInput& in)
12  {
13  Eigen::Vector3f scaledVector = in.parameters.distanceMillimeters * Eigen::Vector3f::UnitY();
14  return Eigen::Isometry3f(Eigen::Translation3f(in.parameters.direction * scaledVector));
15  }
16 
17 } // namespace armarx::navigation::skills
armarx::navigation::skills::NavigateRelativeSkill< arondto::MoveXMetersParams >
armarx::navigation::skills::MoveXMeters::MoveXMeters
MoveXMeters(const Services &srv)
Definition: MoveXMeters.cpp:6
MoveXMeters.h
armarx::navigation::skills
Definition: constants.cpp:25