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

PointCloud2 to Gridmap? #158

Open
aybakana opened this issue Jan 18, 2018 · 11 comments
Open

PointCloud2 to Gridmap? #158

aybakana opened this issue Jan 18, 2018 · 11 comments

Comments

@aybakana
Copy link

Can I just convert a PointCloud2 message into Gridmap? How can I do that?

@pfankhauser
Copy link
Member

Hi @aybakana! A point cloud and a grid map are very different formats, which cannot just be converted. You’ll have to do a mapping from the individual points of the point cloud to the values of the cells in the grid map. We have an elevation mapping framework that could help you with this.

@aybakana
Copy link
Author

aybakana commented Jan 18, 2018

I converted PointCloud2 message into Octomap message using octomap_server node and then Octomap message into Gridmap message using "octomap_to_gridmap_demo_node.cpp" node. It seems okay. This was what I meant. Can you not add a node to do this conversion at once? I already want to convert the point cloud map into a gridmap. We should be able to do this conversion with or without mapping.

@JesusCoyotzi
Copy link

I realize this is an old issue but i think it could be a nice feature to be able to load a cloud and turn it into an occupancy grid.
In the meantime and if anyone needs to do this you can use octomap_mapping to turn a pointcloud into and octomap and then project it into a conventional 2D occupancy grid.

@sherifsas
Copy link

@aybakana could you tell me how to convert octomap message into gridmap using gridmap_to_octomap_demo ?

@aybakana
Copy link
Author

Sorry, I've mistakenly written gridmap_to_octomap, it must be octomap_to_gridmap_demo_node

@sherifsas
Copy link

sherifsas commented Feb 28, 2019

@aybakana` Thanks, yeah I am using octomap_to_gridmap_demo_node to convert the octomap published by the octomap_server node. However, I could not send the node output to the octomap_to_grid node. Here is my launch file.

`

`

@sherifsas
Copy link

octomap_to_gridmap.txt

@aybakana
Copy link
Author

You must have forgotten to remap the point cloud input of octomap server. Can you try this? I have assumed that your sensor range is 100m and point cloud topic is /velodyne_points and resolution for octomap is 0.05. You can change them as you wish.

@LottieWang
Copy link

I saw there is a directory called grid_map_pcl. Is it designed for converting PointCloud to GridMap? If it is, could demo be provided?

@KenaHemnani
Copy link

Hii , I want generate 2D Obstacle grid map via. RGBD image sequentially taken by robot via. first converting each RGBD image into point clouds then projecting point clouds to get local map and then to get entire map of the environment?? Is there such Package available in ROS or PCL Libraries??

@maximilianwulf
Copy link
Collaborator

Yes, https://github.com/ANYbotics/elevation_mapping should do exactly what you want.

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

7 participants