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
23b0fdd9
Commit
23b0fdd9
authored
2 years ago
by
Corvin-N
Browse files
Options
Downloads
Patches
Plain Diff
Implement new cluster center function as ellipsoids are 3d objects
parent
c7bed5cb
No related branches found
No related tags found
2 merge requests
!68
Add human tracking
,
!28
Draft: Dev -> Main
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/armarx/navigation/human/HumanTracker.cpp
+12
-0
12 additions, 0 deletions
source/armarx/navigation/human/HumanTracker.cpp
source/armarx/navigation/human/HumanTracker.h
+7
-0
7 additions, 0 deletions
source/armarx/navigation/human/HumanTracker.h
with
19 additions
and
0 deletions
source/armarx/navigation/human/HumanTracker.cpp
+
12
−
0
View file @
23b0fdd9
...
...
@@ -339,6 +339,18 @@ namespace armarx::navigation::human
return
std
::
max
(
cluster
.
ellipsoid
.
radii
.
x
(),
cluster
.
ellipsoid
.
radii
.
y
());
}
Eigen
::
Vector2f
HumanTracker
::
getClusterCenter
(
Cluster
cluster
)
{
Eigen
::
Vector2f
center
;
for
(
auto
&
point
:
cluster
.
points
)
{
center
+=
point
;
}
center
/=
cluster
.
points
.
size
();
return
center
;
}
void
HumanTracker
::
prepareTrackedHumans
(
DateTime
time
)
{
...
...
This diff is collapsed.
Click to expand it.
source/armarx/navigation/human/HumanTracker.h
+
7
−
0
View file @
23b0fdd9
...
...
@@ -200,6 +200,13 @@ namespace armarx::navigation::human
* @return the size
*/
float
getClusterSize
(
Cluster
cluster
);
/**
* @brief HumanTracker::getClusterCenter Returns the center of the given cluster. That is
* calculated as the mean of all points.
* @param cluster The cluster whose center is calculated
* @return the center
*/
Eigen
::
Vector2f
HumanTracker
::
getClusterCenter
(
Cluster
cluster
);
/**
* @brief prepareTrackedHumans Deletes all tracked humans that received no update for too
* long. All remaining tracked humans are prepared for association with the given point in
...
...
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