mirror of
https://github.com/modelec/detection_pot.git
synced 2026-03-27 17:59:34 +01:00
change calculation fo distance
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "utils.h"
|
||||
|
||||
double distanceBetweenRobotAndTag(const cv::Mat& a)
|
||||
double distanceBetweenRobotAndTagOnXY(const cv::Mat& a)
|
||||
{
|
||||
return sqrt(pow(a.at<double>(0, 0), 2) + pow(a.at<double>(1, 0), 2) + pow(a.at<double>(2, 0), 2));
|
||||
return sqrt(pow(a.at<double>(0, 0), 2) + pow(a.at<double>(2, 0), 2));
|
||||
}
|
||||
Reference in New Issue
Block a user