Commit 56fd3d34 authored by alexandre burton's avatar alexandre burton
Browse files

ClientConnector: ajout d'un check en cas de cloud vide (devrait pas arriver...

ClientConnector: ajout d'un check en cas de cloud vide (devrait pas arriver mais arrivait -- peut-etre lorsqu'un CloudClient n'a pas de kinect ou un truc du genre
parent 9edc7a3e
......@@ -44,8 +44,11 @@ void ClientConnector::threadedFunction()
fresh_mesh.clear();
cloud_counter_++;
xyz_receiver_.receive(fresh_mesh);
fresh_mesh.removeVertex(0);
aggregated_.send(std::move(fresh_mesh));
if (fresh_mesh.getNumVertices()) {
fresh_mesh.removeVertex(0);
aggregated_.send(std::move(fresh_mesh));
}
// std::cout << "NEW CLOUD IN THREAD " << client_name_ << "#" << cloud_counter_ << std::endl;
} else {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment