-
Notifications
You must be signed in to change notification settings - Fork 84
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
Convert octomap into gpu-voxel #48
Comments
Hi! BUT: Have a look at the serialization functions of GPU-Voxels and Octomap. Both offer a Save-to-File function: I am sure that you can write a converter. Hope this helps! If you are doing this, I am happy to support you. And even happier, if you send me pull requests (: |
Oh, BTW: The GPU-Voxels Octree is serialized as a stream of Leaf-Nodes. So all information is extracted as minimal sized Voxels (can be interpreted as pointcloud of the voxel-centers together with occupancy information). |
Octomap seems also serialized by coordinate of the each cell's center. I do not require gpu-voxel directly read the file of octomap. I am currently converting the octomap into a pointcloud vector in which elements are the center of the octomap's leaf nodes and insert those pointclouds into a gpu-voxel octree, as the following code shows.
` |
This was my first idea. A problem will occur, if you have a larger Octree-Node, which is completely occupied. In the first case, you can use the proposed method. Otherwise you would need a helper function to manually generate the leaf nodes from an inner node. The other thing that you will loose is the information about the free space. Or can you also export the free-space nodes from OctoMap (if OctoMap has free space representation). |
As far as I know (in my current work) , leaf nodes of octomap are same which means I do not concern about the multi-resolution problem. Therefore , if there is a large node which is completely occupied and the node is not a leaf node, the node is also break up into several occupied child nodes. |
Hi @wendwosen, If I understand correctly, you want to directly insert a PointCloud from ROS to GPU-Voxels. There is already an example for subscribing to a Or is your input already in octomap? |
Hi, I found this project from this issue in Octomap.
I wanna know whether there is an approach to convert my octomap into the gpu-voxel octree with out the origin pointcloud.
The text was updated successfully, but these errors were encountered: