ptu_tuple.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <boost/shared_ptr.hpp>
21 #include "ros/ros.h"
22 #include <geometry_msgs/Pose.h>
23 #include <asr_next_best_view/RatedViewport.h>
24 
25 namespace directSearchWS {
26 
27 typedef std::vector<std::string> SearchedObjectTypes;
29 
30 class PtuTuple {
31 
32 private:
33  int pan;
34  int tilt;
35  PosePtr cameraPosePtr;
37  SearchedObjectTypes already_searched_object_types;
38  asr_next_best_view::RatedViewport ratedViewport;
39 
40 public:
41  PtuTuple(int pan, int tilt, PosePtr cameraPosePtr);
42  PtuTuple(int pan, int tilt, PosePtr cameraPosePtr, int deactivated_object_normals_count);
43  PtuTuple(int pan, int tilt, PosePtr cameraPosePtr, int deactivated_object_normals_count, SearchedObjectTypes already_searched_object_types);
44  PtuTuple(int pan, int tilt, PosePtr cameraPosePtr, int deactivated_object_normals_count, SearchedObjectTypes already_searched_object_types, asr_next_best_view::RatedViewport ratedViewport);
45 
46  //Getter
47  int getPan() const;
48 
49  int getTilt() const;
50 
51  SearchedObjectTypes getAlreadySearchedObjectTypes() const;
52 
53  void addAlreadySearchedObjectType(std::string newAlreadySearchedObjectType);
54 
55  void addAlreadySearchedObjectTypes(const SearchedObjectTypes &newAlreadySearchedObjectTypes);
56 
58 
59  PosePtr getCameraPosePtr() const;
60 
62 
63  void setRatedViewport(const asr_next_best_view::RatedViewport &newRatedViewport);
64 
65  asr_next_best_view::RatedViewport getRatedViewport() const;
66 
67 };
68 
70 typedef std::vector<PtuTuplePtr> PtuTuplePtrVec;
72 
73 std::ostream& operator<<(std::ostream &strm, const SearchedObjectTypes &already_searched_object_types);
74 std::ostream& operator<<(std::ostream &strm, const PosePtr &pose_ptr);
75 
76 std::ostream& operator<<(std::ostream &strm, const PtuTuple &ptu_tuple);
77 std::ostream& operator<<(std::ostream &strm, const PtuTuplePtr &ptu_tuple_ptr);
78 std::ostream& operator<<(std::ostream &strm, const PtuTuplePtrVec &ptu_tuple_ptr_vec);
79 std::ostream& operator<<(std::ostream &strm, const PtuTuplePtrVecPtr &ptu_tuple_ptr_vec_ptr);
80 
81 }
void resetAlreadySearchedObjectTypes()
Definition: ptu_tuple.cpp:63
boost::shared_ptr< geometry_msgs::Pose > PosePtr
Definition: ptu_tuple.hpp:28
PtuTuple(int pan, int tilt, PosePtr cameraPosePtr)
Definition: ptu_tuple.cpp:22
std::vector< std::string > SearchedObjectTypes
Definition: ptu_tuple.hpp:27
void addAlreadySearchedObjectType(std::string newAlreadySearchedObjectType)
Definition: ptu_tuple.cpp:51
boost::shared_ptr< PtuTuple > PtuTuplePtr
Definition: ptu_tuple.hpp:69
asr_next_best_view::RatedViewport getRatedViewport() const
Definition: ptu_tuple.cpp:79
std::ostream & operator<<(std::ostream &strm, const SearchedObjectTypes &already_searched_object_types)
Definition: ptu_tuple.cpp:88
std::vector< PtuTuplePtr > PtuTuplePtrVec
Definition: ptu_tuple.hpp:70
SearchedObjectTypes already_searched_object_types
Definition: ptu_tuple.hpp:37
int getDeactivatedObjectNormalsCount() const
Definition: ptu_tuple.cpp:71
SearchedObjectTypes getAlreadySearchedObjectTypes() const
Definition: ptu_tuple.cpp:47
void setRatedViewport(const asr_next_best_view::RatedViewport &newRatedViewport)
Definition: ptu_tuple.cpp:75
boost::shared_ptr< PtuTuplePtrVec > PtuTuplePtrVecPtr
Definition: ptu_tuple.hpp:71
asr_next_best_view::RatedViewport ratedViewport
Definition: ptu_tuple.hpp:38
PosePtr getCameraPosePtr() const
Definition: ptu_tuple.cpp:67
void addAlreadySearchedObjectTypes(const SearchedObjectTypes &newAlreadySearchedObjectTypes)
Definition: ptu_tuple.cpp:57


asr_direct_search_manager
Author(s): Borella Jocelyn, Karrenbauer Oliver, Mei├čner Pascal
autogenerated on Wed Jan 8 2020 03:15:41