Go to the documentation of this file.
9 #ifndef mrpt_COpenNI2Sensor_H
10 #define mrpt_COpenNI2Sensor_H
188 virtual void initialize();
196 virtual void doProcess();
205 void getNextObservation(
208 bool &hardware_error);
214 virtual void setPathForExternalImages(
const std::string &directory );
224 inline size_t getRowCount()
const {
return m_cameraParamsRGB.nrows; }
226 inline size_t getColCount()
const {
return m_cameraParamsRGB.ncols; }
256 virtual void loadConfig_sensorSpecific(
258 const std::string §ion );
mrpt::utils::TCamera m_cameraParamsDepth
Params for the Depth camera.
bool isGrabRGBEnabled() const
bool isGrab3DPointsEnabled() const
size_t getColCount() const
Get the col count in the camera images, loaded automatically upon camera open().
An abstract class for accessing OpenNI2 compatible sensors.
const mrpt::utils::TCamera & getCameraParamsIntensity() const
Get a const reference to the depth camera calibration parameters.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::utils::TCamera m_cameraParamsRGB
Params for the RGB camera.
void setSerialToOpen(const unsigned serial)
Set the serial number of the device to open.
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
const mrpt::poses::CPose3D & getRelativePoseIntensityWrtDepth() const
bool isGrabDepthEnabled() const
void enableGrabRGB(bool enable=true)
Enable/disable the grabbing of the RGB channel.
size_t m_preview_decim_counter_rgb
size_t getRowCount() const
Get the row count in the camera images, loaded automatically upon camera open().
mrpt::poses::CPose3D m_sensorPoseOnRobot
double getMaxRange() const
Get the maximum range (meters) that can be read in the observation field "rangeImage".
int m_serial_number
Serial number of device to open.
Declares a class derived from "CObservation" that encapsules a 3D range scan measurement,...
void setSensorIDToOpen(const unsigned sensor_id)
Set the sensor_id of the device to open.
This class allows loading and storing values and vectors of different types from a configuration text...
double m_maxRange
Sensor max range (meters)
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
mrpt::poses::CPose3D m_relativePoseIntensityWRTDepth
See mrpt::obs::CObservation3DRangeScan for a diagram of this pose.
void enableGrab3DPoints(bool enable=true)
Enable/disable the grabbing of the 3D point clouds.
mrpt::gui::CDisplayWindowPtr m_win_range
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
int m_user_device_number
Number of device to open (0:first,...)
Structure to hold the parameters of a pinhole camera model.
void setRelativePoseIntensityWrtDepth(const mrpt::poses::CPose3D &p)
Set the pose of the intensity camera wrt the depth camera.
size_t m_preview_window_decimation
If preview is enabled, only show 1 out of N images.
const mrpt::utils::TCamera & getCameraParamsDepth() const
Get a const reference to the depth camera calibration parameters.
bool m_preview_window
Show preview window while grabbing.
void enableGrabDepth(bool enable=true)
Enable/disable the grabbing of the depth channel.
void setCameraParamsIntensity(const mrpt::utils::TCamera &p)
A class for grabing "range images", intensity images (either RGB or IR) and other information from an...
void setCameraParamsDepth(const mrpt::utils::TCamera &p)
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 23:08:25 UTC 2019 | | |