roslibpy
roslibpy copied to clipboard
connect() doesn't work if there's a delay
connect() doesn't reconnect if there is some delay after closing the connection
Expected Result
ros.close() // Connection is closed // Wait for ~2 mins ros.connect() // Reconnected to websocket
Actual Result
ros.close() // Connection is closed // Wait for ~2 mins ros.connect() // Doesn't reconnect ros.is_connected outputs False waited for more that 5 mins for reconnection, didn't work
Reproduction Steps
import roslibpy
import time
ros = roslibpy.Ros(host, port)
ros.run()
ros.close()
time.sleep(120)
ros.connect()
System Information
Ubuntu 16.04, ROS kinetic, roslibpy v1.1.0.
I'm not sure if this is an expected behaviour.
Hi, sorry for the delayed response. In the last release (v1.2.1), a bug was fixed that I believe addresses this problem. Could you please confirm?
@beverlylytle I had the same problem and I was sure the address was right