mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 09:07:20 +01:00
send the position of the tag in the robot xyz base | log rotation matrix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "utils.h"
|
||||
|
||||
double distanceBetweenRobotAndTag(const Type::RobotPose& robotPose, const cv::Mat& a)
|
||||
double distanceBetweenRobotAndTag(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(a.at<double>(0, 0), 2) + pow(a.at<double>(1, 0), 2) + pow(a.at<double>(2, 0), 2));
|
||||
}
|
||||
Reference in New Issue
Block a user