|
waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
|
Decoder for Range Image Protocol packets. More...
#include <cstddef>#include <cstdint>#include <memory>#include <string_view>#include <variant>#include <waterlinkedsonar/rip/messages.hpp>#include <waterlinkedsonar/span.hpp>Go to the source code of this file.
Classes | |
| struct | waterlinked::sonar::rip::Decoded |
| Result of Decoder::decode(). More... | |
| class | waterlinked::sonar::rip::Decoder |
| Decodes Range Image Protocol packets (https://docs.waterlinked.com/sonar-3d/sonar-3d-15-api/). More... | |
Enumerations | |
| enum class | waterlinked::sonar::rip::DecodeStatus : std::uint8_t { OK , UNKNOWN_TYPE , BAD_MAGIC , BAD_LENGTH , CRC_MISMATCH , DECOMPRESS_FAILED , PARSE_FAILED } |
| Outcome of decoding one packet. More... | |
Functions | |
| const char * | waterlinked::sonar::rip::to_string (DecodeStatus status) noexcept |
Description of status, e.g. "CRC mismatch". | |
Variables | |
| constexpr std::size_t | waterlinked::sonar::rip::MAX_PACKET_SIZE = 65507 |
| Largest packet the sonar sends: the maximum UDP payload. | |
Decoder for Range Image Protocol packets.
|
strong |
Outcome of decoding one packet.
| Enumerator | |
|---|---|
| OK | Decoded a published message type. |
| UNKNOWN_TYPE | Valid packet with a message type other than the published ones. The device also sends internal types, which should be ignored. |
| BAD_MAGIC | Neither "RIP2" nor "RIP1". |
| BAD_LENGTH | Packet shorter than its framing or longer than MAX_PACKET_SIZE, or length field different from the packet size. |
| CRC_MISMATCH | Corrupted packet. |
| DECOMPRESS_FAILED | Invalid snappy data. |
| PARSE_FAILED | Invalid protobuf data. |