Underwater Acoustics Simulation.
◆ TypeEnum
Type.
Enumerator |
---|
UAS_DATA | Data Transmission.
|
UAS_PING | Ping.
|
UAS_PING_REPLY | Ping Reply.
|
◆ UASimulation()
DUNE::IMC::UASimulation::UASimulation |
( |
void |
| ) |
|
◆ clear()
void DUNE::IMC::UASimulation::clear |
( |
void |
| ) |
|
|
virtual |
◆ clone()
◆ deserializeFields()
uint16_t DUNE::IMC::UASimulation::deserializeFields |
( |
const uint8_t * |
bfr, |
|
|
uint16_t |
len |
|
) |
| |
|
virtual |
Deserialize message fields from a packet.
- Parameters
-
bfr | stream of bytes (packet) |
len | length of the byte stream. |
- Returns
- number of bytes processed.
Implements DUNE::IMC::Message.
References DUNE::IMC::deserialize().
◆ fieldsEqual()
bool DUNE::IMC::UASimulation::fieldsEqual |
( |
const Message & |
other | ) |
const |
|
virtual |
Compare fields for equality.
- Parameters
-
[in] | other | message to compare. |
- Returns
- true if fields are equal, false otherwise.
Reimplemented from DUNE::IMC::Message.
References data, speed, and type.
◆ fieldsToJSON()
void DUNE::IMC::UASimulation::fieldsToJSON |
( |
std::ostream & |
os, |
|
|
unsigned |
indent_level |
|
) |
| const |
|
virtual |
Output the message fields (excluding header) in JSON format.
- Parameters
-
os | output stream. |
indent_level | number of indentation spaces. |
Reimplemented from DUNE::IMC::Message.
References DUNE::IMC::toJSON().
◆ getFixedSerializationSize()
unsigned DUNE::IMC::UASimulation::getFixedSerializationSize |
( |
void |
| ) |
const |
|
inlinevirtual |
Get the fixed amount of bytes required to properly serialize this message (variable length fields are not included).
- Returns
- amount of variable bytes required to serialize the message.
Reimplemented from DUNE::IMC::Message.
◆ getId()
uint16_t DUNE::IMC::UASimulation::getId |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ getIdStatic()
static uint16_t DUNE::IMC::UASimulation::getIdStatic |
( |
void |
| ) |
|
|
inlinestatic |
◆ getName()
const char* DUNE::IMC::UASimulation::getName |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ getVariableSerializationSize()
unsigned DUNE::IMC::UASimulation::getVariableSerializationSize |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ reverseDeserializeFields()
uint16_t DUNE::IMC::UASimulation::reverseDeserializeFields |
( |
const uint8_t * |
bfr, |
|
|
uint16_t |
len |
|
) |
| |
|
virtual |
◆ serializeFields()
uint8_t * DUNE::IMC::UASimulation::serializeFields |
( |
uint8_t * |
bfr__ | ) |
const |
|
virtual |
◆ validate()
int DUNE::IMC::UASimulation::validate |
( |
void |
| ) |
const |
|
virtual |
Validate the message's contents.
- Returns
- negative value in case of a valid message or a positive value indicating the position of the invalid message field.
Implements DUNE::IMC::Message.
◆ data
std::vector<char> DUNE::IMC::UASimulation::data |
◆ speed
uint16_t DUNE::IMC::UASimulation::speed |
◆ type
uint8_t DUNE::IMC::UASimulation::type |