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

About generate grid map algorithm #3

Open
stevenyslins opened this issue Sep 14, 2017 · 1 comment
Open

About generate grid map algorithm #3

stevenyslins opened this issue Sep 14, 2017 · 1 comment

Comments

@stevenyslins
Copy link

stevenyslins commented Sep 14, 2017

Dear all,

Thanks to share this code which I can run it to generate 2D grid map.
I have some question about ros_mono_sub.cc,
Does there have reference that I can refer to grid map algorithm?
Because some of code I cannot understand what it is doing, such as

void updateGridMap
{
	....
    kf_pos_x = kf_location.x*scale_factor;
    kf_pos_z = kf_location.z*scale_factor;

    kf_pos_grid_x = int(floor((kf_pos_x - grid_min_x) * norm_factor_x));
    kf_pos_grid_z = int(floor((kf_pos_z - grid_min_z) * norm_factor_z));

    if (kf_pos_grid_x < 0 || kf_pos_grid_x >= w)
        return;

    if (kf_pos_grid_z < 0 || kf_pos_grid_z >= h)
        return;
}

Thanks for your help.

@abhineet123
Copy link
Owner

The related report is attached here.
2d-grid-mapping.pdf

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

2 participants