SpecializedSkill.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace armarx::skills
7{
8 template <class AronT>
9 class SpecializedSkill : public Skill
10 {
11 public:
12 using Base = Skill;
13 using ParamType = AronT;
14
15 using Skill::Skill;
16 virtual ~SpecializedSkill() = default;
17
18 void
19 setParameters(const AronT& d)
20 {
21 Base::setParameters(d.toAron());
22 }
23
24 /// Overwrite getter for parameters. Shadow Skill::getParameters()
25 AronT
27 {
28 AronT d;
29 d.fromAron(this->parameters);
30 return d;
31 }
32
33 /// returns the accepted type of the skill
36 {
37 return AronT::ToAronType();
38 }
39
40 protected:
41 };
42} // namespace armarx::skills
armarx::aron::data::DictPtr parameters
Definition Skill.h:369
void setParameters(const aron::data::DictPtr &d)
Hard set the parameters, ignoring everything that has been set or merged before.
Definition Skill.cpp:206
Skill()=delete
We completely remove the default constructor!
AronT getParameters() const
Overwrite getter for parameters. Shadow Skill::getParameters()
static armarx::aron::type::ObjectPtr GetAcceptedType()
returns the accepted type of the skill
virtual ~SpecializedSkill()=default
Skill()=delete
We completely remove the default constructor!
std::shared_ptr< Object > ObjectPtr
Definition Object.h:36
This file is part of ArmarX.