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

Less than 4 points in a cell #454

Open
Robotgir opened this issue May 1, 2024 · 1 comment
Open

Less than 4 points in a cell #454

Robotgir opened this issue May 1, 2024 · 1 comment

Comments

@Robotgir
Copy link

Robotgir commented May 1, 2024

Hi,

I am able to successfully run ros2 launch grid_map_pcl grid_map_pcl_loader_launch.py with plane_noisy.pcd file provided in the repo.
and also able to run ros2 launch grid_map_demos grid_map_loader_demo_launch.py by pointing this file to the folder where the bag file is created by ros2 launch grid_map_pcl grid_map_pcl_loader_launch.py

When i try the same on other .pcd files i always get an error "Less than 4 points in a cell".
I have increased the grid cell resolution in the parameters.yaml, but still get the same error.

Please help me in addressing the issue.
Thanks in advance!

@Robotgir
Copy link
Author

Robotgir commented May 1, 2024

partially Solved the issue
I had to use the rigid translation of my pointcloud
my points wer something like 734661.52796 2975382.66249 1041.279 so i basically gave the following in the parameters.yaml
cloud_transform:
translation:
x: -735762.50540
y: -2978489.25386
z: -909.607

 this made the PCL come closer to the origin i guess.
 - may be i can find the center of my PCL and translate it there and this should bring the origin to the center of the pcl?
 
 Is this how it works?
 
 Thankyou!

@Robotgir Robotgir closed this as completed May 1, 2024
@Robotgir Robotgir reopened this May 2, 2024
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

1 participant