Go to the documentation of this file. 1 #ifndef RGBD_CLIENT_SHM_H_
2 #define RGBD_CLIENT_SHM_H_
4 #include <boost/interprocess/shared_memory_object.hpp>
5 #include <boost/interprocess/mapped_region.hpp>
72 boost::interprocess::shared_memory_object
shm_;
92 #endif // RGBD_CLIENT_SHM_H_
bool initialized()
Check if the client is initialized. nextImage shouldn't be called if client is not initialized.
BufferHeader * buffer_header_
uint64_t depth_data_size_
boost::interprocess::mapped_region mem_buffer_header_
boost::interprocess::mapped_region mem_image_
bool initialize(const std::string &server_name, float timeout=5.0)
Initialize shared memory client.
uint64_t sequence_nr_
sequence_nr Contains the sequence nummer of the last NextImage call
bool deinitialize()
Clears all the shared memory classes to nullptrs or empty classes. initialized will now return false.
ImagePtr nextImage()
Get a new Image. If no new image has been received, the sequence nummer is still the same as the prev...
unsigned char * image_data_
boost::interprocess::shared_memory_object shm_
Client which uses shared memory, requires a server on the same machine.