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
6d820ca9
Commit
6d820ca9
authored
2 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Change order of members
parent
337d018b
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/interface/objectpose/object_pose_types.ice
+9
-7
9 additions, 7 deletions
source/RobotAPI/interface/objectpose/object_pose_types.ice
source/RobotAPI/libraries/ArmarXObjects/ObjectPose.cpp
+6
-6
6 additions, 6 deletions
source/RobotAPI/libraries/ArmarXObjects/ObjectPose.cpp
with
15 additions
and
13 deletions
source/RobotAPI/interface/objectpose/object_pose_types.ice
+
9
−
7
View file @
6d820ca9
...
...
@@ -79,6 +79,9 @@ module armarx
/// An object pose provided by an ObjectPoseProvider.
struct
ProvidedObjectPose
{
/// The object ID, i.e. dataset, class name and instance name.
armarx
::
data
::
ObjectID
objectID
;
/// Name of the providing component.
string
providerName
;
/// Known or unknown object.
...
...
@@ -86,14 +89,13 @@ module armarx
/// Whether object is static. Static objects don't decay.
bool
isStatic
=
false
;
/// The object ID, i.e. dataset and name.
armarx
::
data
::
ObjectID
objectID
;
/// Pose in `objectPoseFrame`.
PoseBase
objectPose
;
/// The frame in which the object was localized.
string
objectPoseFrame
;
PoseManifoldGaussian
objectPoseGaussian
;
/// Object pose with uncertainty.
PoseManifoldGaussian
objectPoseGaussian
;
/// The object's joint values if it is articulated.
NameValueMap
objectJointValues
;
...
...
@@ -114,6 +116,9 @@ module armarx
/// An object pose as stored by the ObjectPoseStorage.
struct
ObjectPose
{
/// The object ID, i.e. dataset, class name and instance name.
armarx
::
data
::
ObjectID
objectID
;
/// Name of the providing component.
string
providerName
;
/// Known or unknown object.
...
...
@@ -121,9 +126,6 @@ module armarx
/// Whether object is static. Static objects don't decay.
bool
isStatic
=
false
;
/// The object ID, i.e. dataset and name.
armarx
::
data
::
ObjectID
objectID
;
PoseBase
objectPoseRobot
;
PoseManifoldGaussian
objectPoseRobotGaussian
;
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/ArmarXObjects/ObjectPose.cpp
+
6
−
6
View file @
6d820ca9
...
...
@@ -29,10 +29,11 @@ namespace armarx::objpose
void
ObjectPose
::
fromIce
(
const
data
::
ObjectPose
&
ice
)
{
armarx
::
fromIce
(
ice
.
objectID
,
objectID
);
providerName
=
ice
.
providerName
;
objectType
=
ice
.
objectType
;
isStatic
=
ice
.
isStatic
;
armarx
::
fromIce
(
ice
.
objectID
,
objectID
);
armarx
::
fromIce
(
ice
.
objectPoseRobot
,
objectPoseRobot
);
objpose
::
fromIce
(
ice
.
objectPoseRobotGaussian
,
objectPoseRobotGaussian
);
...
...
@@ -66,10 +67,11 @@ namespace armarx::objpose
void
ObjectPose
::
toIce
(
data
::
ObjectPose
&
ice
)
const
{
armarx
::
toIce
(
ice
.
objectID
,
objectID
);
ice
.
providerName
=
providerName
;
ice
.
objectType
=
objectType
;
ice
.
isStatic
=
isStatic
;
armarx
::
toIce
(
ice
.
objectID
,
objectID
);
armarx
::
toIce
(
ice
.
objectPoseRobot
,
objectPoseRobot
);
objpose
::
toIce
(
ice
.
objectPoseRobotGaussian
,
objectPoseRobotGaussian
);
...
...
@@ -96,10 +98,11 @@ namespace armarx::objpose
void
ObjectPose
::
fromProvidedPose
(
const
data
::
ProvidedObjectPose
&
provided
,
VirtualRobot
::
RobotPtr
robot
)
{
armarx
::
fromIce
(
provided
.
objectID
,
objectID
);
providerName
=
provided
.
providerName
;
objectType
=
provided
.
objectType
;
isStatic
=
provided
.
isStatic
;
armarx
::
fromIce
(
provided
.
objectID
,
objectID
);
armarx
::
fromIce
(
provided
.
objectPose
,
objectPoseOriginal
);
objpose
::
fromIce
(
provided
.
objectPoseGaussian
,
objectPoseOriginalGaussian
);
...
...
@@ -374,6 +377,3 @@ namespace armarx
}
}
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