31 : m_points3D_external_stored(false),
32 m_rangeImage_external_stored(false),
36 hasIntensityImage(false),
49 CObservationRGBD360::~CObservationRGBD360()
51 #ifdef COBS3DRANGE_USE_MEMPOOL
57 uint8_t CObservationRGBD360::serializeGetVersion()
const {
return 0; }
61 out << maxRange << sensorPose;
78 for (
unsigned i = 0; i < NUM_SENSORS; i++) out << rangeImages[i];
79 out << hasIntensityImage;
80 if (hasIntensityImage)
81 for (
unsigned i = 0; i < NUM_SENSORS; i++) out << intensityImages[i];
84 for (
unsigned i = 0; i < NUM_SENSORS; i++) out << timestamps[i];
90 out << m_points3D_external_stored << m_points3D_external_file;
91 out << m_rangeImage_external_stored << m_rangeImage_external_file;
94 void CObservationRGBD360::serializeFrom(
101 in >> maxRange >> sensorPose;
104 for (
unsigned i = 0; i < NUM_SENSORS; i++)
106 #ifdef COBS3DRANGE_USE_MEMPOOL
109 this->rangeImage_setSize(240, 320, i);
111 in >> rangeImages[i];
114 in >> hasIntensityImage;
115 if (hasIntensityImage)
116 for (
unsigned i = 0; i < NUM_SENSORS; i++)
117 in >> intensityImages[i];
125 for (
unsigned i = 0; i < NUM_SENSORS; i++) in >> timestamps[i];
130 in >> m_points3D_external_stored >> m_points3D_external_file;
131 in >> m_rangeImage_external_stored >> m_rangeImage_external_file;
141 void CObservationRGBD360::rangeImage_setSize(
142 const int H,
const int W,
const unsigned sensor_id)
144 #ifdef COBS3DRANGE_USE_MEMPOOL
149 CObservationRGBD360_Ranges_MemPoolParams mem_params;
153 CObservationRGBD360_Ranges_MemPoolData* mem_block =
158 rangeImage.swap(mem_block->rangeImage);
166 rangeImages[sensor_id].setSize(H, W);
169 void CObservationRGBD360::getDescriptionAsText(std::ostream& o)
const
171 CObservation::getDescriptionAsText(o);