ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Do latched publishers work with mux?

asked 2019-06-25 13:42:40 -0500

JackB gravatar image

Does a publisher being latched interfere with the operation of the mux topic_tool? See my last question and the helpful comment by gvdhoom (


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-06-26 02:26:19 -0500

gvdhoorn gravatar image

updated 2019-06-26 03:02:04 -0500

I'm not sure, and I haven't tested this myself, but a latched publisher only sends the last message to any subscriber. If the mux subscribes to all it's inputs when it's started (edit: seems like it does), it will receive those messages. But, as typically only a single topic is selected as the initial input, all the other messages on the other inputs will be "lost" (not really, but as those inputs are not active, mux will not forward them).

Now you can switch to other inputs, but since the latched publisher has already sent its one-and-only message, the mux will not see any new msgs and so will not forward them.

Again: I don't know whether this is what actually happens, but it seems a logical explanation of what you are seeing.

edit flag offensive delete link more


Yes that is the conclusion I am coming to, thank you very much!

JackB gravatar image JackB  ( 2019-06-26 08:51:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-06-25 13:42:40 -0500

Seen: 104 times

Last updated: Jun 25 '19