scene_configurator_data.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 // Global Includes
21 #include <boost/shared_ptr.hpp>
22 #include <boost/thread.hpp>
23 
24 // ISM Includes
25 #include <ISM/common_type/Object.hpp>
26 #include <ISM/common_type/ObjectSet.hpp>
27 
28 
29 
34 {
35  ISM::ObjectPtr object;
36  bool marked;
37  bool in_view;
38 
39  ObjectEstimation(ISM::ObjectPtr _object) : object(_object), marked(false), in_view(true) {}
40  ObjectEstimation(const ObjectEstimation &other) : object(ISM::ObjectPtr(new ISM::Object(*(other.object)))), marked(other.marked), in_view(other.in_view) {}
41 };
43 typedef std::vector<ObjectEstimationPtr> ObjectEstimationPtrs;
44 
45 
46 
51 {
52  public:
53 
54  SceneConfiguratorData(bool enable_nbrhood_eval = false, double nbr_angle_threshold = 0, double nbr_dist_threshold = 0) : enable_neighborhood_evaluation_(enable_nbrhood_eval), neighbour_angle_threshold_(nbr_angle_threshold), neighbour_distance_threshold_(nbr_dist_threshold) {}
55 
56  void addEstimation(ISM::ObjectPtr object);
57  void resetInViewForAllEstimations();
58  void setMarkedForAllEstimationsInView(bool marked);
59  void unmarkAllEstimations();
60  ISM::ObjectSetPtr getObjectSetFromMarkedEstimations();
61  ISM::ObjectSetPtr getObjectSetFromAllEstimations();
62  ObjectEstimationPtrs getAllEstimations();
63  void clearAllEstimations();
64  void clearUnmarkedEstimations();
65 
66  private:
67 
69  boost::mutex estimations_mutex_;
70 
74 };
SceneConfiguratorData(bool enable_nbrhood_eval=false, double nbr_angle_threshold=0, double nbr_dist_threshold=0)
ObjectEstimationPtrs estimations_
ObjectEstimation(ISM::ObjectPtr _object)
ObjectEstimation(const ObjectEstimation &other)
std::vector< ObjectEstimationPtr > ObjectEstimationPtrs
boost::shared_ptr< ObjectEstimation > ObjectEstimationPtr


asr_ism
Author(s): Borella Jocelyn, Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Thu Jan 9 2020 07:20:58