ExecuteTrajectory.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
7 
9 #include <armarx/control/skills/aron/ExecuteTrajectoryParams.aron.generated.h>
11 
13 {
14 
15  /**
16  * @class MoveJoints
17  * @brief MoveJoints-skill to move joints to specified target values using the KinematicUnit
18  *
19  * Sets joint values with the KinematicUnit and waits until target values are reached. Can
20  * simulate trajectory when in simulation (otherwise trajectories from joint value updates through
21  * the KinematicUnit are not simulated).
22  */
24  public ::armarx::skills::SimpleSpecializedSkill<arondto::ExecuteTrajectoryParams>
25  {
26 
27  public:
28  struct Services
29  {
31  //armarx::manipulation::Robot& robot;
32  /*::armarx::KinematicUnitInterfacePrx kinematicUnit;
33  ::armarx::armem::robot_state::VirtualRobotReader virtualRobotReader;
34  std::string robotName;*/
35  };
36 
37  static ::armarx::skills::SkillDescription
39  {
40  return ::armarx::skills::SkillDescription{
42  .description = "Executes MP with certain configuration additionally considering "
43  "hand shape viapoints.",
44  .timeout = ::armarx::Duration::Minutes(1),
45  .parametersType = ParamType::ToAronType()};
46  }
47 
48  ExecuteTrajectory(const Services&);
49 
50 
51  private:
52  using Base::main;
53  using Base::exit;
54 
55  ::armarx::skills::Skill::MainResult main(const SpecializedMainInput& in) override;
56  ::armarx::skills::Skill::ExitResult exit(const SpecializedExitInput& in) override;
57 
58 
59  private:
60  Services srv_;
61  };
62 
63 } // namespace armarx::control::skills::skills
armarx::control::skills::skills::ExecuteTrajectory::GetSkillDescription
::armarx::skills::SkillDescription GetSkillDescription()
Definition: ExecuteTrajectory.h:38
armarx::skills::SkillID::skillName
std::string skillName
Definition: SkillID.h:60
armarx::control::skills::skills::ExecuteTrajectory
Definition: ExecuteTrajectory.h:23
armarx::control::skills::skills::ExecuteTrajectory::ExecuteTrajectory
ExecuteTrajectory(const Services &)
Definition: ExecuteTrajectory.cpp:21
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill< arondto::ExecuteTrajectoryParams >::exit
Skill::ExitResult exit() final
Definition: SimpleSpecializedSkill.h:81
constants.h
armarx::control::client::ComponentPlugin
Definition: ComponentPlugin.h:69
armarx::control::skills::skills::ExecuteTrajectory::Services
Definition: ExecuteTrajectory.h:28
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:20
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
VirtualRobotReader.h
armarx::core::time::Duration::Minutes
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
Definition: Duration.cpp:111
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:48
armarx::control::skills::constants::EXECUTE_TRAJECTORY_SKILL_NAME
std::string EXECUTE_TRAJECTORY_SKILL_NAME
Definition: constants.cpp:18
armarx::skills::Skill::ExitResult
A result struct for skill exit function.
Definition: Skill.h:55
armarx::skills::Skill::exit
virtual ExitResult exit()
Override this method with the actual implementation.
Definition: Skill.cpp:437
armarx::skills::SimpleSpecializedSkill< arondto::ExecuteTrajectoryParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::control::skills::skills
Definition: ExecuteTrajectory.cpp:18
armarx::skills::Skill::main
virtual MainResult main()
Override this method with the actual implementation. The callback is for status updates to the callin...
Definition: Skill.cpp:444
ComponentPlugin.h
MemoryNameSystem.h
armarx::control::skills::skills::ExecuteTrajectory::Services::controlComponentPluginUser
::armarx::control::client::ComponentPlugin * controlComponentPluginUser
Definition: ExecuteTrajectory.h:30