rgbd
image_header.h
Go to the documentation of this file.
1 #ifndef RGBD_IMAGE_HEADER_H_
2 #define RGBD_IMAGE_HEADER_H_
3 
4 #include <stdint.h>
5 
6 #include <boost/interprocess/sync/interprocess_mutex.hpp>
7 #include <boost/interprocess/sync/interprocess_condition.hpp>
8 
9 namespace rgbd
10 {
11 
13 {
14  uint64_t sequence_nr; // sequence number of the image (can be used to check if there is a new image)
15 
16  //Mutex to protect access to the queue
17  boost::interprocess::interprocess_mutex mutex;
18 
19  //Condition to wait when the queue is empty
20  boost::interprocess::interprocess_condition cond_empty;
21 
22  //Condition to wait when the queue is full
23  boost::interprocess::interprocess_condition cond_full;
24 
25  // cv uses int, using the same variable types
26  int rgb_width; // width of rgb image
27  int rgb_height; // height of rgb image
28  int depth_width; // width of depth image
29  int depth_height; // height of depth image
30 
31  // CameraInfo
32  // CameraInfo/header
33  double timestamp;
34  char frame_id[1000];
35  // CameraInfo main
37  char distortion_model[1000];
38  size_t size_D; // Max 5
39  double D[5], K[9], R[9], P[12]; // D limited to 5, https://www.ros.org/reps/rep-0104.html#alternate-distortion-models
40  // CameraInfo/roi
43 };
44 
45 } // end namespace rgbd
46 
47 #endif // RGBD_IMAGE_HEADER_H_
rgbd::BufferHeader::depth_width
int depth_width
Definition: image_header.h:28
rgbd::BufferHeader::frame_id
char frame_id[1000]
Definition: image_header.h:34
rgbd::BufferHeader::rgb_height
int rgb_height
Definition: image_header.h:27
rgbd::BufferHeader::roi_width
uint32_t roi_width
Definition: image_header.h:41
rgbd::BufferHeader::roi_height
uint32_t roi_height
Definition: image_header.h:41
rgbd::BufferHeader::D
double D[5]
Definition: image_header.h:39
rgbd::BufferHeader::rgb_width
int rgb_width
Definition: image_header.h:26
rgbd::BufferHeader
Definition: image_header.h:12
rgbd::BufferHeader::timestamp
double timestamp
Definition: image_header.h:33
rgbd::BufferHeader::depth_height
int depth_height
Definition: image_header.h:29
rgbd::BufferHeader::binning_y
uint32_t binning_y
Definition: image_header.h:36
rgbd::BufferHeader::distortion_model
char distortion_model[1000]
Definition: image_header.h:37
rgbd::BufferHeader::mutex
boost::interprocess::interprocess_mutex mutex
Definition: image_header.h:17
rgbd::BufferHeader::roi_x_offset
uint32_t roi_x_offset
Definition: image_header.h:41
rgbd::BufferHeader::roi_do_rectify
bool roi_do_rectify
Definition: image_header.h:42
rgbd
Definition: client.h:24
rgbd::BufferHeader::height
uint32_t height
Definition: image_header.h:36
rgbd::BufferHeader::P
double P[12]
Definition: image_header.h:39
rgbd::BufferHeader::K
double K[9]
Definition: image_header.h:39
rgbd::BufferHeader::R
double R[9]
Definition: image_header.h:39
rgbd::BufferHeader::roi_y_offset
uint32_t roi_y_offset
Definition: image_header.h:41
rgbd::BufferHeader::binning_x
uint32_t binning_x
Definition: image_header.h:36
rgbd::BufferHeader::size_D
size_t size_D
Definition: image_header.h:38
rgbd::BufferHeader::cond_empty
boost::interprocess::interprocess_condition cond_empty
Definition: image_header.h:20
rgbd::BufferHeader::sequence_nr
uint64_t sequence_nr
Definition: image_header.h:14
rgbd::BufferHeader::cond_full
boost::interprocess::interprocess_condition cond_full
Definition: image_header.h:23
rgbd::BufferHeader::width
uint32_t width
Definition: image_header.h:36