(self, image, tag)
| 157 | |
| 158 | # Parsing CARLA physical Sensors |
| 159 | def _parse_image_cb(self, image, tag): |
| 160 | array = np.frombuffer(image.raw_data, dtype=np.dtype("uint8")) |
| 161 | array = copy.deepcopy(array) |
| 162 | array = np.reshape(array, (image.height, image.width, 4)) |
| 163 | self._data_provider.update_sensor(tag, array, image.frame) |
| 164 | |
| 165 | def _parse_lidar_cb(self, lidar_data, tag): |
| 166 | points = np.frombuffer(lidar_data.raw_data, dtype=np.dtype('f4')) |