|
Point Cloud Library (PCL) 1.15.1
|
#include <pcl/io/openni2/openni2_device.h>
Public Types | |
| using | Ptr = shared_ptr<OpenNI2Device> |
| using | ConstPtr = shared_ptr<const OpenNI2Device> |
| using | ImageCallbackFunction = std::function<void(Image::Ptr, void* cookie) > |
| using | DepthImageCallbackFunction = std::function<void(DepthImage::Ptr, void* cookie) > |
| using | IRImageCallbackFunction = std::function<void(IRImage::Ptr, void* cookie) > |
| using | CallbackHandle = unsigned |
| using | StreamCallbackFunction = std::function<void(openni::VideoStream& stream)> |
Public Member Functions | |
| OpenNI2Device (const std::string &device_URI) | |
| virtual | ~OpenNI2Device () |
| const std::string | getUri () const |
| const std::string | getVendor () const |
| const std::string | getName () const |
| std::uint16_t | getUsbVendorId () const |
| std::uint16_t | getUsbProductId () const |
| const std::string | getStringID () const |
| bool | isValid () const |
| bool | hasIRSensor () const |
| bool | hasColorSensor () const |
| bool | hasDepthSensor () const |
| void | startIRStream () |
| void | startColorStream () |
| void | startDepthStream () |
| void | stopAllStreams () |
| void | stopIRStream () |
| void | stopColorStream () |
| void | stopDepthStream () |
| bool | isIRStreamStarted () |
| bool | isColorStreamStarted () |
| bool | isDepthStreamStarted () |
| bool | isImageRegistrationModeSupported () const |
| void | setImageRegistrationMode (bool enabled) |
| bool | isDepthRegistered () const |
| const OpenNI2VideoMode | getIRVideoMode () |
| const OpenNI2VideoMode | getColorVideoMode () |
| const OpenNI2VideoMode | getDepthVideoMode () |
| const std::vector< OpenNI2VideoMode > & | getSupportedIRVideoModes () const |
| const std::vector< OpenNI2VideoMode > & | getSupportedColorVideoModes () const |
| const std::vector< OpenNI2VideoMode > & | getSupportedDepthVideoModes () const |
| bool | isIRVideoModeSupported (const OpenNI2VideoMode &video_mode) const |
| bool | isColorVideoModeSupported (const OpenNI2VideoMode &video_mode) const |
| bool | isDepthVideoModeSupported (const OpenNI2VideoMode &video_mode) const |
| bool | findCompatibleIRMode (const OpenNI2VideoMode &requested_mode, OpenNI2VideoMode &actual_mode) const |
| bool | findCompatibleColorMode (const OpenNI2VideoMode &requested_mode, OpenNI2VideoMode &actual_mode) const |
| bool | findCompatibleDepthMode (const OpenNI2VideoMode &requested_mode, OpenNI2VideoMode &actual_mode) const |
| void | setIRVideoMode (const OpenNI2VideoMode &video_mode) |
| void | setColorVideoMode (const OpenNI2VideoMode &video_mode) |
| void | setDepthVideoMode (const OpenNI2VideoMode &video_mode) |
| OpenNI2VideoMode | getDefaultIRMode () const |
| OpenNI2VideoMode | getDefaultColorMode () const |
| OpenNI2VideoMode | getDefaultDepthMode () const |
| float | getIRFocalLength () const |
| float | getColorFocalLength () const |
| float | getDepthFocalLength () const |
| float | getBaseline () |
| std::uint64_t | getShadowValue () |
| void | setAutoExposure (bool enable) |
| void | setAutoWhiteBalance (bool enable) |
| bool | isSynchronized () |
| bool | isSynchronizationSupported () |
| bool | isFile () |
| void | setSynchronization (bool enableSync) |
| bool | getAutoExposure () const |
| bool | getAutoWhiteBalance () const |
| void | setUseDeviceTimer (bool enable) |
| int | getDepthFrameCount () |
| Get absolute number of depth frames in the current stream. | |
| int | getColorFrameCount () |
| Get absolute number of color frames in the current stream. | |
| int | getIRFrameCount () |
| Get absolute number of ir frames in the current stream. | |
| bool | setPlaybackSpeed (double speed) |
| Set the playback speed if the device is an recorded stream. | |
| void | setColorCallback (StreamCallbackFunction color_callback) |
| void | setDepthCallback (StreamCallbackFunction depth_callback) |
| void | setIRCallback (StreamCallbackFunction ir_callback) |
Protected Member Functions | |
| void | shutdown () |
| std::shared_ptr< openni::VideoStream > | getIRVideoStream () const |
| std::shared_ptr< openni::VideoStream > | getColorVideoStream () const |
| std::shared_ptr< openni::VideoStream > | getDepthVideoStream () const |
| void | processColorFrame (openni::VideoStream &stream) |
| void | processDepthFrame (openni::VideoStream &stream) |
| void | processIRFrame (openni::VideoStream &stream) |
| bool | findCompatibleVideoMode (const std::vector< OpenNI2VideoMode > &supportedModes, const OpenNI2VideoMode &output_mode, OpenNI2VideoMode &mode) const |
| bool | resizingSupported (std::size_t input_width, std::size_t input_height, std::size_t output_width, std::size_t output_height) const |
Protected Attributes | |
| std::shared_ptr< openni::Device > | openni_device_ |
| std::shared_ptr< openni::DeviceInfo > | device_info_ |
| std::shared_ptr< OpenNI2FrameListener > | ir_frame_listener |
| std::shared_ptr< OpenNI2FrameListener > | color_frame_listener |
| std::shared_ptr< OpenNI2FrameListener > | depth_frame_listener |
| std::shared_ptr< openni::VideoStream > | ir_video_stream_ |
| std::shared_ptr< openni::VideoStream > | color_video_stream_ |
| std::shared_ptr< openni::VideoStream > | depth_video_stream_ |
| std::vector< OpenNI2VideoMode > | ir_video_modes_ |
| std::vector< OpenNI2VideoMode > | color_video_modes_ |
| std::vector< OpenNI2VideoMode > | depth_video_modes_ |
| bool | ir_video_started_ {false} |
| bool | color_video_started_ {false} |
| bool | depth_video_started_ {false} |
| float | baseline_ {0.0f} |
| distance between the projector and the IR camera in meters | |
| std::uint64_t | shadow_value_ {0} |
| the value for shadow (occluded pixels) | |
| std::uint64_t | no_sample_value_ {0} |
| the value for pixels without a valid disparity measurement | |
Definition at line 73 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::CallbackHandle = unsigned |
Definition at line 82 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::ConstPtr = shared_ptr<const OpenNI2Device> |
Definition at line 77 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::DepthImageCallbackFunction = std::function<void(DepthImage::Ptr, void* cookie) > |
Definition at line 80 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::ImageCallbackFunction = std::function<void(Image::Ptr, void* cookie) > |
Definition at line 79 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::IRImageCallbackFunction = std::function<void(IRImage::Ptr, void* cookie) > |
Definition at line 81 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::Ptr = shared_ptr<OpenNI2Device> |
Definition at line 76 of file openni2_device.h.
| using pcl::io::openni2::OpenNI2Device::StreamCallbackFunction = std::function<void(openni::VideoStream& stream)> |
Definition at line 84 of file openni2_device.h.
| pcl::io::openni2::OpenNI2Device::OpenNI2Device | ( | const std::string & | device_URI | ) |
|
virtual |
| bool pcl::io::openni2::OpenNI2Device::findCompatibleColorMode | ( | const OpenNI2VideoMode & | requested_mode, |
| OpenNI2VideoMode & | actual_mode ) const |
| bool pcl::io::openni2::OpenNI2Device::findCompatibleDepthMode | ( | const OpenNI2VideoMode & | requested_mode, |
| OpenNI2VideoMode & | actual_mode ) const |
| bool pcl::io::openni2::OpenNI2Device::findCompatibleIRMode | ( | const OpenNI2VideoMode & | requested_mode, |
| OpenNI2VideoMode & | actual_mode ) const |
|
protected |
| bool pcl::io::openni2::OpenNI2Device::getAutoExposure | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::getAutoWhiteBalance | ( | ) | const |
| float pcl::io::openni2::OpenNI2Device::getBaseline | ( | ) |
| float pcl::io::openni2::OpenNI2Device::getColorFocalLength | ( | ) | const |
| int pcl::io::openni2::OpenNI2Device::getColorFrameCount | ( | ) |
Get absolute number of color frames in the current stream.
This function returns 0 if the current device is not a file stream or if the current mode has no color stream.
| const OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getColorVideoMode | ( | ) |
|
protected |
| OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getDefaultColorMode | ( | ) | const |
| OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getDefaultDepthMode | ( | ) | const |
| OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getDefaultIRMode | ( | ) | const |
| float pcl::io::openni2::OpenNI2Device::getDepthFocalLength | ( | ) | const |
| int pcl::io::openni2::OpenNI2Device::getDepthFrameCount | ( | ) |
Get absolute number of depth frames in the current stream.
This function returns 0 if the current device is not a file stream or if the current mode has no depth stream.
| const OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getDepthVideoMode | ( | ) |
|
protected |
| float pcl::io::openni2::OpenNI2Device::getIRFocalLength | ( | ) | const |
| int pcl::io::openni2::OpenNI2Device::getIRFrameCount | ( | ) |
Get absolute number of ir frames in the current stream.
This function returns 0 if the current device is not a file stream or if the current mode has no ir stream.
| const OpenNI2VideoMode pcl::io::openni2::OpenNI2Device::getIRVideoMode | ( | ) |
|
protected |
| const std::string pcl::io::openni2::OpenNI2Device::getName | ( | ) | const |
| std::uint64_t pcl::io::openni2::OpenNI2Device::getShadowValue | ( | ) |
| const std::string pcl::io::openni2::OpenNI2Device::getStringID | ( | ) | const |
| const std::vector< OpenNI2VideoMode > & pcl::io::openni2::OpenNI2Device::getSupportedColorVideoModes | ( | ) | const |
| const std::vector< OpenNI2VideoMode > & pcl::io::openni2::OpenNI2Device::getSupportedDepthVideoModes | ( | ) | const |
| const std::vector< OpenNI2VideoMode > & pcl::io::openni2::OpenNI2Device::getSupportedIRVideoModes | ( | ) | const |
| const std::string pcl::io::openni2::OpenNI2Device::getUri | ( | ) | const |
| std::uint16_t pcl::io::openni2::OpenNI2Device::getUsbProductId | ( | ) | const |
| std::uint16_t pcl::io::openni2::OpenNI2Device::getUsbVendorId | ( | ) | const |
| const std::string pcl::io::openni2::OpenNI2Device::getVendor | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::hasColorSensor | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::hasDepthSensor | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::hasIRSensor | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::isColorStreamStarted | ( | ) |
| bool pcl::io::openni2::OpenNI2Device::isColorVideoModeSupported | ( | const OpenNI2VideoMode & | video_mode | ) | const |
| bool pcl::io::openni2::OpenNI2Device::isDepthRegistered | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::isDepthStreamStarted | ( | ) |
| bool pcl::io::openni2::OpenNI2Device::isDepthVideoModeSupported | ( | const OpenNI2VideoMode & | video_mode | ) | const |
|
inline |
Definition at line 219 of file openni2_device.h.
References openni_device_.
| bool pcl::io::openni2::OpenNI2Device::isImageRegistrationModeSupported | ( | ) | const |
| bool pcl::io::openni2::OpenNI2Device::isIRStreamStarted | ( | ) |
| bool pcl::io::openni2::OpenNI2Device::isIRVideoModeSupported | ( | const OpenNI2VideoMode & | video_mode | ) | const |
|
inline |
Definition at line 213 of file openni2_device.h.
|
inline |
Definition at line 207 of file openni2_device.h.
References openni_device_.
| bool pcl::io::openni2::OpenNI2Device::isValid | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
| void pcl::io::openni2::OpenNI2Device::setAutoExposure | ( | bool | enable | ) |
| void pcl::io::openni2::OpenNI2Device::setAutoWhiteBalance | ( | bool | enable | ) |
| void pcl::io::openni2::OpenNI2Device::setColorCallback | ( | StreamCallbackFunction | color_callback | ) |
| void pcl::io::openni2::OpenNI2Device::setColorVideoMode | ( | const OpenNI2VideoMode & | video_mode | ) |
| void pcl::io::openni2::OpenNI2Device::setDepthCallback | ( | StreamCallbackFunction | depth_callback | ) |
| void pcl::io::openni2::OpenNI2Device::setDepthVideoMode | ( | const OpenNI2VideoMode & | video_mode | ) |
| void pcl::io::openni2::OpenNI2Device::setImageRegistrationMode | ( | bool | enabled | ) |
| void pcl::io::openni2::OpenNI2Device::setIRCallback | ( | StreamCallbackFunction | ir_callback | ) |
| void pcl::io::openni2::OpenNI2Device::setIRVideoMode | ( | const OpenNI2VideoMode & | video_mode | ) |
| bool pcl::io::openni2::OpenNI2Device::setPlaybackSpeed | ( | double | speed | ) |
Set the playback speed if the device is an recorded stream.
If setting the device playback speed fails, because the device is no recorded stream or any other reason this function returns false. Otherwise true is returned.
| [in] | speed | The playback speed factor 1.0 means the same speed as recorded, 0.5 half the speed, 2.0 double speed and so on. |
| void pcl::io::openni2::OpenNI2Device::setSynchronization | ( | bool | enableSync | ) |
| void pcl::io::openni2::OpenNI2Device::setUseDeviceTimer | ( | bool | enable | ) |
|
protected |
| void pcl::io::openni2::OpenNI2Device::startColorStream | ( | ) |
| void pcl::io::openni2::OpenNI2Device::startDepthStream | ( | ) |
| void pcl::io::openni2::OpenNI2Device::startIRStream | ( | ) |
| void pcl::io::openni2::OpenNI2Device::stopAllStreams | ( | ) |
| void pcl::io::openni2::OpenNI2Device::stopColorStream | ( | ) |
| void pcl::io::openni2::OpenNI2Device::stopDepthStream | ( | ) |
| void pcl::io::openni2::OpenNI2Device::stopIRStream | ( | ) |
|
protected |
distance between the projector and the IR camera in meters
Definition at line 323 of file openni2_device.h.
|
protected |
Definition at line 307 of file openni2_device.h.
|
mutableprotected |
Definition at line 315 of file openni2_device.h.
|
protected |
Definition at line 319 of file openni2_device.h.
|
mutableprotected |
Definition at line 311 of file openni2_device.h.
|
protected |
Definition at line 308 of file openni2_device.h.
|
mutableprotected |
Definition at line 316 of file openni2_device.h.
|
protected |
Definition at line 320 of file openni2_device.h.
|
mutableprotected |
Definition at line 312 of file openni2_device.h.
|
protected |
Definition at line 304 of file openni2_device.h.
|
protected |
Definition at line 306 of file openni2_device.h.
|
mutableprotected |
Definition at line 314 of file openni2_device.h.
|
protected |
Definition at line 318 of file openni2_device.h.
|
mutableprotected |
Definition at line 310 of file openni2_device.h.
|
protected |
the value for pixels without a valid disparity measurement
Definition at line 327 of file openni2_device.h.
|
protected |
Definition at line 303 of file openni2_device.h.
Referenced by isFile(), and isSynchronized().
|
protected |
the value for shadow (occluded pixels)
Definition at line 325 of file openni2_device.h.