ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The Node-architecture is imho not very suitable for a global variable. To keep track of a FIFO-load level you would typically go for a handshake protocol, like the proposal with the ack.

If you really want to have a shared memory my proposal would be to create an additional Node, let's call it "RAM", that offers a suitable set of services and topics to read/write to it. This way you have global storage for all your Nodes.