Ask Your Question
1

Can subscriber know if publisher is latched=true?

asked 2012-11-21 11:42:42 -0500

jihoonl gravatar image

It may be useful

edit retag flag offensive close merge delete

Comments

I'd argue that only publishers should be latched on topics which use case is indifferent of knowing they are latched. Could you think of some example?

felix k gravatar imagefelix k ( 2013-09-29 21:28:03 -0500 )edit

One usecase is rosbridge node which is a subscriber of topic message but also publisher to the web clients. The problem was that one rosbridge client which came late couldn't receive the topic message if two rosbridge clients attempt to subscribe a latch topic.

jihoonl gravatar imagejihoonl ( 2013-12-08 20:47:03 -0500 )edit

um.. maybe this issue describes better https://github.com/RobotWebTools/rosbridge_suite/issues/1

jihoonl gravatar imagejihoonl ( 2013-12-08 20:51:30 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-09-29 21:25:30 -0500

felix k gravatar image

I'd think comparing the time of ones own (successfull) subscription to the timestamp in the message could serve as a workaround, if the mechanical details are checked. Like that the subscriber initialization probably returns before the subscription at the rosmaster is completed.

edit flag offensive delete link more

Comments

1

This assumes that a message's time stamp is (near) the current time, when it was sent, which isn't necessarily true.

dornhege gravatar imagedornhege ( 2013-09-29 22:55:21 -0500 )edit
jihoonl gravatar imagejihoonl ( 2013-12-08 20:53:37 -0500 )edit

This question was to support rosbridge. and we got it workaround with this pull request. Thanks all https://github.com/RobotWebTools/rosbridge_suite/pull/58

jihoonl gravatar imagejihoonl ( 2013-12-08 20:54:49 -0500 )edit
0

answered 2013-09-29 20:20:08 -0500

tfoote gravatar image

I do not think that this is introspectable, it is just a behavior.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-11-21 11:42:42 -0500

Seen: 233 times

Last updated: Sep 29 '13