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

Revision history [back]

AFAIK there is no direct way.

It may be possible if you can reimplement your own callback queue although. Or play with the existing callback queueus to do that but it will not be straight-forward. See rocpp API for more information

[My impression is that you try to rebuild a communication protocol over the ROS topics. I.e. sending messages in small chunks you reassemble at the end. If this is the case, it highly recommend to _avoid doing_ that. ROS topics are not designed to work that way. Just send one big message containing all the information you want to transmit. ROS will then do the hard work for you.]

AFAIK there is no direct way.

It may be possible if you can reimplement your own callback queue although. Or play with the existing callback queueus to do that but it will not be straight-forward. See rocpp API for more information

[My impression is that you try to rebuild a communication protocol over the ROS topics. I.e. sending messages in small chunks you reassemble at the end. If this is the case, it I highly recommend to that you _avoid doing_ that. ROS topics are not designed to work that way. Just send one big message containing all the information you want to transmit. ROS will then do the hard work for you.]