OKVIS ROS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
testDataGenerators.hpp
Go to the documentation of this file.
1 #ifndef TEST_DATA_GENERATOR_HPP
2 #define TEST_DATA_GENERATOR_HPP
3 
7 
9 namespace okvis {
11  public:
13  okvis::cameras::NCameraSystem nCameraSystem;
14  for (int i = 0; i < num_cams; ++i) {
15  Eigen::Matrix4d T_SC_e;
16  T_SC_e << 1, 0, 0, i*0.01, // TODO(gohlp): does that make sense?
17  0, 1, 0, 0,
18  0, 0, 1, 0,
19  0, 0, 0, 0;
20  std::shared_ptr<const okvis::kinematics::Transformation> T_SC_ok_ptr(
22  nCameraSystem.addCamera(
23  T_SC_ok_ptr,
24  std::shared_ptr<const okvis::cameras::CameraBase>(
27  752,480,
28  615.14, 613.03,
29  378.27, 220.05,
31  -0.40675345816443564, 0.1685454248925922, -0.00046944024734783504,
32  0.00026638950478762756))),
34  }
35  return nCameraSystem;
36  }
37 };
38 }
39 
40 #endif// TEST_DATA_GENERATOR_HPP
Header file for the PinholeCamera class.
Header file for the NCameraSystem class.
Use with okvis::cameras::RadialTangentialDistortion.
Definition: NCameraSystem.hpp:70
void addCamera(std::shared_ptr< const okvis::kinematics::Transformation > T_SC, std::shared_ptr< const cameras::CameraBase > cameraGeometry, DistortionType distortionType, bool computeOverlaps=true)
Append with a single camera.
Definition: NCameraSystem.hpp:102
Header file for the RadialTangentialDistortion class.
Definition: PinholeCamera.hpp:64
A class that does homogeneous transformations. This relates a frame A and B: T_AB; it consists of tra...
Definition: Transformation.hpp:76
A class that assembles multiple cameras into a system of (potentially different) cameras.
Definition: NCameraSystem.hpp:61
static const okvis::cameras::NCameraSystem getTestCameraSystem(int num_cams)
Definition: testDataGenerators.hpp:12
Definition: RadialTangentialDistortion.hpp:51
Definition: testDataGenerators.hpp:10