You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start two instances of rostopic echo /chatter (rt0 and rt1 in the description below)
Observed:
both rt0 and rt1 start receiving messages, but rt0 gets the even publications, and rt1 gets the uneven publications (this is just an example, it could be the other way around):
output of rt0:
...
---
data: hello world 120
---
data: hello world 122
---
data: hello world 124
...
output of rt1:
...
---
data: hello world 121
---
data: hello world 123
---
data: hello world 125
...
Expected:
It would appear that the callback is called twice: once for each subscriber, giving each subscriber their own copy (or: a new message).
I would've expected the callback to be called once, and the resulting message (ie: hello world 121) copied to all connected subscribers.
The text was updated successfully, but these errors were encountered:
Setup:
roscore
talker
rostopic echo /chatter
(rt0
andrt1
in the description below)Observed:
both
rt0
andrt1
start receiving messages, butrt0
gets the even publications, andrt1
gets the uneven publications (this is just an example, it could be the other way around):output of
rt0
:output of
rt1
:Expected:
It would appear that the callback is called twice: once for each subscriber, giving each subscriber their own copy (or: a new message).
I would've expected the callback to be called once, and the resulting message (ie:
hello world 121
) copied to all connected subscribers.The text was updated successfully, but these errors were encountered: