nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
nros::format_of< M > Struct Template Reference

#include <serialization_format.hpp>

Static Public Attributes

static constexpr SerializationFormat value = SerializationFormat::Cdr
 

Detailed Description

template<typename M>
struct nros::format_of< M >

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.

Member Data Documentation

◆ value

template<typename M >
constexpr SerializationFormat nros::format_of< M >::value = SerializationFormat::Cdr
staticconstexpr

The documentation for this struct was generated from the following file: