MRPT  1.9.9
CMyntEyeCamera.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/config.h>
12 
13 #include <mrpt/core/pimpl.h>
15 #include <mrpt/img/TCamera.h>
17 
18 namespace mrpt::hwdrivers
19 {
20 /** Open parameters for CMyntEyeCamera
21  * \sa CMyntEyeCamera
22  * \ingroup mrpt_hwdrivers_grp
23  */
25 {
26  std::uint8_t ir_intensity = 4; //!< IR (Infrared), range [0,10], default 0.
27 
28  void loadFromConfigFile(
29  const mrpt::config::CConfigFileBase& source,
30  const std::string& section) override;
31 };
32 
33 /** Wrapper on MYNT-EYE-D cameras. Requires MYNT-EYE SDK.
34  *
35  * \sa mrpt::hwdrivers::CCameraSensor
36  * \sa The most generic camera grabber in MRPT: mrpt::hwdrivers::CCameraSensor
37  * \ingroup mrpt_hwdrivers_grp
38  */
40 {
41  public:
43  virtual ~CMyntEyeCamera();
44 
45  /** Check whether the camera has been open successfully. */
46  bool isOpen() const { return m_bInitialized; }
47 
48  /** Grab an image from the opened camera.
49  * \param out_observation The object to be filled with sensed data.
50  *
51  * \return false on any error, true if all go fine.
52  */
54 
55  protected:
56  /** Set to false if we could not initialize the camera.
57  */
58  bool m_bInitialized = false;
59 
60  struct Impl;
62 
64 
65 }; // End of class
66 
67 } // namespace mrpt::hwdrivers
bool m_bInitialized
Set to false if we could not initialize the camera.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
spimpl::impl_ptr< T > pimpl
Definition: pimpl.h:15
A range or depth 3D scan measurement, as from a time-of-flight range camera or a structured-light dep...
Contains classes for various device interfaces.
mrpt::vision::TStereoCalibParams params
CMyntEyeCamera(const TMyntEyeCameraParameters &params)
This class allows loading and storing values and vectors of different types from a configuration text...
bool getObservation(mrpt::obs::CObservation3DRangeScan &out)
Grab an image from the opened camera.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string &section) override
This method load the options from a ".ini"-like file or memory-stored string list.
bool isOpen() const
Check whether the camera has been open successfully.
Parameters for the Brown-Conrady camera lens distortion model.
Definition: TCamera.h:26
Open parameters for CMyntEyeCamera.
std::uint8_t ir_intensity
IR (Infrared), range [0,10], default 0.
mrpt::vision::TStereoCalibResults out
mrpt::img::TCamera m_intrinsics_right
mrpt::pimpl< Impl > m_capture
Wrapper on MYNT-EYE-D cameras.
mrpt::img::TCamera m_intrinsics_left



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020