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

using mpl with octomap #2

Open
bumblebee96 opened this issue Apr 28, 2019 · 4 comments
Open

using mpl with octomap #2

bumblebee96 opened this issue Apr 28, 2019 · 4 comments

Comments

@bumblebee96
Copy link

I used the octomap library to create a map of the airspace that i want to fly in, octomap saves this map in an octree data structure, and I can use binvox to convert to different voxel file types. My question is what encoding does your MapUtil function require (.vtk, .raw, .MIRA...)? I saw in the example you have a .yaml file with a - data: parameter, how is this occupancy grid created?

gazebo_test_map

@sikang
Copy link
Owner

sikang commented Apr 29, 2019

The MapUtil uses a single 1D array (Tmap type) to store the occupancy data, the example yaml file just stores the array itself, it will be tricky for Octomap... You can either change the MapUtil to use Octomap directly or output a uniform grid from Octomap. Alternatively, if you have the raw data like 'STL' or 'DAE' of the model, you can convert it into VoxelMap directly using this script: https://github.com/sikang/mpl_ros/blob/master/mpl_test_node/launch/map_generator/mesh_to_map.launch

@mrhebert
Copy link

I am actually interested in getting Octomap functionality working as well. Our team has an octomap server that is being populated from multiple different sources. Do you think it would be a massive undertaking to interface with either the server directly or a copy of the octomap or simply create a new MapUtil that interfaces with it. I am working through the code now but it is hard to tell where the cleanest place to interface with the new map would be. Thanks!

@sikang
Copy link
Owner

sikang commented May 23, 2019

The easiest way is to change the MapUtil, but I can imagine there will be issues to deal with the API. You can try it, let me if there is problem and I'll also take a look at some time to make it work with Octomap.

@mrhebert
Copy link

Sounds good! I will give it a try in the next week or two and let you know what I find. Thank you!

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

3 participants