Evaluator.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <string>
21 #include <tuple>
22 #include <list>
23 #include <unordered_map>
24 #include <fstream>
25 #include <memory>
26 #include "ros/ros.h"
27 #include <sqlite3.h>
28 
29 
30 // Rank value, Scene name, Object meta name, object name, object observed id
31 typedef std::tuple<double,std::string,std::string,std::string,std::string> evalulatorTuple;
32 typedef std::shared_ptr<evalulatorTuple> evalulatorTupleSharedPtr;
33 // Rank value, Object meta name, object name, object observed id
34 typedef std::tuple<double,std::string,std::string,std::string> objectTuple;
35 typedef std::shared_ptr<objectTuple> objectTupleSharedPtr;
36 
37 class Evaluator {
38 private:
39  bool Validation(std::list<objectTupleSharedPtr> listToValidate);
40  bool Evaluate(std::list<objectTupleSharedPtr> oldList, std::list<objectTupleSharedPtr> newList);
41  double CalcAverageF(std::list<objectTupleSharedPtr> list);
45  std::unordered_map<std::string,std::list<std::string> > SceneMap;
46  std::list<objectTupleSharedPtr> ProcessedObjectList;
48  std::string NBVPath;
49  std::string DbPath;
50 
51 public:
52  Evaluator();
53  Evaluator(std::list<evalulatorTupleSharedPtr> objectListEntry, std::list<std::string> sceneListEntry, double GainValueThresholdEntry, std::string NBVPath, std::string dbPath);
54  virtual ~Evaluator();
55  std::list<objectTupleSharedPtr> getIntermediateObjects();
56 };
57 
bool Validation(std::list< objectTupleSharedPtr > listToValidate)
Definition: Evaluator.cpp:91
std::tuple< double, std::string, std::string, std::string > objectTuple
Definition: Evaluator.h:34
std::shared_ptr< objectTuple > objectTupleSharedPtr
Definition: Evaluator.h:35
std::list< objectTupleSharedPtr > ProcessedObjectList
Definition: Evaluator.h:46
std::string NBVPath
Definition: Evaluator.h:48
std::string DbPath
Definition: Evaluator.h:49
std::list< objectTupleSharedPtr > getIntermediateObjects()
Definition: Evaluator.cpp:127
void PublishIntermediateObjectForWorldModel()
Definition: Evaluator.cpp:165
std::unordered_map< std::string, std::list< std::string > > SceneMap
Definition: Evaluator.h:45
double GainValueThreshold
Definition: Evaluator.h:47
int ObjectListSize
Definition: Evaluator.h:44
double CalcAverageF(std::list< objectTupleSharedPtr > list)
Definition: Evaluator.cpp:80
virtual ~Evaluator()
Definition: Evaluator.cpp:75
std::tuple< double, std::string, std::string, std::string, std::string > evalulatorTuple
Definition: Evaluator.h:31
void PublishIntermediateObjectInDomainTable()
Definition: Evaluator.cpp:193
bool Evaluate(std::list< objectTupleSharedPtr > oldList, std::list< objectTupleSharedPtr > newList)
Definition: Evaluator.cpp:114
std::shared_ptr< evalulatorTuple > evalulatorTupleSharedPtr
Definition: Evaluator.h:32


asr_intermediate_object_generator
Author(s): Borella Jocelyn, Meißner Pascal
autogenerated on Thu Nov 21 2019 03:53:41