cruise-automation / webviz

web-based visualization libraries
https://webviz.io/
Apache License 2.0
2.04k stars 412 forks source link

rosbridge subscriber id setting #657

Closed castaway2000 closed 3 years ago

castaway2000 commented 3 years ago

Hello, I was wondering if there is a programmatic way to set the subscriber ID so that it can be easily disconnected from items.

What I found was that if I navigate away from webviz while connected to my remote data source the subscription will continue to stream the data locally on the ROS node and returning will add a new subscriber and increase the load on the ROSbridge Node until it crashes. conversely, you can tell rosbridge to unsubscribe via an ID number if you set one to begin with or to reuse the subscription if it gets a request with the same ID.

Is there a way to define the subscriber ID via something like a url parameter? I simply would like to unsubscribe by ID without having to unsubscribe every node that is using rosbridge.

castaway2000 commented 3 years ago

Closing as this is more appropriate for the slack channel.