5 #ifndef __RD_MOCK_IMAGE_MANAGER_HPP__
6 #define __RD_MOCK_IMAGE_MANAGER_HPP__
10 #include <yarp/os/Semaphore.h>
12 #include "ImageManager.hpp"
38 virtual bool isEnabled()
const;
39 virtual bool configure(
const std::string & parameter,
const std::string & value);
53 static const std::string
id;
87 #endif //-- __RD_MOCK_IMAGE_MANAGER_HPP__
Image input manager based in YARP.
Definition: MockImageManager.hpp:31
bool receiveImage(const Image &received_image)
Simulate image has been received from device.
Definition: MockImageManager.cpp:75
yarp::os::Semaphore semaphore
Semaphore to make the image manipulation thread-safe.
Definition: MockImageManager.hpp:74
virtual bool configure(const std::string ¶meter, const std::string &value)
Configures a parameter with a value.
Definition: MockImageManager.cpp:45
static bool RegisterManager()
Register this manager in the ImageManager registry so that can be used.
Definition: MockImageManager.cpp:60
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
virtual Image getImage() const
Return the last received image.
Definition: MockImageManager.cpp:51
MockImageManager()
Constructor.
Definition: MockImageManager.cpp:98
virtual bool start()
Start to capture images.
Definition: MockImageManager.cpp:15
virtual bool setEnabled(bool enabled)
Enables/disables notifications to listeners.
Definition: MockImageManager.cpp:34
static const std::string id
String that identifies this manager.
Definition: MockImageManager.hpp:53
virtual bool isStopped() const
True if the manager is not active.
Definition: MockImageManager.cpp:29
static MockImageManager * uniqueInstance
Reference to this manager (unique instance)
Definition: MockImageManager.hpp:71
virtual ~MockImageManager()
Destructor. Used to reset the local static reference after destroying this manager.
Definition: MockImageManager.cpp:70
Image image
Last image received.
Definition: MockImageManager.hpp:77
virtual bool stop()
Stop capturing images.
Definition: MockImageManager.cpp:22
Generic image input manager.
Definition: ImageManager.hpp:39