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
Merge requests
!109
Social layers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Social layers
feature/store-proxemics-in-memory
into
master
Overview
0
Commits
69
Pipelines
0
Changes
3
Open
Fabian Reister
requested to merge
feature/store-proxemics-in-memory
into
master
6 months ago
Overview
0
Commits
69
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
1ca0e184
Prev
Next
Show latest version
3 files
+
7
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
1ca0e184
Implement MovementDistance
· 1ca0e184
Timo Weberruß
authored
2 years ago
source/armarx/navigation/human/EuclideanDistance.h
0 → 100644
+
39
−
0
Options
/**
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Timo Weberruß ( timo dot weberruss at student dot kit dot edu )
* @date 2022
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include
"DistanceFunction.h"
namespace
armarx
::
navigation
::
human
{
/**
* @brief The EuclideanDistance class is an implementation of a distance function that computes
* the literal, euclidean distance between two human. (i.e. sqrt(dx²+dy²)).
*/
class
EuclideanDistance
:
public
DistanceFunction
{
public:
EuclideanDistance
()
=
default
;
double
computeDistance
(
const
Human
&
h1
,
const
Human
&
h2
)
const
override
;
};
}
// namespace armarx::navigation::human
Loading