mp3guy / Kintinuous

Real-time large scale dense visual SLAM system
Other
914 stars 287 forks source link

how to save a mesh on remote serverwithout GUI #26

Closed voyage19941119 closed 7 years ago

voyage19941119 commented 7 years ago

Thanks a lot for providing kintinuous! I am runing it on lab server shared with other lab members,remotely through my own computer.so there is no GUI I can use,so I annotate all codes about displaying,then it works well. now I want to save a mesh,what should I do?

HTLife commented 7 years ago

You may found it useful to search "save" related keyword in this project. https://github.com/mp3guy/Kintinuous/blob/06b19ccb4a043535877acb64df86f69d8895e897/src/backend/IncrementalMesh.cpp

void IncrementalMesh::saveMesh(std::string file)

voyage19941119 commented 7 years ago

@HTLife thanks for help . but I still cannot save the mesh after adding function IncrementalMesh::saveMesh() in MainController.cpp , specificly in MainController::mainLoop()(as picture bellow shows,below //change 0) screenshot from 2017-04-05 16-31-38 thanks anyway !

HTLife commented 7 years ago

You are using that function wrongly. Provide parameter -m : Enable mesh generation. And call function like this https://github.com/mp3guy/Kintinuous/blob/fdf77b893abebf85d63cb98eeec4fdd38965a059/src/MainController.cpp#L238

In your code, save function is saving nothing!!!

voyage19941119 commented 7 years ago

yeah ,I found it later ,so I have changed the code(have added -m to enable mesh generation) screenshot from 2017-04-07 10-43-18 and successfully saved a .pcd and .ply .pcd works fine ,but I cannot open .ply through meshlab screenshot from 2017-04-05 19-15-47