-
Notifications
You must be signed in to change notification settings - Fork 544
Inconsistency between protocol doc and code #1012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for a late reply. The
The |
Hey @bjsowa Thanks for the response. A couple more questions:
|
Impressive work! I think roslibjs would really benefit from a proper typescript support.
Looking at the implementation it seems true but the type is not completely correct. The Server allows passing the args in 2 ways:
As an example, assuming the request type is When Server sends
It seems to always return something but the type in the protocol doc is wrong. It returns a JSON object literal with response message fields if the service call succeeds (result set to true) or a string with the error message if it fails. |
Description
I'm currently working on a PR to RosLibJS and noticed some inconsistency between the protocol doc and the actual code.
e.g. In Advertising, rosbridge / roslib add fields
latch
andqueue_size
to the packet and are pulling them from the messageBut the protocol document doesn't include these fields. Latch is mentioned briefly in its own section, and the phrase
queue_size
doesn't appear in the entire document.It seems like publishers/advertisement use queue_size and subscriptions use queue_length?
Is this intentional? Are these fields no longer supported? Looking for some answers to guide my development.
The text was updated successfully, but these errors were encountered: