|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
Inline storage-size macros for opaque entity buffers. More...
#include "rclcpp/detail/nros_cpp_config_generated.h"

Go to the source code of this file.
Macros | |
| #define | NROS_CPP_PUBLISHER_STORAGE_SIZE (NROS_PUBLISHER_SIZE + 3 * sizeof(void*)) |
Inline storage-size macros for opaque entity buffers.
| #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.