Go to the documentation of this file.
9 #include <compressed_depth_image_transport/rvl_codec.h>
10 #include <boost/chrono.hpp>
11 #include <boost/thread/thread.hpp>
47 if (inframe ==
nullptr)
50 boost::this_thread::sleep_for(boost::chrono::milliseconds(2));
71 if (new_frame !=
nullptr)
105 std::cout <<
"Overwrite buffer" << std::endl;
110 last_node = new_frame;
115 boost::this_thread::sleep_for(boost::chrono::milliseconds(2));
121 while (queue_size > 0)
unsigned short * getDepthFrame() const
Get the depth image frame.
void readInputAbort()
Function to read Abort flag, this function will be called by the main function to exit the thread.
ros::Time * getFrameTimestampPtr()
Get Frame Timestamp Pointer.
This is the class for adtf31xx sensor frame.
bool read_input_thread_abort_
#define PROFILE_FUNCTION_END(ID)
bool error_in_frame_read_
IInputSensor * input_sensor_
short * getXYZFrame() const
Get point cloud frame.
boost::mutex input_thread_mtx_
ADI3DToFADTF31xxFrameInfo * adtf31xxSensorGetNextFrame()
Function to read the next frame from the input Queue.
std::queue< ADI3DToFADTF31xxFrameInfo * > input_frames_queue_
void readInput()
This function reads the frmae from the sensor. This runs in a loop, reading the frames and adding the...
#define PROFILE_FUNCTION_START(ID)
int max_input_queue_length_
unsigned short * getConfFrame() const
Get Confidence frame.
unsigned short * getABFrame() const
Get the AB image frame.