Has anyone used the KalmanFilter Opencv libraries inside ROS?
Hi, I was wondering if someone has used the Kalman filter of Opencv inside ROS. The "normal" Opencv program works perfectly, but when i use it inside ros (The same code), it throws me the following error:
‘KF’ does not name a type
KF.transitionMatrix = *(Mat_<float>(4, 4) << 1,0,1,0, 0,1,0,1, 0,0,1,0, 0,0,0,1);
The relevant include is:
#include <opencv2/video/tracking.hpp>
#include <opencv2/video/video.hpp>
That is the same that I use in the normal Opencv code, but in ROS it doesnt work.
Thanks