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

Could not generate key for origin #230

Open
Raisintoe opened this issue Jan 18, 2019 · 1 comment
Open

Could not generate key for origin #230

Raisintoe opened this issue Jan 18, 2019 · 1 comment
Labels

Comments

@Raisintoe
Copy link

Hello,

I am using Octomap in ROS,
What does this error message mean? "Could not generate key for origin"?

I get this error when I set the octomap_server's frame_id to "world" which is my global map frame. I do not get this error when I set octomap_server's frame_id to "camera_link" which frame is static in relation to the pointcloud2 depth data, sent from the camera to octomap_server.

I believe there might be an issue with depth data update rates. The rate for tf frames is 10Hz. The depth camera update rate may be different, possibly slower, would this cause the error that I am getting from octomap_server?

Derek

@Kin-Zhang
Copy link

Kin-Zhang commented Jul 17, 2024

I encounter this problem because of the sensor origin is too far away. Related question also could be found here: https://answers.ros.org/question/313166/octomap_server-error-could-not-generate-key-for-origin/

int scaled_coord =  ((int) floor(resolution_factor * coordinate)) + tree_max_val;

Here default tree_max_val is int(65535/2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants