CameraModelFilter.hpp
Go to the documentation of this file.
1 
20 #ifndef CAMERAMODELFILTER_HPP_
21 #define CAMERAMODELFILTER_HPP_
22 
24 #include <visualization_msgs/MarkerArray.h>
25 
26 namespace next_best_view {
27  namespace viz = visualization_msgs;
28 
37  private:
42 
46  double mFOVX;
47 
51  double mFOVY;
52 
56  double mNcp;
57 
61  double mFcp;
62 
67 
72  // TODO different recognizerCosts for different objects
77  public:
78  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
79  public:
84 
88  virtual ~CameraModelFilter() = 0;
89 
96  virtual viz::MarkerArrayPtr getVisualizationMarkerArray(uint32_t &sequence, double lifetime = 30.0) = 0;
97 
102  virtual void setRecognizerCosts(float recognizerCosts, std::string objectType);
103 
108  virtual float getRecognizerCosts(std::string objectType);
109 
113  inline bool haveParametersChanged() {
114  return mParametersChanged;
115  }
116 
120  inline void setParametersChanged(bool value) {
121  mParametersChanged = value;
122  }
123 
129  void setPivotPointPose(const SimpleVector3 &position, const SimpleQuaternion &orientation);
130 
135  void setPivotPointPosition(const SimpleVector3 &position);
136 
141 
146  void setOrientation(const SimpleQuaternion &orientation);
147 
152  protected:
158  static SimpleMatrix4 getCameraPoseMatrix(const SimpleVector3 &position, const SimpleQuaternion &orientation);
159  public:
164  void setHorizontalFOV(double fovDegrees);
165 
169  double getHorizontalFOV();
170 
175  void setVerticalFOV(double fovDegrees);
176 
180  double getVerticalFOV();
181 
186  void setNearClippingPlane(double ncp);
187 
191  double getNearClippingPlane();
192 
197  void setFarClippingPlane(double fcp);
198 
202  double getFarClippingPlane();
203  };
204 
209 }
210 
211 
212 #endif /* CAMERAMODELFILTER_HPP_ */
void setOrientation(const SimpleQuaternion &orientation)
sets the orientation of the pivot point
void setPivotPointPosition(const SimpleVector3 &position)
sets the position of the pivot point.
bool mParametersChanged
marks if the parameters changed.
void setFarClippingPlane(double fcp)
sets the far clipping plane. fcp the far clipping distance
double mFOVX
the horizontal field of view.
Eigen::Matrix< Precision, 3, 1 > SimpleVector3
Definition: typedef.hpp:53
void setNearClippingPlane(double ncp)
sets the near clipping plane.
virtual viz::MarkerArrayPtr getVisualizationMarkerArray(uint32_t &sequence, double lifetime=30.0)=0
returns a array of markers containing the visualization of the camera frustum.
static SimpleMatrix4 getCameraPoseMatrix(const SimpleVector3 &position, const SimpleQuaternion &orientation)
convenience function to get a camera pose matrix.
SimpleQuaternion mPivotPointOrientation
the orientation of the pivot point.
SimpleVector3 mPivotPointPosition
the position of the pivot point.
double mNcp
the near clipping distance.
this namespace contains all generally usable classes.
void setPivotPointPose(const SimpleVector3 &position, const SimpleQuaternion &orientation)
sets the pose of the pivot point.
CameraModelFilter()
constructs a new camera model filter.
CameraModelFilter class was built to generalize the filtering for different camera models...
double mFcp
the far clipping distance.
virtual ~CameraModelFilter()=0
destructs the camera model filter.
boost::shared_ptr< CameraModelFilter > CameraModelFilterPtr
Definition for the shared pointer type of the class.
Eigen::Matrix< Precision, 4, 4 > SimpleMatrix4
Definition: typedef.hpp:41
double mFOVY
the vertical field of view.
Eigen::Quaternion< Precision > SimpleQuaternion
Definition: typedef.hpp:67
virtual void setRecognizerCosts(float recognizerCosts, std::string objectType)
void setVerticalFOV(double fovDegrees)
sets the vertical field of view.
virtual float getRecognizerCosts(std::string objectType)
void setHorizontalFOV(double fovDegrees)
sets the horizontal field of view.
float recognizerCosts
The time it takes to recognize an object (in seconds)


asr_next_best_view
Author(s): Aumann Florian, Borella Jocelyn, Heller Florian, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Stroh Daniel, Trautmann Jeremias, Walter Milena, Wittenbeck Valerij
autogenerated on Thu Jan 9 2020 07:20:18