|
waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
|
C++17 client library for the Water Linked Sonar 3D-15.
Requires sonar firmware 1.5.1 or newer.
-DBUILD_TESTING=OFF and -DWATERLINKEDSONAR_BUILD_EXAMPLES=OFF skip the tests and the examples. The package also builds with colcon.
| Header | Contents |
|---|---|
waterlinkedsonar/http/client.hpp | SonarClient for the HTTP API |
waterlinkedsonar/http/types.hpp | Data types of the HTTP API |
waterlinkedsonar/http/errors.hpp | Exceptions thrown by SonarClient |
waterlinkedsonar/udp/receiver.hpp | Receiver, which decodes the data stream on a thread |
waterlinkedsonar/udp/socket.hpp | UdpSocket for the data stream |
waterlinkedsonar/rip/decoder.hpp | rip::Decoder for single packets |
waterlinkedsonar/rip/messages.hpp | Views of decoded range images, bitmap images and IMU batches |
waterlinkedsonar/rip/conversions.hpp | Distance, point cloud and strength conversions |
waterlinkedsonar/span.hpp | Span, the view type used by the API |
waterlinkedsonar/ntp/sntp.hpp | sntp_query() for checking an NTP server |
Complete programs are in examples/, and the API reference is at bumblebeeas.github.io/waterlinkedsonar.
Callbacks run on the receiver's thread. The views they receive are valid until the callback returns, so copy any data you keep.
The protocol definition (proto/WaterLinkedSonarIntegrationProtocol.proto) and the test recording (test/data/ship_short.sonar) are copied from Water Linked's wlsonar under the MIT license in proto/LICENSE and test/data/LICENSE.
include/waterlinkedsonar/detail/tcb_span.hpp is Tristan Brindle's span implementation (Boost Software License 1.0).
MIT. See [LICENSE](LICENSE).