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

Map decimation error? #983

Open
peci1 opened this issue Jul 22, 2021 · 6 comments
Open

Map decimation error? #983

peci1 opened this issue Jul 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@peci1
Copy link
Collaborator

peci1 commented Jul 22, 2021

I had a local simulation running which was sending data to the /cloud topic. I saw this in the bridge container:

[pcl::VoxelGrid::applyFilter] Leaf size is too small for the input dataset. Integer indices would overflow.

I assume it is a warning from the map decimator.

I have no more details, though - mostly, I don't have any message from the /cloud topic as I came to an already stopped simulation.

@mjcarroll
Copy link
Contributor

That does look like it would be from the map decimation. I believe that the leaf size is currently set to 0.1 meters:

leaf_size_ = 0.1f;

So it would take a large cloud in physical dimensions (not number of points) to trigger this warning. I think that would mean that you have a point outside INT_MAX * 0.1 or INT_MIN * 0.1. Is there any chance there you had some erroneous data in there?

@peci1
Copy link
Collaborator Author

peci1 commented Jul 23, 2021

I don't say it's impossible, but the map is generally good and I've never noticed this wrong data. However, if it's a point faaaar away, it's a question whether it would ever been seen in rviz...

@mjcarroll
Copy link
Contributor

However, if it's a point faaaar away, it's a question whether it would ever been seen in rviz...

Maybe we could just do a pre-filter for the INT_MAX * 0.1 and INT_MIN * 0.1 to guarantee that there aren't any points at millions of meters away.

@peci1
Copy link
Collaborator Author

peci1 commented Jul 23, 2021

sounds good

@peci1
Copy link
Collaborator Author

peci1 commented Aug 23, 2021

It happened again. Here are properties of the published cloud.

Num points: 642918
X range: -53 .. 381
Y range: -202 .. 27
Z range: -27 .. 29

@peci1
Copy link
Collaborator Author

peci1 commented Aug 23, 2021

The cloud also has 19 channels (x,y,z included; point step 124). Total data length is 79721832 bytes.

@nkoenig nkoenig added the enhancement New feature or request label Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants