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
776d86ee
Commit
776d86ee
authored
1 year ago
by
Fabian Tërnava
Browse files
Options
Downloads
Patches
Plain Diff
add return type for skill desc
parent
945911d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/libraries/skills/core/SkillDescription.cpp
+10
-14
10 additions, 14 deletions
source/RobotAPI/libraries/skills/core/SkillDescription.cpp
source/RobotAPI/libraries/skills/core/SkillDescription.h
+3
-13
3 additions, 13 deletions
source/RobotAPI/libraries/skills/core/SkillDescription.h
with
13 additions
and
27 deletions
source/RobotAPI/libraries/skills/core/SkillDescription.cpp
+
10
−
14
View file @
776d86ee
...
...
@@ -8,26 +8,18 @@ namespace armarx
namespace
skills
{
// provider::dto::SkillProfile
// SkillProfile::toIce() const
// {
// provider::dto::SkillProfile ret;
// ret.profileName = profileName;
// ret.predecessorProfileName = predecessorProfileName;
// ret.parameterization = parameterization->toAronDictDTO();
// return ret;
// }
SkillDescription
::
SkillDescription
(
const
SkillID
&
id
,
const
std
::
string
&
desc
,
const
aron
::
data
::
DictPtr
&
data
,
const
armarx
::
core
::
time
::
Duration
&
timeout
,
const
aron
::
type
::
ObjectPtr
&
acceptedType
)
:
const
aron
::
type
::
ObjectPtr
&
acceptedType
,
const
aron
::
type
::
ObjectPtr
&
returnType
)
:
skillId
(
id
),
description
(
desc
),
rootProfileParameterization
(
data
),
timeout
(
timeout
),
acceptedType
(
acceptedType
)
acceptedType
(
acceptedType
),
returnType
(
returnType
)
{
}
...
...
@@ -36,6 +28,7 @@ namespace armarx
{
provider
::
dto
::
SkillDescription
ret
;
ret
.
acceptedType
=
aron
::
type
::
Object
::
ToAronObjectDTO
(
acceptedType
);
ret
.
returnType
=
aron
::
type
::
Object
::
ToAronObjectDTO
(
returnType
);
ret
.
description
=
description
;
ret
.
skillId
=
skillId
.
toProviderIce
();
ret
.
rootProfileDefaults
=
aron
::
data
::
Dict
::
ToAronDictDTO
(
rootProfileParameterization
);
...
...
@@ -49,6 +42,7 @@ namespace armarx
{
manager
::
dto
::
SkillDescription
ret
;
ret
.
acceptedType
=
aron
::
type
::
Object
::
ToAronObjectDTO
(
acceptedType
);
ret
.
returnType
=
aron
::
type
::
Object
::
ToAronObjectDTO
(
returnType
);
ret
.
description
=
description
;
ret
.
skillId
=
skillId
.
toManagerIce
();
ret
.
rootProfileDefaults
=
aron
::
data
::
Dict
::
ToAronDictDTO
(
rootProfileParameterization
);
...
...
@@ -68,7 +62,8 @@ namespace armarx
i
.
description
,
armarx
::
aron
::
data
::
Dict
::
FromAronDictDTO
(
i
.
rootProfileDefaults
),
_d
,
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
acceptedType
));
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
acceptedType
),
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
returnType
));
}
SkillDescription
...
...
@@ -81,7 +76,8 @@ namespace armarx
i
.
description
,
armarx
::
aron
::
data
::
Dict
::
FromAronDictDTO
(
i
.
rootProfileDefaults
),
_d
,
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
acceptedType
));
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
acceptedType
),
armarx
::
aron
::
type
::
Object
::
FromAronObjectDTO
(
i
.
returnType
));
}
}
// namespace skills
}
// namespace armarx
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/skills/core/SkillDescription.h
+
3
−
13
View file @
776d86ee
...
...
@@ -15,18 +15,6 @@ namespace armarx
{
namespace
skills
{
// struct SkillProfile
// {
// static const constexpr char* ROOT_PROFILE_NAME = "root";
// static const constexpr char* NO_PREDECESSOR = "";
// std::string profileName = ROOT_PROFILE_NAME;
// std::string predecessorProfileName = "";
// aron::data::DictPtr parameterization = nullptr;
// provider::dto::SkillProfile toIce() const;
// };
struct
SkillDescription
{
SkillDescription
()
=
delete
;
...
...
@@ -36,7 +24,8 @@ namespace armarx
const
aron
::
data
::
DictPtr
&
data
=
nullptr
,
const
armarx
::
core
::
time
::
Duration
&
timeout
=
armarx
::
core
::
time
::
Duration
::
MilliSeconds
(
-
1
),
const
aron
::
type
::
ObjectPtr
&
acceptedType
=
nullptr
);
const
aron
::
type
::
ObjectPtr
&
acceptedType
=
nullptr
,
const
aron
::
type
::
ObjectPtr
&
returnType
=
nullptr
);
SkillDescription
&
operator
=
(
const
SkillDescription
&
)
=
default
;
...
...
@@ -45,6 +34,7 @@ namespace armarx
aron
::
data
::
DictPtr
rootProfileParameterization
;
armarx
::
core
::
time
::
Duration
timeout
;
aron
::
type
::
ObjectPtr
acceptedType
;
aron
::
type
::
ObjectPtr
returnType
;
provider
::
dto
::
SkillDescription
toProviderIce
()
const
;
manager
::
dto
::
SkillDescription
toManagerIce
()
const
;
...
...
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