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 
8 {
9 
10  RotateXDegrees::RotateXDegrees(const Services& srv) : Base(srv, DefaultSkillDescription())
11  {
12  }
13 
14  Eigen::Isometry3f
15  RotateXDegrees::relativeTarget(const Base::SpecializedMainInput& in)
16  {
17  const float rotation = simox::math::deg_to_rad(in.parameters.rotationDegrees);
18  return Eigen::Isometry3f(Eigen::AngleAxisf(rotation, Eigen::Vector3f::UnitZ()));
19  }
20 
23  {
24  ParamType defaultParams;
25  defaultParams.rotationDegrees = 0;
26 
29  .description = "Rotate around the Z-axis by a specified degree value",
30  .rootProfileDefaults = defaultParams.toAron(),
32  .parametersType = ParamType::ToAronType()};
33  }
34 } // namespace armarx::navigation::skills
constants.h
armarx::skills::SkillID::skillName
std::string skillName
Definition: SkillID.h:41
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
RotateXDegrees.h
armarx::navigation::skills::NavigateRelativeSkill< arondto::RotateXDegreesParams >
armarx::navigation::skills::RotateXDegrees::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition: RotateXDegrees.cpp:22
armarx::navigation::skills::constants::skill_names::RotateXDegrees
const std::string RotateXDegrees
Definition: constants.h:43
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:19
armarx::navigation::skills::RotateXDegrees::RotateXDegrees
RotateXDegrees(const Services &srv)
Definition: RotateXDegrees.cpp:10
armarx::core::time::Duration::Minutes
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
Definition: Duration.cpp:96
armarx::navigation::skills
Definition: constants.cpp:25