roslibpy icon indicating copy to clipboard operation
roslibpy copied to clipboard

connect() doesn't work if there's a delay

Open Devin-botsync opened this issue 4 years ago • 2 comments

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.

Devin-botsync avatar Sep 05 '20 12:09 Devin-botsync

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 avatar Jul 23 '21 08:07 beverlylytle

@beverlylytle I had the same problem and I was sure the address was right

xibei312 avatar Jul 11 '22 08:07 xibei312