Skip to content

Subscription reconnection does not work if a Topic instance is used for both publication and subscrtiption #114

Description

@daisukes

Description
Re-connection of subscription of a Topic instance does not work if the instance is also used for publication.

To Reproduce
Reproduction code
https://github.com/daisukes/rosbridge-bug/blob/main/bridge/test_ng.py

  1. connect
  2. make a Topic
  3. subscribe to the Topic
  4. publish to the Topic as well
  5. reconnect

Expected behavior

subscription to the Topic is connected automatically

Note
https://github.com/gramaziokohler/roslibpy/blob/82442226d8b20f132a07dba7ced285945ce1c238/src/roslibpy/core.py#L300
self._connect_message is shared by publish/subscribe, so re-connection may not work as expected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions