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
fd4df794
Commit
fd4df794
authored
2 years ago
by
Tobias Gröger
Browse files
Options
Downloads
Patches
Plain Diff
Add some debug comments
parent
4eee4c0a
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
-7
17 additions, 7 deletions
source/armarx/navigation/human/test/human_tracker_test.cpp
with
17 additions
and
7 deletions
source/armarx/navigation/human/test/human_tracker_test.cpp
+
17
−
7
View file @
fd4df794
...
...
@@ -192,16 +192,26 @@ namespace armarx::navigation::human
const
std
::
vector
<
CamMm
>
camMeasurements
=
generateCamMeasurements
(
initialPosition
,
endPosition
,
orientationQuat
,
timespanMs
,
cameraSteps
);
int
i
=
0
;
//
int i = 0;
for
(
const
CamMm
&
measurement
:
camMeasurements
)
{
const
Eigen
::
Vector3f
mPos
=
initialPosition
+
i
*
posDelta
;
ARMARX_INFO
<<
"Measurement at position "
<<
mPos
.
x
()
<<
", "
<<
mPos
.
y
()
<<
", "
<<
mPos
.
z
();
//ARMARX_INFO << "bla";
//const Eigen::Vector3f mPos = initialPosition + i * posDelta;
//ARMARX_INFO << "Measurement at position " << mPos.x() << ", " << mPos.y() << ", "
//<< mPos.z();
tracker
.
update
(
measurement
);
const
Eigen
::
Vector2f
tPos
=
tracker
.
getTrackedHumans
().
at
(
0
).
pose
.
translation
();
ARMARX_INFO
<<
"tracker now thinks human is at "
<<
tPos
.
x
()
<<
", "
<<
tPos
.
y
();
i
++
;
//const Eigen::Vector2f tPos = tracker.getTrackedHumans().at(0).pose.translation();
//ARMARX_INFO << "tracker now thinks human is at " << tPos.x() << ", " << tPos.y();
//i++;
}
ARMARX_INFO
<<
"state after loop:"
;
for
(
auto
&
h
:
tracker
.
getTrackedHumans
())
{
BOOST_TEST_MESSAGE
(
"-----------"
);
BOOST_TEST_MESSAGE
(
"time: "
<<
h
.
detectionTime
);
BOOST_TEST_MESSAGE
(
"pose:
\n
"
<<
h
.
pose
.
matrix
());
BOOST_TEST_MESSAGE
(
"vel:
\n
"
<<
h
.
linearVelocity
);
}
// LASER MEASUREMENT
...
...
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