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
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Merge requests
!449
Fluxio preliminary release
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fluxio preliminary release
fluxio/dev
into
master
Overview
1
Commits
293
Pipelines
29
Changes
1
Merged
Moritz Gleissner
requested to merge
fluxio/dev
into
master
10 months ago
Overview
1
Commits
293
Pipelines
29
Changes
1
Expand
0
0
Merge request reports
Viewing commit
7f20d714
Prev
Next
Show latest version
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7f20d714
skill deletion remove skill from memory
· 7f20d714
Firat Yusuf Duran
authored
6 months ago
source/RobotAPI/libraries/skills/manager/SkillManagerComponentPluginUser.cpp
+
24
−
0
Options
@@ -447,6 +447,24 @@ namespace armarx
const
Ice
::
Current
&
current
)
{
skills
::
manager
::
dto
::
FluxioIdentificatorList
ret
;
skills
::
Result
<
std
::
experimental
::
observer_ptr
<
const
skills
::
FluxioSkill
>
,
skills
::
error
::
FluxioException
>
res
=
this
->
plugin
->
getSkill
(
skillId
);
if
(
!
res
.
isSuccess
())
{
ARMARX_WARNING
<<
"Error getting skill with id "
<<
skillId
;
return
{};
}
std
::
experimental
::
observer_ptr
<
const
armarx
::
skills
::
FluxioSkill
>
skillptr
=
res
.
getResult
();
std
::
optional
<
skills
::
manager
::
arondto
::
FluxioSkill
>
opt
=
skillptr
->
toAronXml
();
if
(
!
opt
.
has_value
())
{
ARMARX_WARNING
<<
"Skill with id "
<<
skillId
<<
" could not be converted"
;
return
{};
}
skills
::
manager
::
arondto
::
FluxioSkill
skill
=
opt
.
value
();
auto
l
=
this
->
plugin
->
deleteSkill
(
skillId
,
userId
,
dryRun
);
if
(
!
l
.
has_value
())
@@ -464,6 +482,12 @@ namespace armarx
ret
.
push_back
(
s
->
toFluxioIdentificatorIce
());
}
if
(
!
dryRun
)
{
skill
.
deleted
=
true
;
saveSkill
(
skill
);
}
return
ret
;
}
Loading