<br><div class="gmail_quote">On Tue, Mar 23, 2010 at 8:49 AM, Radu Bogdan Rusu <span dir="ltr"><<a href="mailto:rusu@willowgarage.com">rusu@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Though _not_ recommended, and if you really _cannot_ define multiple message types and multiple topics, _and_ if you<br>
only get one of the two types of messages for the entire duration while your node is up, you can get rid of the flag,<br>
and just subscribe to the same topic twice using different callbacks and different message types. The callback that<br>
answers first should invalidate the other. You can see an example of this working in point_cloud_converter.<br><br></blockquote><div><br>If this works it's only by accident, and is not guaranteed to work in the future.  I strongly recommend you don't rely on it (including in point_cloud_converter).<br>

<br>Actually, a quick test shows that it does not work (first subscription wins) so relying on it is definitely a bad idea.<br><br>Josh <br></div></div>