Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lvr2::KinectGrabber Class Reference

#include <KinectGrabber.hpp>

Inheritance diagram for lvr2::KinectGrabber:
Inheritance graph
[legend]

Public Member Functions

void getColorImage (std::vector< uint8_t > &img)
 
void getDepthImage (std::vector< short > &img)
 Returns the currently present point cloud data. More...
 
 KinectGrabber (freenect_context *_ctx, int _index)
 
virtual ~KinectGrabber ()
 

Protected Member Functions

virtual void DepthCallback (void *data, uint32_t timestamp)
 
virtual void VideoCallback (void *data, uint32_t timestamp)
 

Protected Attributes

PointBufferPtr m_buffer
 PointBufferPtr with current data. More...
 
std::vector< uint8_t > m_colorImage
 The raw color image. More...
 
boost::mutex m_colorMutex
 Mutex for save color buffer access. More...
 
std::vector< short > m_depthImage
 The raw depth image. More...
 
boost::mutex m_depthMutex
 Mutex for save depth buffer access. More...
 
bool m_haveData
 

Detailed Description

Definition at line 47 of file KinectGrabber.hpp.

Constructor & Destructor Documentation

◆ KinectGrabber()

lvr2::KinectGrabber::KinectGrabber ( freenect_context *  _ctx,
int  _index 
)

Definition at line 45 of file KinectGrabber.cpp.

◆ ~KinectGrabber()

lvr2::KinectGrabber::~KinectGrabber ( )
virtual

Definition at line 99 of file KinectGrabber.cpp.

Member Function Documentation

◆ DepthCallback()

void lvr2::KinectGrabber::DepthCallback ( void *  data,
uint32_t  timestamp 
)
protectedvirtual

Definition at line 87 of file KinectGrabber.cpp.

◆ getColorImage()

void lvr2::KinectGrabber::getColorImage ( std::vector< uint8_t > &  img)

Definition at line 79 of file KinectGrabber.cpp.

◆ getDepthImage()

void lvr2::KinectGrabber::getDepthImage ( std::vector< short > &  img)

Returns the currently present point cloud data.

Definition at line 63 of file KinectGrabber.cpp.

◆ VideoCallback()

void lvr2::KinectGrabber::VideoCallback ( void *  data,
uint32_t  timestamp 
)
protectedvirtual

Definition at line 54 of file KinectGrabber.cpp.

Member Data Documentation

◆ m_buffer

PointBufferPtr lvr2::KinectGrabber::m_buffer
protected

PointBufferPtr with current data.

Definition at line 62 of file KinectGrabber.hpp.

◆ m_colorImage

std::vector<uint8_t> lvr2::KinectGrabber::m_colorImage
protected

The raw color image.

Definition at line 74 of file KinectGrabber.hpp.

◆ m_colorMutex

boost::mutex lvr2::KinectGrabber::m_colorMutex
protected

Mutex for save color buffer access.

Definition at line 68 of file KinectGrabber.hpp.

◆ m_depthImage

std::vector<short> lvr2::KinectGrabber::m_depthImage
protected

The raw depth image.

Definition at line 71 of file KinectGrabber.hpp.

◆ m_depthMutex

boost::mutex lvr2::KinectGrabber::m_depthMutex
protected

Mutex for save depth buffer access.

Definition at line 65 of file KinectGrabber.hpp.

◆ m_haveData

bool lvr2::KinectGrabber::m_haveData
protected

Definition at line 76 of file KinectGrabber.hpp.


The documentation for this class was generated from the following files:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:11