Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
929e7894
Commit
929e7894
authored
1 year ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add template overload of callSubskillWithParameters()
parent
c22c1b2d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/skills/core/Skill.h
+12
-0
12 additions, 0 deletions
source/RobotAPI/libraries/skills/core/Skill.h
with
12 additions
and
0 deletions
source/RobotAPI/libraries/skills/core/Skill.h
+
12
−
0
View file @
929e7894
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment