Wrapper around the raw data generated by a sensor plus some useful meta-information. More...
#include <RawData.h>
Public Member Functions | |
auto | begin () noexcept |
Begin iterator to the data generated by the sensor. More... | |
auto | begin () const noexcept |
Begin iterator to the data generated by the sensor. More... | |
auto | data () noexcept |
Retrieve a pointer to the memory containing the data generated by the sensor. More... | |
auto | data () const noexcept |
Retrieve a pointer to the memory containing the data generated by the sensor. More... | |
auto | end () noexcept |
Past-the-end iterator to the data generated by the sensor. More... | |
auto | end () const noexcept |
Past-the-end iterator to the data generated by the sensor. More... | |
uint64_t | GetFrame () const |
Frame count when the data was generated. More... | |
const rpc::Transform & | GetSensorTransform () const |
Sensor's transform when the data was generated. More... | |
uint64_t | GetSensorTypeId () const |
Type-id of the sensor that generated the data. More... | |
double | GetTimestamp () const |
Timestamp when the data was generated. More... | |
size_t | size () const |
Size in bytes of the data generated by the sensor. More... | |
Private Types | |
using | HeaderSerializer = s11n::SensorHeaderSerializer |
Private Member Functions | |
const auto & | GetHeader () const |
RawData (Buffer &&buffer) | |
Private Attributes | |
Buffer | _buffer |
Friends | |
class | carla::ros2::ROS2 |
template<typename... Items> | |
class | CompositeSerializer |
Wrapper around the raw data generated by a sensor plus some useful meta-information.
|
private |
|
inlineprivate |
|
inlinenoexcept |
Begin iterator to the data generated by the sensor.
Definition at line 52 of file RawData.h.
References _buffer, carla::Buffer::begin(), and carla::sensor::s11n::SensorHeaderSerializer::header_offset.
Referenced by carla::sensor::data::Array< data::SemanticLidarDetection >::begin(), carla::sensor::data::Array< data::SemanticLidarDetection >::cbegin(), data(), carla::sensor::s11n::NormalsImageSerializer::DeserializeHeader(), carla::sensor::s11n::OpticalFlowImageSerializer::DeserializeHeader(), carla::sensor::s11n::ImageSerializer::DeserializeHeader(), carla::sensor::s11n::GBufferFloatSerializer::DeserializeHeader(), carla::sensor::s11n::GBufferUint8Serializer::DeserializeHeader(), carla::sensor::s11n::DVSEventArraySerializer::DeserializeHeader(), carla::sensor::s11n::EpisodeStateSerializer::DeserializeHeader(), carla::sensor::s11n::LidarSerializer::DeserializeHeader(), carla::sensor::s11n::SemanticLidarSerializer::DeserializeHeader(), carla::sensor::s11n::GnssSerializer::DeserializeRawData(), carla::sensor::s11n::ObstacleDetectionEventSerializer::DeserializeRawData(), carla::sensor::s11n::CollisionEventSerializer::DeserializeRawData(), carla::sensor::s11n::IMUSerializer::DeserializeRawData(), and size().
|
inlinenoexcept |
Begin iterator to the data generated by the sensor.
Definition at line 57 of file RawData.h.
References _buffer, carla::Buffer::begin(), and carla::sensor::s11n::SensorHeaderSerializer::header_offset.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Past-the-end iterator to the data generated by the sensor.
Definition at line 62 of file RawData.h.
References _buffer, and carla::Buffer::end().
Referenced by carla::sensor::data::Array< data::SemanticLidarDetection >::cend(), carla::sensor::data::Array< data::SemanticLidarDetection >::end(), and size().
|
inlinenoexcept |
Past-the-end iterator to the data generated by the sensor.
Definition at line 67 of file RawData.h.
References _buffer, and carla::Buffer::end().
|
inline |
Frame count when the data was generated.
Definition at line 37 of file RawData.h.
References GetHeader().
|
inlineprivate |
Definition at line 25 of file RawData.h.
References _buffer, and carla::sensor::s11n::SensorHeaderSerializer::Deserialize().
Referenced by GetFrame(), GetSensorTransform(), GetSensorTypeId(), and GetTimestamp().
|
inline |
Sensor's transform when the data was generated.
Definition at line 47 of file RawData.h.
References GetHeader().
|
inline |
Type-id of the sensor that generated the data.
Definition at line 32 of file RawData.h.
References GetHeader().
Referenced by carla::sensor::CompositeSerializer< Items >::Deserialize().
|
inline |
Timestamp when the data was generated.
Definition at line 42 of file RawData.h.
References GetHeader().
|
inline |
Size in bytes of the data generated by the sensor.
Definition at line 83 of file RawData.h.
References begin(), DEBUG_ASSERT, and end().
Referenced by carla::sensor::data::Array< data::SemanticLidarDetection >::Array(), carla::sensor::s11n::GnssSerializer::DeserializeRawData(), carla::sensor::s11n::ObstacleDetectionEventSerializer::DeserializeRawData(), carla::sensor::s11n::CollisionEventSerializer::DeserializeRawData(), and carla::sensor::s11n::IMUSerializer::DeserializeRawData().
|
friend |
|
friend |
|
private |
Definition at line 96 of file RawData.h.
Referenced by begin(), end(), and GetHeader().