RotateXDegrees.cpp
Go to the documentation of this file.
1 #include "RotateXDegrees.h"
2 
3 #include <SimoxUtility/math/convert/deg_to_rad.h>
4 
6 {
7 
8  RotateXDegrees::RotateXDegrees(const Services& srv) : Base(srv, DefaultSkillDescription())
9  {
10  }
11 
12  Eigen::Isometry3f
13  RotateXDegrees::relativeTarget(const Base::SpecializedMainInput& in)
14  {
15  const float rotation = simox::math::deg_to_rad(in.parameters.rotationDegrees);
16  return Eigen::Isometry3f(Eigen::AngleAxisf(rotation, Eigen::Vector3f::UnitZ()));
17  }
18 
19 } // namespace armarx::navigation::skills
RotateXDegrees.h
armarx::navigation::skills::NavigateRelativeSkill< arondto::RotateXDegreesParams >
armarx::navigation::skills::RotateXDegrees::RotateXDegrees
RotateXDegrees(const Services &srv)
Definition: RotateXDegrees.cpp:8
armarx::navigation::skills
Definition: constants.cpp:25