Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Navigation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Skills
Navigation
Commits
74fadcd0
Commit
74fadcd0
authored
2 years ago
by
Timo Weberruß
Browse files
Options
Downloads
Patches
Plain Diff
Add convex hull to test clusters
parent
41fd3a34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!68
Add human tracking
,
!28
Draft: Dev -> Main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/armarx/navigation/human/test/human_tracker_test.cpp
+17
-9
17 additions, 9 deletions
source/armarx/navigation/human/test/human_tracker_test.cpp
with
17 additions
and
9 deletions
source/armarx/navigation/human/test/human_tracker_test.cpp
+
17
−
9
View file @
74fadcd0
...
...
@@ -103,11 +103,9 @@ namespace armarx::navigation::human
{
using
Point
=
Eigen
::
Vector2f
;
const
std
::
vector
<
Point
>
relOffsets
=
{
Point
(
0.01
,
0.003
),
Point
(
-
0.02
,
0.007
),
Point
(
-
0.01
,
-
0.01
),
Point
(
0.015
,
0.009
),
Point
(
0.002
,
0.001
)};
// These are convex
const
std
::
vector
<
Point
>
relOffsets
=
{
Point
(
0.01
,
0.003
),
Point
(
-
0.02
,
0.007
),
Point
(
-
0.01
,
-
0.01
),
Point
(
0.015
,
0.009
)};
const
Eigen
::
Vector2f
leftFootPos
=
pos
+
Eigen
::
Vector2f
(
0
,
0.1
);
const
Eigen
::
Vector2f
rightFootPos
=
pos
+
Eigen
::
Vector2f
(
0
,
-
0.1
);
...
...
@@ -121,6 +119,12 @@ namespace armarx::navigation::human
rightFootPoints
.
emplace_back
(
rightFootPos
+
offset
);
i
++
;
}
std
::
vector
<
Point
>
leftFootHull
=
std
::
vector
<
Point
>
(
leftFootPoints
);
std
::
vector
<
Point
>
rightFootHull
=
std
::
vector
<
Point
>
(
rightFootPoints
);
// Add one more non-convex point to the cluster points
leftFootPoints
.
emplace_back
(
leftFootPos
+
Point
(
0.002
,
0.001
));
rightFootPoints
.
emplace_back
(
rightFootPos
+
Point
(
0.002
,
0.003
));
using
Pose
=
Eigen
::
Isometry3f
;
Pose
leftFootPose
=
Pose
::
Identity
();
...
...
@@ -138,10 +142,14 @@ namespace armarx::navigation::human
const
Circle
leftFootCircle
=
{.
center
=
leftFootPos
,
.
radius
=
0.1
};
const
Circle
rightFootCircle
=
{.
center
=
rightFootPos
,
.
radius
=
0.1
};
const
Cluster
leftFootCluster
=
{
.
circle
=
leftFootCircle
,
.
ellipsoid
=
leftFootEllipse
,
.
points
=
leftFootPoints
};
const
Cluster
rightFootCluster
=
{
.
circle
=
rightFootCircle
,
.
ellipsoid
=
rightFootEllipse
,
.
points
=
rightFootPoints
};
const
Cluster
leftFootCluster
=
{.
convexHull
=
leftFootHull
,
.
circle
=
leftFootCircle
,
.
ellipsoid
=
leftFootEllipse
,
.
points
=
leftFootPoints
};
const
Cluster
rightFootCluster
=
{.
convexHull
=
rightFootHull
,
.
circle
=
rightFootCircle
,
.
ellipsoid
=
rightFootEllipse
,
.
points
=
rightFootPoints
};
const
std
::
vector
<
Cluster
>
clusters
=
std
::
vector
<
Cluster
>
{
leftFootCluster
,
rightFootCluster
};
...
...
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