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

Implemented a more recent function from octomap for incredible speed up #47

Open
wants to merge 2 commits into
base: kinetic-devel
Choose a base branch
from

Conversation

half-potato
Copy link

I haven't measured how much this increases performance by yet but it's a massive improvement that can't be understated. I just replaced the implementation that used insertPointCloud instead of directly inserting values. Code does need to be cleaned up though.

Copy link
Member

@wxmerkt wxmerkt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the pull request, this is a great improvement. However, it disables the currently working COLOR_OCTOMAP_SERVER.

Could you please

(a) Find a way to preserve the color octomap server.
(b) Perhaps, if possible, benchmark the performance improvement?

Thank you very much!

@@ -1,5 +1,7 @@
octomap_mapping
===============

Forked by Yonder Dynamics to implement latest features of octomap lib that allow for a 10x speed up.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to README would have to be reverted prior to this pull request being merged.

@@ -143,6 +143,7 @@ int main(int argc, char** argv){
}

try{
ROS_INFO("Started");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required?


/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change in this line, but you essentially replaced all of the specialized point cloud handling in the next 100 lines with the default OctoMap point cloud insertion, and hardcoded the option "discretize"=true. This could be done as speedup, but better as an optional parameter to octomap_server, because it creates different maps in the end (less information in them).

You also only insert the "nonground" point cloud, while the commented out 100 lines insert both ground and nonground, and give the option to filter out ground points while still using them for clearing obstacles - this is a significantly different behavior and different maps will be created in the end.

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

Successfully merging this pull request may close these issues.

3 participants