mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-20 01:47:30 +01:00
update with socket
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user