Skip to content
Snippets Groups Projects
Commit 929e7894 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add template overload of callSubskillWithParameters()

parent c22c1b2d
No related branches found
No related tags found
1 merge request!404Add convenience functions for calling subskills
Pipeline #16087 passed
This commit is part of merge request !404. Comments created here will be created in the context of that merge request.
......@@ -200,6 +200,18 @@ namespace armarx
callSubskillWithParameters(const SkillID& skillId,
const aron::data::DictPtr& parameters);
/**
* @brief Call a subskill with the given ID and parameters.
* @param skillId The subskill's ID.
* @param parameters The parameters.
* @return The terminated skill status update.
*/
template <class ParameterT>
std::optional<TerminatedSkillStatusUpdate>
callSubskillWithParameters(const SkillID& skillId, const ParameterT& parameters)
{
return callSubskillWithParameters(skillId, parameters.toAron());
}
/**
* @brief Call a subskill with parameters based on the default parameters.
......
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