0
$\begingroup$

is there any way to get the color of each voxel in an Octomap as it is being built in real-time? The package I am looking at, https://github.com/floatlazer/semantic_slam, is a semantic SLAM package which assigns colors to different parts of the Octomap based on what the object is. I would like to extract and use those colors to allow a robot to navigate to a desired type of object.

Is there a way to do this? I saw that Octomap has a conversions.h file, but I am not sure how to use it since I am a bit new to using Octomap.

$\endgroup$

1 Answer 1

0
$\begingroup$

Sorry for the not-so-useful answer, you can find a semantic_slam issue about your very same question.

Despite it provides no answer, you might try posting there as well. There has been recent activity in the conversation (late 2023), and you have a better chance to come across someone working on your specific case there.

$\endgroup$
2
  • $\begingroup$ Thank you for the suggestion! I think I was able to find a way by looking through some similar projects in which they are able to use one of the Octomap iterators (I have yet to actually try it though) to go through individual voxels and extract the data inside $\endgroup$
    – Joshua L
    Feb 15 at 23:36
  • $\begingroup$ I hope this is the solution you were looking for! If you test it successfully, do not forget to post it here as answer. $\endgroup$
    – Luca
    Feb 16 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.