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
{{ message }}
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
Original author: chadrockey (November 22, 2012 07:59:41)
What steps will reproduce the problem?
Create a node with more than one publisher.
Start publishing messages on each publisher.
Sequence numbers increment across publishes. rostopic echo topic/Header
What is the expected output? What do you see instead?
Sequence numbers are most useful on a topic by topic basis. Most users expect sequence numbers for each topic to increase 0, 1, 2, 3, 4, etc.
For slow publishing messages (I have one at 1Hz and another at 100Hz), I see the sequence numbers going from 3, to 104, to 205, to 302, etc. This means the sequence numbers are increasing for the node, not for each topic.
What version of the product are you using? On what operating system?
ROS Fuerte, Ubuntu 12.04, Rosjava 66a4b8c0be04
There's nothing in the spec about how sequence numbers should behave other than that they should be increasing. Beyond that, if you were ever to miss a message on the subscriber, your assumption would still fail. I think it's a bad idea to depend on this.
"The seq field corresponds to an id that automatically increases as messages are sent from a given publisher."
@dirk-thomas@wjwwood Do you guys know what the right behavior for the sequence numbers are?
I guess specifically, I believe roscpp and rospy increment on a publisher basis, not a node basis, and we should try to be consistent. And while it's true that you can miss a sequence number if a message is dropped at the subscriber, some users use it to determine when a message is dropped, or as a convenient way to determine consecutive messages.
Original author: chadrockey (November 22, 2012 07:59:41)
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Sequence numbers are most useful on a topic by topic basis. Most users expect sequence numbers for each topic to increase 0, 1, 2, 3, 4, etc.
For slow publishing messages (I have one at 1Hz and another at 100Hz), I see the sequence numbers going from 3, to 104, to 205, to 302, etc. This means the sequence numbers are increasing for the node, not for each topic.
What version of the product are you using? On what operating system?
ROS Fuerte, Ubuntu 12.04, Rosjava 66a4b8c0be04
Please provide any additional information below.
The sequence number increase is static from this file:
http://code.google.com/p/rosjava/source/browse/rosjava_bootstrap/src/main/java/org/ros/internal/message/MessageProxyFactory.java
Original issue: http://code.google.com/p/rosjava/issues/detail?id=151
The text was updated successfully, but these errors were encountered: