8#include <RobotsIO/Utils/FloatMatrixYarpPort.h>
10#include <opencv2/core/eigen.hpp>
12#include <yarp/cv/Cv.h>
15using namespace RobotsIO::Utils;
16using namespace yarp::cv;
17using namespace yarp::sig;
20FloatMatrixYarpPort::FloatMatrixYarpPort(
const std::string& port_name) :
24FloatMatrixYarpPort::~FloatMatrixYarpPort()
28bool FloatMatrixYarpPort::freeze(
const bool blocking)
30 ImageOf<PixelFloat>* image_float_yarp = receive_data(blocking);
32 if (image_float_yarp ==
nullptr)
35 cv::Mat image_float_cv = toCvMat(*image_float_yarp);
37 cv::cv2eigen(image_float_cv, matrix_);
43MatrixXf FloatMatrixYarpPort::matrix()