Visual Servoing Platform  version 3.6.1 under development (2025-01-11)
vpRBInitializationHelper.h
1 #ifndef VP_RB_INITIALIZATION_HELPER_H
2 #define VP_RB_INITIALIZATION_HELPER_H
3 
4 #include <visp3/core/vpConfig.h>
5 #include <visp3/core/vpHomogeneousMatrix.h>
6 #include <visp3/core/vpCameraParameters.h>
7 
8 #include <string>
9 #include <iostream>
10 
11 
12 BEGIN_VISP_NAMESPACE
13 template <typename T>
14 class vpImage;
15 
21 class VISP_EXPORT vpRBInitializationHelper
22 {
23 public:
24  void removeComment(std::ifstream &fileId);
25  void savePose(const std::string &filename) const;
26 
27  vpHomogeneousMatrix getPose() const { return m_cMo; }
28 
29  void setCameraParameters(const vpCameraParameters &cam) { m_cam = cam; }
30 
31 #ifdef VISP_HAVE_MODULE_GUI
32  template <typename T>
33  void initClick(const vpImage<T> &I, const std::string &initFile, bool displayHelp);
34 
35 #endif
36 
37 private:
38  std::string m_poseSavingFileName;
39 
40  vpHomogeneousMatrix m_cMo;
41  vpCameraParameters m_cam;
42 };
43 
44 END_VISP_NAMESPACE
45 
46 #endif
Generic class defining intrinsic camera parameters.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Definition of the vpImage class member functions.
Definition: vpImage.h:131
A set of utilities to perform initialization.
vpHomogeneousMatrix getPose() const
void setCameraParameters(const vpCameraParameters &cam)