-
Notifications
You must be signed in to change notification settings - Fork 71
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
Comments
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 |
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! |
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. |
Sounds good! I will give it a try in the next week or two and let you know what I find. Thank you! |
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?
The text was updated successfully, but these errors were encountered: