Open johncarl81 opened 2 years ago
I believe the source of this is this PR: https://github.com/RobotWebTools/rosbridge_suite/pull/690
Specifically this line: https://github.com/RobotWebTools/rosbridge_suite/blob/b4b996b77d0b63548a2cd4a435604472c7d8932c/rosbridge_library/src/rosbridge_library/internal/subscribers.py#L114
Where we assume the default reliability policy is RELIABLE
This issue has been marked as stale because there has been no activity in the past 12 months. Please add a comment to keep it open.
Bump
Bump?
@johncarl81 I am facing the same issue, any clues as to how to solve this?
Hi @wvergouwenavular, have you tried out the linked PR which changes the reliability policy to BEST_EFFORT
? I have not, but I'm curious if this solves the problem.
Hi @johncarl81 I have not yet tried it, since it requires building rosbridge from source...
Description
When I start rosbridge and subscribe to a topic before the topic is available I receive the following error:
and subsequent attempts to connect via rosbridge to the given topic don't return anything.
Steps To Reproduce
Startup ros
Startup rosbridge:
Subscribe to a stream that hasn't been started yet via ros (in this case a mavros stream): (not sure of the exact syntax here): subscribe to /mavros/global_position/global
Start said stream
Received error:
Expected Behavior
I'd expect the subscription to be either configurable or more graceful in subscribing to this sort of stream.
Actual Behavior
In essence, rosbridge blocks itself from ever subscribing to a stream if rosbridge attempts to subscribe to it before it's available. This block is in place for as long as rosbridge is continuously running.
More Info
Here's topic info for when rosbridge subscribes to the stream first: Note the
Reliability: BEST_EFFORT
underrosbridge_websocket
And here's a topic info for when rosbridge subscribes to the stream first: Note the
Reliability: RELIABLE
underrosbridge_websocket