Skip to content
Snippets Groups Projects
Commit fd4df794 authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Add some debug comments

parent 4eee4c0a
No related branches found
No related tags found
2 merge requests!68Add human tracking,!28Draft: Dev -> Main
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment