|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
#include <serialization_format.hpp>
Static Public Attributes | |
| static constexpr SerializationFormat | value = SerializationFormat::Cdr |
The serialization format a message type is encoded in.
Defaulted to CDR, deliberately: this is the C++ mirror of nros_core::RosMessage::SERIALIZATION_FORMAT_ID, which RFC-0088 D1 makes a defaulted const so that every message answers something and the 142 existing implementors cost nothing. Codegen specializes it per message anyway, so a generated type STATES its format rather than inheriting it; the default is what keeps a hand-written tag type (the PX4 uORB demo's DebugKeyValueTag, the compile fixtures' Bounded/Unbounded) usable without a specialization it has no generator to write.
|
staticconstexpr |