mirror of
https://github.com/modelec/detection_pot.git
synced 2026-03-24 08:20:32 +01:00
change position system
This commit is contained in:
@@ -206,7 +206,7 @@ std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> Ar
|
||||
cv::Mat rotaEuler = (cv::Mat_<double>(3, 1) << roll, pitch, yaw);
|
||||
|
||||
// Apply the homogeneous transformation to tvec
|
||||
cv::Mat translat = (cv::Mat_<double>(4, 1) << tvec.at<double>(0, 0), tvec.at<double>(1, 0), tvec.at<double>(2, 0), 1);
|
||||
cv::Mat translat = (cv::Mat_<double>(4, 1) << tvec.at<double>(2, 0), tvec.at<double>(1, 0), tvec.at<double>(0, 0), 1);
|
||||
|
||||
cv::Mat transformedTvec = (transformationMatrix * translat);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user