ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I add a definition in the file of calibration_publisher.cpp:
static cv::Mat CameraExtrinsicMat; static cv::Mat CameraMat; static cv::Mat DistCoeff; static cv::Size ImageSize; static std::string DistModel static cv::String DistModel_cv;
then modify the code:
fs["DistModel"] >> DistModel_cv; DistModel = DistModel_cv.operator std::string();
that is to convert cv::String to std::string, and the error is finally solved. I will test the demo next step.
2 | No.2 Revision |
I add a definition in the file of calibration_publisher.cpp:
static cv::Mat CameraExtrinsicMat;
static cv::Mat CameraMat;
static cv::Mat DistCoeff;
static cv::Size ImageSize;
static std::string DistModel
static cv::String then modify the code:
fs["DistModel"] >> DistModel_cv;
DistModel = DistModel_cv.operator that is to convert cv::String to std::string, and the error is finally solved. I will test the demo next step.
3 | No.3 Revision |
I add a definition in the file of calibration_publisher.cpp:
static cv::Mat CameraExtrinsicMat;
static cv::Mat CameraMat;
static cv::Mat DistCoeff;
static cv::Size ImageSize;
static std::string DistModel
static cv::String DistModel_cv;
then modify the code:
fs["DistModel"] >> DistModel_cv;
DistModel = DistModel_cv.operator std::string();
that is to convert cv::String to std::string, and the error is finally solved. I will test the demo next step.
4 | No.4 Revision |
I add a definition in the file of calibration_publisher.cpp:
static cv::Mat CameraExtrinsicMat;
static cv::Mat CameraMat;
static cv::Mat DistCoeff;
static cv::Size ImageSize;
static std::string DistModel
static cv::String DistModel_cv;
then modify the code:corresponding code to:
fs["DistModel"] >> DistModel_cv;
DistModel = DistModel_cv.operator std::string();
that is to convert cv::String to std::string, and the error is finally solved. I will test the demo next step.