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

Do latched publishers work with mux?

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

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 (http://answers.ros.org/question/32692...).

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

gvdhoorn gravatar image

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

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

Comments

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

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

Question Tools

2 followers

Stats

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

Seen: 134 times

Last updated: Jun 25 '19