-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow TOC and value retrieval with CFlib backend #560
Comments
Just to add here, that current the crazyflie python server does not react on the parameter query_all_values_on_connect in server.yaml and just grabs all values of parameters. We should implement that for sure. |
So as it occurs that the parameter value retrieval is not cached, and the toc is, and that works (although it might be better to cache the toc on a fixed location). So as long as we avoid the fully connected a bit or make it more configurable it should be way faster. Another thing that needs to be done is to separate and rewrite the param setting function _init_parameters. What it is currently doing is that it is waiting for the full value of the toc to be downloaded, such that it can use param.get_value without a callback (since this blocks if it is not fetched). crazyswarm2/crazyflie/scripts/crazyflie_server.py Lines 617 to 703 in 8a22066
We should write this to 2 functions namely:
|
Closed with #564. Seems to be working but the CFlib is a bit conservative with starting up the communication., but now it shouldn't be. |
With the cflib backend, the server will not fully initiate until the full TOC and content of values are downloaded.
Currently, within a fresh environment, it takes 150 seconds to connect to all Crazyflies and with cache it takes 52 seconds. That is a long time...
Two things we can consider:
The text was updated successfully, but these errors were encountered: