robotology / superquadric-model

Framework for modeling and visualizing objects through superquadrics
GNU General Public License v2.0
6 stars 4 forks source link

Synchronous or asynchronous #5

Closed pattacini closed 8 years ago

pattacini commented 8 years ago

The getPeriod returns 0.1 seconds, meaning updateModule should get called in sync with the internal clock.

However, within updateModule, the function acquirePointsFromBlob calls a blocking read, meaning that you're trying to be in sync with the incoming images (i.e. asynchronously with the internal clock).

There's thus an inconsistency you should address somehow. To be synchronous or to be asynchronous: what's the best solution and how should you modify your code accordingly?

giuliavezzani commented 8 years ago

The asynchronous solution should be the best one. If so, getPeriod should return 0.0.

pattacini commented 8 years ago

Perfect! :tada:

pattacini commented 8 years ago

You should close fixed issues...

giuliavezzani commented 8 years ago

Asynchronous solution chosen. a727bb4