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
15
16 Eigen::Isometry3f
17 RotateXDegrees::relativeTarget(const Base::SpecializedMainInput& in)
18 {
19 const float rotation = simox::math::deg_to_rad(in.parameters.rotationDegrees);
20 return Eigen::Isometry3f(Eigen::AngleAxisf(rotation, Eigen::Vector3f::UnitZ()));
21 }
22
25 {
26 ParamType defaultParams;
27 defaultParams.rotationDegrees = 0;
28 defaultParams.navigatingSkillParams = NavigatingSkillHelper::DefaultSkillDescription();
29
31 .skillId = {.skillName = constants::skill_names::RotateXDegrees},
32 .description = "Rotate around the Z-axis by a specified degree value",
33 .rootProfileDefaults = defaultParams.toAron(),
35 .parametersType = ParamType::ToAronType()};
36 }
37} // namespace armarx::navigation::skills
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
Definition Duration.cpp:96
static arondto::NavigatingSkillParams DefaultSkillDescription()
static armarx::skills::SkillDescription DefaultSkillDescription()
RotateXDegrees(const NavigatingSkillHelper::Properties &properties, const NavigatingSkillHelper::Services &srv)
NavigateRelativeSkill< arondto::RotateXDegreesParams > Base