mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 00:57:28 +01:00
update
This commit is contained in:
6
utils/utils.cpp
Normal file
6
utils/utils.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "utils.h"
|
||||
|
||||
double distanceBetweenRobotAndTag(const Type::RobotPose robotPose, const cv::Mat& a)
|
||||
{
|
||||
return sqrt(pow(robotPose.position.x + a.at<double>(0, 0), 2) + pow(robotPose.position.y + a.at<double>(1, 0), 2) + pow(robotPose.position.z + a.at<double>(2, 0), 2));
|
||||
}
|
||||
Reference in New Issue
Block a user