40 namespace data_processing {
49 const std::shared_ptr<std::vector<uint8_t>
const> vec_ptr = buffer.
getBuffer();
50 std::vector<uint8_t>::const_iterator data_ptr = vec_ptr->begin();
77 if (byte ==
'R' || byte ==
'Y')
91 if (field_type == 4 || field_type == 14)
95 else if (field_type == 5 || field_type == 15)
164 for (uint8_t i = 0; i < name_length; i++)
void setNameLength(const uint32_t &name_length)
Sets the length of the field name.
void setMultiSampling(const uint16_t &multi_sampling)
Sets the configured multiple sampling of the field.
void setEvalMethod(const uint8_t &eval_method)
Sets the configured eval method.
void setVersionReleaseNumber(const uint8_t &version_release_number)
Sets the version release number for the scanner.
void setIsValid(bool is_valid)
Sets if the field data is valid.
A packetbuffer for the raw data from the sensor.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
void setIsDefined(bool is_defined)
Sets if the field data is defined.
Field data for warning and protective fields.
void setVersionCVersion(const std::string &version_c_version)
Sets the version indicator for the scanner.
void setIsProtectiveField(bool is_protective_field)
Set if a field is protective field.
uint32_t readUint32LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 32-bit integer at offset in little endian encoding.
void setObjectResolution(const uint16_t &object_resolution)
Sets the configured object resolution.
void setIsWarningField(bool is_warning_field)
Set if a field is a warning field.
void setFieldName(const std::string &field_name)
Sets the field name.
void setFieldSetIndex(const uint16_t &field_set_index)
Sets the index of the field set where the field belongs to.
uint8_t readUint8(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.
void setVersionMinorVersionNumber(const uint8_t &version_minor_version_number)
Sets the minor version number for the scanner.
void setVersionMajorVersionNumber(const uint8_t &version_major_version_number)
Sets the major version number for the scanner.