SkillDescription.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
7 
8 #include <RobotAPI/interface/skills/SkillProviderInterface.h>
11 
12 #include "SkillID.h"
13 
14 namespace armarx
15 {
16  namespace skills
17  {
19  {
21  std::string description = "";
26 
27  provider::dto::SkillDescription toProviderIce() const;
28  manager::dto::SkillDescription toManagerIce() const;
29 
30  static SkillDescription FromIce(const provider::dto::SkillDescription& i,
31  const std::optional<ProviderID>& = std::nullopt);
32  static SkillDescription FromIce(const manager::dto::SkillDescription& i);
33 
34  bool
35  operator==(const SkillDescription& other) const
36  {
37  return this->skillId == other.skillId && this->description == other.description &&
38  this->rootProfileDefaults == other.rootProfileDefaults &&
39  this->timeout == other.timeout &&
40  this->parametersType == other.parametersType &&
41  this->resultType == other.resultType;
42  }
43  };
44 
45  template <class T>
47  } // namespace skills
48 } // namespace armarx
skills
This file is part of ArmarX.
armarx::skills::SkillDescription::description
std::string description
Definition: SkillDescription.h:21
armarx::skills::SkillDescription::timeout
armarx::core::time::Duration timeout
Definition: SkillDescription.h:23
SkillID.h
armarx::skills::SkillDescription
Definition: SkillDescription.h:18
Duration.h
Dict.h
armarx::skills::SkillDescription::resultType
aron::type::ObjectPtr resultType
Definition: SkillDescription.h:25
Object.h
armarx::skills::SkillDescription::toManagerIce
manager::dto::SkillDescription toManagerIce() const
Definition: SkillDescription.cpp:25
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:20
armarx::skills::SkillDescription::rootProfileDefaults
aron::data::DictPtr rootProfileDefaults
Definition: SkillDescription.h:22
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::skills::SkillDescription::toProviderIce
provider::dto::SkillDescription toProviderIce() const
Definition: SkillDescription.cpp:11
armarx::core::time::Duration
Represents a duration.
Definition: Duration.h:17
armarx::skills::isSkillDescription
concept isSkillDescription
Definition: SkillDescription.h:46
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
armarx::skills::SkillDescription::parametersType
aron::type::ObjectPtr parametersType
Definition: SkillDescription.h:24
armarx::skills::SkillDescription::FromIce
static SkillDescription FromIce(const provider::dto::SkillDescription &i, const std::optional< ProviderID > &=std::nullopt)
Definition: SkillDescription.cpp:39
armarx::skills::SkillID
Definition: SkillID.h:17
armarx::skills::SkillDescription::operator==
bool operator==(const SkillDescription &other) const
Definition: SkillDescription.h:35
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::core::time::Duration::MilliSeconds
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
Definition: Duration.cpp:55