warp1337 / ros_aruco

Simple ROS Node to publish single marker trans and rot
25 stars 19 forks source link

error #6

Open shashankvkt opened 7 years ago

shashankvkt commented 7 years ago

Hello sri, could you kindly assist me with this error, it seems to pop out all of a sudden.

terminate called after throwing an instance of 'cv::Exception' what(): /home/shashank/Downloads/aruco-2.0.14/src/cameraparameters.cpp:138: error: (9007) invalid object in function CameraParameters::resize

the code snippet looks like this

TheCameraParameters.readFromXMLFile("/home/shashank/catkin_ws/src/prec_landing/data/ps3.yaml");
TheCameraParameters.resize(current_image.size());
TheMarkerSize=0.18;

MDetector.setThresholdParams(7, 7);  
MDetector.setThresholdParamRange(2, 0);
std::map<uint32_t,MarkerPoseTracker> MTracker;

MDetector.setDictionary("TAG36h11",0.f);

requesting your esteemed assistance at the earliest please.