YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
StreamReceiver.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_FRAMEGRABBER_NWC_YARP_STREAM_RECEIVER_H
7#define YARP_FRAMEGRABBER_NWC_YARP_STREAM_RECEIVER_H
8
9#include <yarp/os/Port.h>
13
14#include "FrameGrabberMsgs.h"
15
16#include <mutex>
17
19{
20public:
21 int lastHeight() const;
22 int lastWidth() const;
24
25 template <typename ImageType>
27
28 bool open(const std::string& local,
29 const std::string& remote,
30 const std::string& carrier);
31 bool close();
32
33private:
35 yarp::os::Port port;
36
37 std::mutex m_mutex;
38 yarp::os::Stamp m_lastStamp {0, 0.0};
39 int m_lastHeight {0};
40 int m_lastWidth {0};
41};
42
43#endif // YARP_FRAMEGRABBER_NWC_YARP_STREAM_RECEIVER_H
int lastHeight() const
int lastWidth() const
yarp::os::Stamp lastStamp() const
bool open(const std::string &local, const std::string &remote, const std::string &carrier)
bool lastImage(ImageType &image)
A mini-server for performing network communication in the background.
A mini-server for network communication.
Definition Port.h:46
An abstraction for a time stamp and/or sequence number.
Definition Stamp.h:21