5 #ifndef __RD_YARP_IMAGE_MANAGER_HPP__
6 #define __RD_YARP_IMAGE_MANAGER_HPP__
10 #include <yarp/os/PortReaderBuffer.h>
11 #include <yarp/os/BufferedPort.h>
12 #include <yarp/os/Semaphore.h>
14 #include "ImageManager.hpp"
34 public yarp::os::TypedReaderCallback<Image>
41 virtual bool configure(
const std::string & parameter,
const std::string & value);
55 static const std::string
id;
99 #endif //-- __RD_YARP_IMAGE_MANAGER_HPP__
static const std::string id
String that identifies this manager.
Definition: YarpImageManager.hpp:55
virtual Image getImage() const
Return the last received image.
Definition: YarpImageManager.cpp:118
virtual bool stop()
Stop capturing images.
Definition: YarpImageManager.cpp:79
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
yarp::os::Semaphore semaphore
Semaphore to make the image manipulation thread-safe.
Definition: YarpImageManager.hpp:77
virtual bool start()
Start to capture images.
Definition: YarpImageManager.cpp:18
std::string remote_port_name
Name of the camera (remote) yarp port.
Definition: YarpImageManager.hpp:89
static YarpImageManager * uniqueInstance
Reference to this manager (unique instance)
Definition: YarpImageManager.hpp:74
virtual bool setEnabled(bool enabled)
Enables/disables notifications to listeners.
Definition: YarpImageManager.cpp:96
YarpImageManager()
Constructor.
Definition: YarpImageManager.cpp:162
static bool RegisterManager()
Register this manager in the ImageManager registry so that can be used.
Definition: YarpImageManager.cpp:127
virtual ~YarpImageManager()
Destructor. Used to reset the local static reference after destroying this manager.
Definition: YarpImageManager.cpp:137
virtual bool isStopped() const
True if the manager is not active.
Definition: YarpImageManager.cpp:91
Image image
Last image received.
Definition: YarpImageManager.hpp:80
Image input manager based in YARP.
Definition: YarpImageManager.hpp:33
void onRead(Image &image)
Yarp event for incoming messages.
Definition: YarpImageManager.cpp:142
virtual bool configure(const std::string ¶meter, const std::string &value)
Configures a parameter with a value.
Definition: YarpImageManager.cpp:102
std::string local_port_name
Name of the local yarp port.
Definition: YarpImageManager.hpp:86
yarp::os::BufferedPort< Image > imagePort
Yarp port to communicate with the remote camera.
Definition: YarpImageManager.hpp:83
Generic image input manager.
Definition: ImageManager.hpp:39