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
!402
Add Names to Locations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Names to Locations
names
into
master
Overview
1
Commits
14
Pipelines
6
Changes
14
Merged
Rainer Kartmann
requested to merge
names
into
master
1 year ago
Overview
1
Commits
14
Pipelines
6
Changes
14
Expand
Related to
https://git.h2t.iar.kit.edu/sw/armarx/prior-knowledge-data/-/merge_requests/35
sw/armarx/skills/navigation!99 (merged)
Edited
1 year ago
by
Rainer Kartmann
0
0
Merge request reports
Compare
master
version 5
9f9b3902
1 year ago
version 4
b71b0db8
1 year ago
version 3
fa6f5ad0
1 year ago
version 2
8bb87070
1 year ago
version 1
f8bbcd9c
1 year ago
master (base)
and
latest version
latest version
630ef927
14 commits,
1 year ago
version 5
9f9b3902
13 commits,
1 year ago
version 4
b71b0db8
12 commits,
1 year ago
version 3
fa6f5ad0
11 commits,
1 year ago
version 2
8bb87070
10 commits,
1 year ago
version 1
f8bbcd9c
9 commits,
1 year ago
14 files
+
201
−
68
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
source/RobotAPI/libraries/PriorKnowledge/util/LocationLoader/datatypes/Location.h
+
22
−
14
Options
#pragma once
#include
<memory>
#include
<optional>
#include
<string>
#include
<SimoxUtility/shapes/OrientedBox.h>
#include
<RobotAPI/libraries/core/FramedPose.h>
#include
<RobotAPI/libraries/core/Names.h>
namespace
armarx
::
priorknowledge
::
util
{
@@ -31,8 +33,12 @@ namespace armarx::priorknowledge::util
{
LocationId
id
;
LocationType
type
;
std
::
optional
<
Names
>
names
;
Location
(
const
LocationId
&
i
,
const
LocationType
t
)
:
id
(
i
),
type
(
t
)
Location
(
const
LocationId
&
i
,
const
LocationType
t
,
const
std
::
optional
<
Names
>&
names
=
std
::
nullopt
)
:
id
(
i
),
type
(
t
),
names
(
names
)
{
}
@@ -45,12 +51,13 @@ namespace armarx::priorknowledge::util
std
::
string
agent
;
Eigen
::
Matrix4f
pose
;
FramedLocation
(
const
LocationId
&
i
,
const
LocationType
t
,
const
std
::
string
&
f
,
const
std
::
string
&
a
,
const
Eigen
::
Matrix4f
&
p
)
:
Location
(
i
,
t
),
frame
(
f
),
agent
(
a
),
pose
(
p
)
FramedLocation
(
const
LocationId
&
id
,
const
LocationType
type
,
const
std
::
string
&
frame
,
const
std
::
string
&
agent
,
const
Eigen
::
Matrix4f
&
pose
,
const
std
::
optional
<
Names
>&
names
=
std
::
nullopt
)
:
Location
(
id
,
type
,
names
),
frame
(
frame
),
agent
(
agent
),
pose
(
pose
)
{
}
@@ -63,13 +70,14 @@ namespace armarx::priorknowledge::util
{
Eigen
::
Vector3f
extents
;
FramedBoxedLocation
(
const
LocationId
&
i
,
const
LocationType
t
,
const
std
::
string
&
f
,
const
std
::
string
&
a
,
const
Eigen
::
Matrix4f
&
p
,
const
Eigen
::
Vector3f
&
e
)
:
FramedLocation
(
i
,
t
,
f
,
a
,
p
),
extents
(
e
)
FramedBoxedLocation
(
const
LocationId
&
id
,
const
LocationType
type
,
const
std
::
string
&
frame
,
const
std
::
string
&
agent
,
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
extents
,
const
std
::
optional
<
Names
>&
names
=
std
::
nullopt
)
:
FramedLocation
(
id
,
type
,
frame
,
agent
,
pose
,
names
),
extents
(
extents
)
{
}
Loading