35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_UDPPACKETMERGER_H 36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_UDPPACKETMERGER_H 47 namespace data_processing {
87 std::map<uint32_t, sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector>
106 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_UDPPACKETMERGER_H std::mutex m_buffer_mutex
bool deployPacketIfComplete(datastructure::DatagramHeader &header)
sick::datastructure::PacketBuffer getDeployedPacketBuffer()
Get the latest complete data packet.
A packetbuffer for the raw data from the sensor.
bool addToMap(const sick::datastructure::PacketBuffer &buffer, const sick::datastructure::DatagramHeader &header)
bool checkIfComplete(sick::datastructure::DatagramHeader &header)
bool addUDPPacket(const sick::datastructure::PacketBuffer &buffer)
Adds a udp packet to the packet map, when a data packet is complete it will return true...
bool isComplete() const
Returns if a data packet is complete.
std::map< uint32_t, sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector > m_parsed_packet_buffer_map
Merges udp packets together to a complete data packet.
uint32_t calcualteCurrentLengthOfParsedPacketBuffer(const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector &vec)
UDPPacketMerger()
Constructor of udp packet merger.
sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector getSortedParsedPacketBufferForIdentification(const sick::datastructure::DatagramHeader &header)
std::vector< ParsedPacketBuffer > ParsedPacketBufferVector
sick::datastructure::PacketBuffer m_deployed_packet_buffer
std::vector< uint8_t > removeHeaderFromParsedPacketBuffer(const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector &vec)