Skip to content
Snippets Groups Projects
Commit 77fbceeb authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

add legacy ctor for skill description

parent 03e32ab3
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ namespace armarx::skills::provider ...@@ -12,7 +12,7 @@ namespace armarx::skills::provider
{ {
return SkillDescription{{"ShowMeCallbacks"}, return SkillDescription{{"ShowMeCallbacks"},
"This skill does shows callbacks", "This skill does shows callbacks",
{}, nullptr,
armarx::core::time::Duration::MilliSeconds(1000), armarx::core::time::Duration::MilliSeconds(1000),
nullptr}; nullptr};
} }
......
...@@ -15,7 +15,7 @@ namespace armarx::skills::provider ...@@ -15,7 +15,7 @@ namespace armarx::skills::provider
return SkillDescription{{"ChainingSkill"}, return SkillDescription{{"ChainingSkill"},
"This skill calls the Timeout skill three times. The last " "This skill calls the Timeout skill three times. The last "
"execution is aborted due to a timeout of this skill.", "execution is aborted due to a timeout of this skill.",
{}, nullptr,
armarx::core::time::Duration::MilliSeconds(5000), armarx::core::time::Duration::MilliSeconds(5000),
nullptr}; nullptr};
} }
......
...@@ -14,7 +14,7 @@ namespace armarx::skills::provider ...@@ -14,7 +14,7 @@ namespace armarx::skills::provider
{ {
return SkillDescription{{"Timeout"}, return SkillDescription{{"Timeout"},
"This fails with timeout reached", "This fails with timeout reached",
{}, nullptr,
armarx::core::time::Duration::MilliSeconds(2000), armarx::core::time::Duration::MilliSeconds(2000),
nullptr}; nullptr};
} }
......
...@@ -23,6 +23,18 @@ namespace armarx ...@@ -23,6 +23,18 @@ namespace armarx
{ {
} }
// LEGACY CTOR
SkillDescription::SkillDescription(const std::string& skillName,
const std::string& desc,
const std::vector<std::string>&,
const armarx::core::time::Duration& timeout,
const aron::data::DictPtr& data,
const aron::type::ObjectPtr& parametersType,
const aron::type::ObjectPtr& resultType) :
SkillDescription({skillName}, desc, data, timeout, parametersType, resultType)
{
}
provider::dto::SkillDescription provider::dto::SkillDescription
SkillDescription::toProviderIce() const SkillDescription::toProviderIce() const
{ {
......
...@@ -26,6 +26,17 @@ namespace armarx ...@@ -26,6 +26,17 @@ namespace armarx
armarx::core::time::Duration::MilliSeconds(-1), armarx::core::time::Duration::MilliSeconds(-1),
const aron::type::ObjectPtr& parametersType = nullptr, const aron::type::ObjectPtr& parametersType = nullptr,
const aron::type::ObjectPtr& resultType = nullptr); const aron::type::ObjectPtr& resultType = nullptr);
// LEGACY
SkillDescription(const std::string& skillName,
const std::string& desc,
const std::vector<std::string>& ignore_me_i_am_not_used_anymore,
const armarx::core::time::Duration& timeout =
armarx::core::time::Duration::MilliSeconds(-1),
const aron::data::DictPtr& data = nullptr,
const aron::type::ObjectPtr& parametersType = nullptr,
const aron::type::ObjectPtr& resultType = nullptr);
SkillDescription(const SkillDescription&) = default; SkillDescription(const SkillDescription&) = default;
SkillDescription& operator=(const SkillDescription&) = default; SkillDescription& operator=(const SkillDescription&) = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment