nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
config.hpp File Reference

Inline storage-size macros for opaque entity buffers. More...

#include "rclcpp/detail/nros_cpp_config_generated.h"
Include dependency graph for config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NROS_CPP_PUBLISHER_STORAGE_SIZE   (NROS_PUBLISHER_SIZE + 3 * sizeof(void*))

Detailed Description

Inline storage-size macros for opaque entity buffers.

Macro Definition Documentation

◆ NROS_CPP_PUBLISHER_STORAGE_SIZE

#define NROS_CPP_PUBLISHER_STORAGE_SIZE   (NROS_PUBLISHER_SIZE + 3 * sizeof(void*))

Bytes a C++ publisher's opaque storage holds: the backend handle (NROS_PUBLISHER_SIZE) plus three pointer widths – the contract-monitor cell and the node's lifecycle gate with its warned flag (CppPublisher in nros-cpp's publisher.rs, whose compile-time assert is the other half of this number). The ONE spelling: every publisher storage uses it, so a field added there moves every reservation together.