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

Revision history [back]

Answer to first question: In the nodes that you are subscribing to the XML message you will have to store in a local variable the XML data or, more ideally, create a class/struct and fill the attributes parsing the XML (much more efficient in memory and performance).

Answer to second question: : The easiest way I can think of for XML publication is to convert it to an std::vector<char *> and then publish it in a message containing an array of uint8[] (ROS message) or directly to an string ROS message, depending on how you are loading the XML data. I prefer the first method as the serialization and deserialization seems to be more straightforward. But this is nothing related with the XML being available afterwards.