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

how to get the map of a certain height #2

Open
JWSLAM opened this issue Jul 17, 2018 · 4 comments
Open

how to get the map of a certain height #2

JWSLAM opened this issue Jul 17, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@JWSLAM
Copy link

JWSLAM commented Jul 17, 2018

Hi,
I wonder whether it is possible to get a map of a certain height?For instance, I want to get map above ground 0.29m which is mouting height of my laser scanner. The map will be used to compare with the SLAM output.Any idea will be highly appreciated!
Thanks!

@tik0
Copy link
Owner

tik0 commented Jul 17, 2018

Very interesting question and I think it is very related to my first issue #1 which I haven't solved yet. If the objects you want to map start and end within the hight interval of your interest, this command should do the job.
The problem comes with the ray tracing which I use to create the map. I simply check if I enter an object.
Thus, when the raytracing starts already within the object, no occupied cell is created.
I really want to fix this issue, which is I think just a few lines of code, but I am currently on vacation.

@JWSLAM
Copy link
Author

JWSLAM commented Jul 19, 2018

Hi tik0,

Thanks for your reply!Wish you a happy vacation!

I have try the command line you proposed. Maybe I do not completely understand your words.

Now I will describe what I want to do.

I have a laser scanner mounting on a robot at the height of 0.29m.

And I put some table in the gazebo world, so at 0.29m the laser scanner will detect the table legs.

If I run SLAM algorithm like gmaping, then in the final map I will see some points which stand for the table legs.

What I want is a perfect map of the height of 0.29m which contains some points claiming the tables legs rather than a rectangle standing for the table surface.

Here comes my questions, is it possible to get such kind of map with your git repo?

Thanks a lot!

@tik0
Copy link
Owner

tik0 commented Jul 19, 2018

Yes, totally understand your issue and for now, my implementation is currently not able to do what you want since I check for intersections here. As I have said, it should be just a little fix by a few lines of code exactly at that position. If you'd like to make a proposal, I would be very happy!

@tik0 tik0 self-assigned this Jul 19, 2018
@tik0 tik0 added the enhancement New feature or request label Jul 19, 2018
@tik0 tik0 removed their assignment Jul 19, 2018
@tik0
Copy link
Owner

tik0 commented Aug 11, 2018

I've added the fix with the last commit. Now it is possible to map structures at a certain height. Please have a try!

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

No branches or pull requests

2 participants