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
1aeb4baa
Commit
1aeb4baa
authored
2 years ago
by
Corvin-N
Browse files
Options
Downloads
Patches
Plain Diff
Clean up project
parent
3ba10c63
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/armarx/navigation/human/HumanTracker.cpp
+2
-1
2 additions, 1 deletion
source/armarx/navigation/human/HumanTracker.cpp
source/armarx/navigation/human/HumanTracker.h
+1
-3
1 addition, 3 deletions
source/armarx/navigation/human/HumanTracker.h
with
3 additions
and
4 deletions
source/armarx/navigation/human/HumanTracker.cpp
+
2
−
1
View file @
1aeb4baa
...
...
@@ -103,6 +103,7 @@ namespace armarx::navigation::human
auto
&
footprint1
=
posDistance
.
oldHuman
->
associatedCluster
->
cluster
.
points
;
auto
&
footprint2
=
posDistance
.
newCluster
->
cluster
.
points
;
//TODO more efficient by just calculating mean between two circle centers for example
Eigen
::
Vector2f
centerPos
;
for
(
auto
&
point
:
footprint1
)
{
...
...
@@ -356,6 +357,7 @@ namespace armarx::navigation::human
float
HumanTracker
::
getClusterSize
(
Cluster
cluster
)
{
//TODO more effictient by using radius of circle saved in cluster for example
float
maxSize
=
0
;
for
(
auto
it1
=
cluster
.
points
.
begin
();
it1
!=
cluster
.
points
.
end
();)
{
...
...
@@ -363,7 +365,6 @@ namespace armarx::navigation::human
for
(
auto
it2
=
it1
+
1
;
it2
!=
cluster
.
points
.
end
();)
{
auto
&
point2
=
*
it2
;
//TODO does subtraction work for vectors like this?
maxSize
=
std
::
max
(
maxSize
,
(
point2
-
point1
).
norm
());
}
}
...
...
This diff is collapsed.
Click to expand it.
source/armarx/navigation/human/HumanTracker.h
+
1
−
3
View file @
1aeb4baa
...
...
@@ -36,11 +36,9 @@
namespace
armarx
::
navigation
::
human
{
using
T
=
double
;
using
Vector
=
Eigen
::
Matrix
<
T
,
2
,
1
>
;
using
SystemModelT
=
kalman_filter
::
SystemModelSO2xR2
<
T
>
;
using
Cluster
=
armem
::
vision
::
LaserScannerFeature
;
/**
* @brief The HumanTracker class can be used to track and filter multiple humans. It hides
* implementation detail on how new detected humans are associated to the old, already tracked
...
...
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