Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls, how do I save the global map? #54

Closed
Jaywxy opened this issue Mar 30, 2022 · 4 comments
Closed

Pls, how do I save the global map? #54

Jaywxy opened this issue Mar 30, 2022 · 4 comments

Comments

@Jaywxy
Copy link

Jaywxy commented Mar 30, 2022

I'm able to run the program properly, but I want to get the final global map. How do I modify the code? Or is there an interface to save global maps?

@Chen-Xieyuanli
Copy link
Member

Hey @Jaywxy, thanks for using our code. We so far didn't implement a function to save the global map, but you could have a look at variable surfels_ which stores all the surfels of the map.

You could get the surfels_ by:

glow::GlBuffer<Surfel> getModelSurfels() { return surfels_; }

@Jaywxy
Copy link
Author

Jaywxy commented Mar 30, 2022

ok.Thanks for your reply.

@kslam1
Copy link

kslam1 commented Nov 7, 2022

I want to remove all movable objects ,But I don't know where to add the code. Can you tell me?Thanks

@kingskymoon
Copy link

Hey @Jaywxy, thanks for using our code. We so far didn't implement a function to save the global map, but you could have a look at variable surfels_ which stores all the surfels of the map.

You could get the surfels_ by:

glow::GlBuffer<Surfel> getModelSurfels() { return surfels_; }

Hello, thank you for proposing a solution to save the point cloud. I want to save the color point cloud. I modified VisualizerWindow:: renderMaps(), but the result is not correct. All colors are similar to gray, (40, 40, 40)

        int r =  surfel_it->r*255.0;
        int g =  surfel_it->g*255.0;
        int b =  surfel_it->b*255.0;
        float w =  surfel_it->w;
        points_file << pose_world.x() << " " << pose_world.y() << " " << pose_world.z() <<" "<<surfel_it->color<<" "<<r<<" "<<g<< " "<<b<<" "<<w<< std::endl;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants