MoveXMeters.cpp
Go to the documentation of this file.
1 #include "MoveXMeters.h"
2 
4 
6 {
7 
8  MoveXMeters::MoveXMeters(const Services& srv) : Base(srv, DefaultSkillDescription())
9  {
10  }
11 
12  Eigen::Isometry3f
13  MoveXMeters::relativeTarget(const Base::SpecializedMainInput& in)
14  {
15  Eigen::Vector3f scaledVector = in.parameters.distanceMillimeters * Eigen::Vector3f::UnitY();
16  return Eigen::Isometry3f(Eigen::Translation3f(in.parameters.direction * scaledVector));
17  }
18 
21  {
22  ParamType defaultParams;
23  defaultParams.distanceMillimeters = 0;
24  defaultParams.direction = Eigen::Quaternion<float, 0>::Identity();
25 
28  .description = "Relative movement in specified direction",
29  .rootProfileDefaults = defaultParams.toAron(),
31  .parametersType = ParamType::ToAronType()};
32  }
33 } // namespace armarx::navigation::skills
constants.h
armarx::skills::SkillID::skillName
std::string skillName
Definition: SkillID.h:41
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
armarx::navigation::skills::NavigateRelativeSkill< arondto::MoveXMetersParams >
GfxTL::Identity
void Identity(MatrixXX< N, N, T > *a)
Definition: MatrixXX.h:570
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:19
armarx::core::time::Duration::Minutes
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
Definition: Duration.cpp:96
armarx::navigation::skills::MoveXMeters::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition: MoveXMeters.cpp:20
armarx::navigation::skills::MoveXMeters::MoveXMeters
MoveXMeters(const Services &srv)
Definition: MoveXMeters.cpp:8
armarx::navigation::skills::constants::skill_names::MoveXMeters
const std::string MoveXMeters
Definition: constants.h:37
MoveXMeters.h
armarx::navigation::skills
Definition: constants.cpp:25