[ROS2] Is there a function to obtain message size of a ROS2 message in C++? [closed]
This could be useful when optimizing system performance.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
This could be useful when optimizing system performance.
Currently there is no API to determine the wire size of a message. And it isn't planned to implement that feature.
Asked: 2019-07-29 13:56:38 -0600
Seen: 350 times
Last updated: Aug 01 '19
By size, do you mean the size of a message once it it serialized?
Yes, if that means the same as the throughput of a publisher if the publisher published that message.
Just want to confirm: Is it not possible at this stage? Will it be supported later?