Underwater Acoustics Simulation.
Type.
Enumerator |
---|
UAS_DATA |
Data Transmission.
|
UAS_PING |
Ping.
|
UAS_PING_REPLY |
Ping Reply.
|
DUNE::IMC::UASimulation::UASimulation |
( |
void |
| ) |
|
void DUNE::IMC::UASimulation::clear |
( |
void |
| ) |
|
|
virtual |
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().
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.
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().
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.
uint16_t DUNE::IMC::UASimulation::getId |
( |
void |
| ) |
const |
|
inlinevirtual |
static uint16_t DUNE::IMC::UASimulation::getIdStatic |
( |
void |
| ) |
|
|
inlinestatic |
const char* DUNE::IMC::UASimulation::getName |
( |
void |
| ) |
const |
|
inlinevirtual |
unsigned DUNE::IMC::UASimulation::getVariableSerializationSize |
( |
void |
| ) |
const |
|
inlinevirtual |
uint16_t DUNE::IMC::UASimulation::reverseDeserializeFields |
( |
const uint8_t * |
bfr, |
|
|
uint16_t |
len |
|
) |
| |
|
virtual |
uint8_t * DUNE::IMC::UASimulation::serializeFields |
( |
uint8_t * |
bfr__ | ) |
const |
|
virtual |
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.
std::vector<char> DUNE::IMC::UASimulation::data |
uint16_t DUNE::IMC::UASimulation::speed |
uint8_t DUNE::IMC::UASimulation::type |