Sending a message containing messages
My current rqt_graph looks as follows
All the nodes on the left send the same message sensor.msg.
Is there a way to send a message from FB1 which is an encapsulation of all the messages from the nodes on the left?
Like a message containing messages *struct of type sensors.msg which is sent by FB1 to the nodes on the right.
Why do you need such encapsulation? Why don't you subscribe the nodes on the right to the topics they consume from the left?
The node in the middle is on the processor, it receives the messages, processes them and forwards the actions to the nodes on the right. I have limited memory and hence need to find a way to encapsulate the messages