-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'build_ros.sh' is waiting for updating #479
Comments
#442 |
After I used the modification of point 4 in this link to replace the error of the original code, I got some new errors.
|
@Qiu1117 Hi, I just see your reply. The errors seem to locate at the AR function. I just delete the related add_executable in the CMakeLists as I don't use the AR function. Maybe you can try this. |
It works!Thank you. : ) |
in AR of Examples_old#include "../../../include/Converter.h" error: conversion from ‘Sophus::SE3f’ {aka ‘Sophus::SE3’} to non-scalar type ‘cv::Mat’ requested cv::Mat Tcw=ORB_SLAM3::Converter::toCvMat(mpSLAM->TrackMonocular(cv_ptr->image,cv_ptr->header.stamp.toSec()).matrix());
//in line 151 of ros_mono_ar.cc error: no matching function for call to ‘std::vectorcv::Mat::push_back(Eigen::Vector3f)’ vPoints.push_back(ORB_SLAM3::Converter::toCvMat(pMP->GetWorldPos()));
//in line 405 of ViewerAR.cc error: conversion from ‘Eigen::Vector3f’ {aka ‘Eigen::Matrix<float, 3, 1>’} to non-scalar type ‘cv::Mat’ requested cv::Mat Xw = ORB_SLAM3::Converter::toCvMat(pMP->GetWorldPos());
//in line 530 of ViewerAR.cc all above .cc file should include Converter.h file |
Tkanks bro ^^ |
Hi bro. i had the same error when try build it on ros2. How can fix it? Hope to see you soon! <3 |
I think you use ORB_SLAM3::Converter::toCvMat function to do so. |
error: conversion from ‘Sophus::SE3f’ {aka ‘Sophus::SE3’} to non-scalar type ‘cv::Mat’ requested 151 | cv::Mat Tcw = mpSLAM->TrackMonocular(cv_ptr->image,cv_ptr->header.stamp.toSec()); cv::Mat Tcw;
Sophus::SE3f Tcw_SE3f = mpSLAM->TrackMonocular(cv_ptr->image,cv_ptr->header.stamp.toSec());
Eigen::Matrix4f Tcw_Matrix = Tcw_SE3f.matrix();
cv::eigen2cv(Tcw_Matrix, Tcw);
// in line 151 of ros_mono_ar.cc error: no matching function for call to ‘std::vectorcv::Mat::push_back(Eigen::Vector3f)’ 405 | vPoints.push_back(pMP->GetWorldPos()); cv::Mat WorldPos;
cv::eigen2cv(pMP->GetWorldPos(), WorldPos);
vPoints.push_back(WorldPos);
//in line 405 of ViewerAR.cc error: conversion from ‘Eigen::Vector3f’ {aka ‘Eigen::Matrix<float, 3, 1>’} to non-scalar type ‘cv::Mat’ requested 530 | cv::Mat Xw = pMP->GetWorldPos(); cv::Mat Xw;
cv::eigen2cv(pMP->GetWorldPos(), Xw);
//in line 530 of ViewerAR.cc and you should correct the code before add #include <Eigen/Dense>
#include<opencv2/core/eigen.hpp> all above .cc file should include add this! |
Thank u <3 |
When building the ROS version, there are some problems, such as the confusion between the file 'Examples_old' and 'Examples'.
Also, the process of 'make -j' will bring some problems as following:
The text was updated successfully, but these errors were encountered: