23 #include "fvretriever_plugin.h" 25 #include "retriever_thread.h" 27 #include <core/exceptions/software.h> 32 using namespace firevision;
47 std::set<std::string> configs;
48 std::set<std::string> ignored_configs;
50 std::string prefix =
"/firevision/retriever/camera/";
54 std::string cfg_name = std::string(vi->
path()).substr(prefix.length());
55 cfg_name = cfg_name.substr(0, cfg_name.find(
"/"));
57 if ((configs.find(cfg_name) == configs.end())
58 && (ignored_configs.find(cfg_name) == ignored_configs.end())) {
59 std::string cfg_prefix = prefix + cfg_name +
"/";
66 std::string cam_string =
config->
get_string((cfg_prefix +
"string").c_str());
70 configs.insert(cfg_name);
73 ignored_configs.insert(cfg_name);
81 throw Exception(
"No cameras have been set for fvretriever");
85 PLUGIN_DESCRIPTION(
"Reads images from cameras and stores them in shared memory")
FvRetrieverPlugin(fawkes::Configuration *config)
Constructor.
FireVision retriever thread.
Fawkes library namespace.
virtual bool get_bool(const char *path)=0
Get value from configuration which is of type bool.
virtual ValueIterator * search(const char *path)=0
Iterator with search results.
virtual bool next()=0
Check if there is another element and advance to this if possible.
Base class for exceptions in Fawkes.
ThreadList thread_list
Thread list member.
virtual const char * path() const =0
Path of value.
Configuration * config
Fawkes configuration.
void push_back(Thread *thread)
Add thread to the end.
Iterator interface to iterate over config values.
Interface for configuration handling.
FireVision Retriever Plugin.
virtual std::string get_string(const char *path)=0
Get value from configuration which is of type string.