RobotsIO
Loading...
Searching...
No Matches
FloatMatrixYarpPort.h
1/*
2 * Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#ifndef ROBOTSIO_FLOATMATRIXYARPPORT_H
9#define ROBOTSIO_FLOATMATRIXYARPPORT_H
10
11#include <Eigen/Dense>
12
13#include <RobotsIO/Utils/FloatMatrix.h>
14#include <RobotsIO/Utils/YarpBufferedPort.hpp>
15
16#include <yarp/sig/Image.h>
17
18namespace RobotsIO {
19 namespace Utils {
20 class FloatMatrixYarpPort;
21 }
22}
23
24
26 public RobotsIO::Utils::YarpBufferedPort<yarp::sig::ImageOf<yarp::sig::PixelFloat>>
27{
28public:
29 FloatMatrixYarpPort(const std::string& port_name);
30
31 virtual ~FloatMatrixYarpPort();
32
33 bool freeze(const bool blocking = false) override;
34
35 Eigen::MatrixXf matrix() override;
36
37private:
38 Eigen::MatrixXf matrix_;
39};
40
41#endif /* ROBOTSIO_FLOATMATRIXYARPPORT_H */