{
if (show_simulation && pthviewer != NULL)
{
//-- Wait for the viewer to finishpthviewer->join();
deletepthviewer;
pthviewer = NULL;
}
//-- Destroy the environmentpenv->Destroy();
//std::cout << "[Debug] This is executed! -> ~SimulationOpenRAVE" << std::endl;
}