Skip to content
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

Many calls to unsubscribe, subscribe cause Web Socket Net to stop receiving #450

Open
PetterVMC opened this issue Dec 20, 2023 · 0 comments

Comments

@PetterVMC
Copy link

Hi!

In my current Unity simulation I need to unsubscribe during runtime based on application logic, and then later re-subscribe to the same topics again. This cycle can repeat many times.

I noticed that after unsubscribing / re-subscribing multiple times, I suddenly stopped receiving any messages at all (even on other topics that I permanently subscribed to). After some debugging, it I noticed that the RosSocket's function Receive() suddently stops being called entirely.

This problem only seems to happen if protocol is "Web Socket Net". The other protocol "Web Socket Sharp" seems to work fine.

Also, my Unity simulation subscribe to about 25 Float32, which are being published from an ubuntu ROS node at 100 Hz. If I lower the data amount or publish frequency the problem is less prone to happen (or does not happen at all).

Anyone having similar experiences, or any insight on if this could be an actual bug in the Web Socket Net protocol?

Unity version: 2022.3.13f1 (Windows 10)
ROS distribution: Melodic (Ubuntu 18.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant