Skip to content

connect() doesn't work #98

@xibei312

Description

@xibei312

Description
connect() doesn't reconnect

To Reproduce
Steps to reproduce the behavior:
ros.close()
// Connection is closed
// Wait for ~2 seconds
ros.connect()
// Reconnected to websocket

Expected behavior
ros.close()
// Connection is closed
// Wait for ~2 seconds
ros.connect()
// Doesn't reconnect
ros.is_connected outputs False

Reproduction Steps
import roslibpy
import time
ros = roslibpy.Ros(host, port)
ros.run()
ros.close()
time.sleep(5)
ros.connect()

System (please complete the following information):

  • OS: [ubuntu20.04]
  • Python version [3.8]
  • Python package manager [pip]
  • roslibpy version[1.3.0]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions