But if we try to do it faster, topic communication is not established when returning from __init__(), and things start breaking, when running podium with connection cache...
When running podium without connection cache however, topic interfacing seems fine.
So it is likely a race condition between the connection cache message frequency, and the time to establish a topic connection.
But when running tests there doesn't seem to be any difference if this sleep time is slow or fast, with or without cache.
We need to improve the way we ensure topics are connected...
Currently this code is making everything depending on that very slow : https://github.com/asmodehn/pyros/blob/master/pyros/rosinterface/topic.py#L266
But if we try to do it faster, topic communication is not established when returning from
__init__()
, and things start breaking, when running podium with connection cache...When running podium without connection cache however, topic interfacing seems fine. So it is likely a race condition between the connection cache message frequency, and the time to establish a topic connection.
But when running tests there doesn't seem to be any difference if this sleep time is slow or fast, with or without cache.
More investigation needed...