robotology / superquadric-model

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

Use suspend and resume instead of always allocating / deallocating a thread #28

Closed pattacini closed 7 years ago

pattacini commented 7 years ago

Rather than always allocating / deallocating a thread when asked to start / stop e.g. the visualization, you could better use suspend() and resume() methods.

giuliavezzani commented 7 years ago

Fixed. The thread is suspended and resumed when visualization is enabled and disabled. Successfully tested on the robot.