ROS2Sonic
0.2.0
A ROS2 driver for R2Sonic MBES
|
An interpreter class that represents the Bathmetry Data (BHT0) packet. More...
#include <bth0.hpp>
Public Member Functions | |
sections::H0 | h0 () const |
Gets the sections::H0 Section associated with the BTH0 packet. | |
sections::R0 | r0 () const |
Gets the sections::R0 Section associated with the BTH0 packet. | |
sections::A0 | a0 () const |
Requests the OPTIONAL section sections::A0. | |
sections::A2 | a2 () const |
Requests the OPTIONAL section sections::A2. | |
sections::I1 | i1 () const |
Requests the OPTIONAL section sections::I1. | |
sections::G0 | g0 () const |
Gets the sections::G0 Section associated with the BTH0 packet. | |
sections::G1 | g1 () const |
Requests the OPTIONAL section sections::G1. | |
sections::Q0 | q0 () const |
Gets the sections::Q0 Section associated with the BTH0 packet. | |
Packet (char *start_bit) | |
Constructor. | |
Public Member Functions inherited from r2sonic::packets::Packet | |
Packet (char *start_bit) | |
Constructor. | |
const sections::MiniHeader * | miniHeader () const |
returns a pointer to the miniHeader | |
char * | startBit () const |
returns a pointer to the start bit used to define the packet | |
u16 | getSize () const |
gets the size of the entire DataFormat Packet reported by the MiniHeader | |
char * | end () const |
end returns a pointer to one bit beyond the current DataFormat Packet (the first bit of the next Packet) | |
char * | SectionsStartBit () const |
Returns the starting bit of the data sections of the packet (just after the mini header) | |
bool | isType () const |
Determines if the packet can be instantiated given the current data in the buffer. | |
Protected Member Functions | |
char * | nominalType () const |
Protected Member Functions inherited from r2sonic::packets::Packet | |
void | typeErrorCheck () const |
An interpreter class that represents the Bathmetry Data (BHT0) packet.
This class has accessors which will return a pointer to each sub-section of the received packet.
|
inline |
Requests the OPTIONAL section sections::A0.
std::out_of_range | if Section doesn't exist |
|
inline |
Requests the OPTIONAL section sections::A2.
std::out_of_range | if Section doesn't exist |
|
inline |
Gets the sections::G0 Section associated with the BTH0 packet.
|
inline |
Requests the OPTIONAL section sections::G1.
std::out_of_range | if Section doesn't exist |
|
inline |
Gets the sections::H0 Section associated with the BTH0 packet.
|
inline |
Requests the OPTIONAL section sections::I1.
std::out_of_range | if Section doesn't exist |
|
inlineprotectedvirtual |
Implements r2sonic::packets::Packet.
|
inline |
Constructor.
the | start bit of the datagram you want to read |
|
inline |
Gets the sections::Q0 Section associated with the BTH0 packet.
|
inline |
Gets the sections::R0 Section associated with the BTH0 packet.