waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
Loading...
Searching...
No Matches
messages.hpp
Go to the documentation of this file.
1
6
7#ifndef WATERLINKEDSONAR_RIP_MESSAGES_HPP
8#define WATERLINKEDSONAR_RIP_MESSAGES_HPP
9
10#include <cstdint>
12
13namespace waterlinked::sonar {
14
19 std::int64_t timestamp_ns{0};
22 std::uint32_t sequence_id{0};
23};
24
28 float speed_of_sound{0.0F};
29 float range{0.0F};
30 std::uint32_t frequency{0};
31 std::uint32_t width{0};
32 std::uint32_t height{0};
33 float fov_horizontal{0.0F};
34 float fov_vertical{0.0F};
36 float image_pixel_scale{0.0F};
40};
41
43enum class BitmapImageType : std::uint8_t {
48 SHADED,
49};
50
54 float speed_of_sound{0.0F};
55 float range{0.0F};
56 std::uint32_t frequency{0};
57 BitmapImageType type{BitmapImageType::SIGNAL_STRENGTH};
58 std::uint32_t width{0};
59 std::uint32_t height{0};
60 float fov_horizontal{0.0F};
61 float fov_vertical{0.0F};
64};
65
80
81} // namespace waterlinked::sonar
82
83#endif // WATERLINKEDSONAR_RIP_MESSAGES_HPP
BitmapImageType
Content of a BitmapImageView.
Definition messages.hpp:43
@ SHADED
Shaded rendering of the range image. Experimental on the device.
@ SIGNAL_STRENGTH
Strength of the strongest reflection, as 100 * log10(linear / 30) of the 15-bit linear strength.
Non-owning view over a contiguous sequence.
tcb::span< T > Span
Non-owning view over a contiguous sequence, with the interface of C++20 std::span.
Definition span.hpp:17
8-bit greyscale image that can be displayed as is.
Definition messages.hpp:52
float fov_horizontal
Degrees.
Definition messages.hpp:60
Span< const std::uint8_t > image_pixel_data
Row-major, width * height bytes; 0 means no reflection.
Definition messages.hpp:63
float speed_of_sound
m/s.
Definition messages.hpp:54
float range
Configured maximum range in meters.
Definition messages.hpp:55
std::uint32_t width
Pixels per row.
Definition messages.hpp:58
MessageHeader header
Shot metadata.
Definition messages.hpp:53
float fov_vertical
Degrees.
Definition messages.hpp:61
BitmapImageType type
Content.
Definition messages.hpp:57
std::uint32_t height
Rows.
Definition messages.hpp:59
std::uint32_t frequency
Hz.
Definition messages.hpp:56
IMU samples taken at about 100 Hz while acoustics is enabled.
Definition messages.hpp:69
Span< const std::int64_t > timestamps_ns
Device time of each sample in nanoseconds since the Unix epoch.
Definition messages.hpp:74
std::uint32_t batch_sequence_id
Batch counter, independent of MessageHeader::sequence_id.
Definition messages.hpp:71
Span< const float > rate_of_turn
Rate of turn in rad/s as samples x, y, z triples.
Definition messages.hpp:78
std::uint32_t samples
Number of samples.
Definition messages.hpp:72
Span< const float > specific_force
Specific force in m/s^2 as samples x, y, z triples.
Definition messages.hpp:76
Metadata shared by the images of one acoustic shot.
Definition messages.hpp:16
std::uint32_t sequence_id
Shot counter, shared by the range and bitmap image of a shot.
Definition messages.hpp:22
std::int64_t timestamp_ns
Device time in nanoseconds since the Unix epoch.
Definition messages.hpp:19
Distance to the strongest reflection for each pixel.
Definition messages.hpp:26
float fov_horizontal
Degrees.
Definition messages.hpp:33
MessageHeader header
Shot metadata.
Definition messages.hpp:27
std::uint32_t width
Pixels per row.
Definition messages.hpp:31
Span< const std::uint32_t > image_pixel_data
Row-major, width * height values of at most 16 bits; 0 means no reflection.
Definition messages.hpp:39
std::uint32_t frequency
Hz.
Definition messages.hpp:30
float image_pixel_scale
Meters per pixel value.
Definition messages.hpp:36
float range
Configured maximum range in meters.
Definition messages.hpp:29
float fov_vertical
Degrees.
Definition messages.hpp:34
float speed_of_sound
m/s.
Definition messages.hpp:28
std::uint32_t height
Rows.
Definition messages.hpp:32