update with socket

This commit is contained in:
ackimixs
2024-03-20 20:20:00 +01:00
parent 50f4fbcaf1
commit 9bf5502d64
8 changed files with 138 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
#include "utils.h"
double distanceBetweenRobotAndTag(const Type::RobotPose robotPose, const cv::Mat& a)
double distanceBetweenRobotAndTag(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));
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));
}