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

Truncate DOF values to 5 decimal places for CHOMP SDF hashing #317

Merged
merged 1 commit into from
Jul 19, 2016

Conversation

cdellin
Copy link
Contributor

@cdellin cdellin commented Jul 18, 2016

Gilwoo found that the tableclearing demo required many different hashed SDFs for HERB, even between the majority of plans in which the right arm is moving, with the left arm in its starting configuration. After some investigation, we found that the values for non-active DOFs were changing very slightly (especially noticeable around zero). This PR snaps the DOF values to the nearest 5th decimal digit (and handles values around zero). This doesn't avoid the general problem of hashing floating point values, but does mitigate it in many cases where non-active configurations are read from decimal-formatted model and configuration files.

@mkoval mkoval merged commit ff007c9 into master Jul 19, 2016
@mkoval mkoval deleted the feature/chomp_hash_truncation branch July 19, 2016 01:46
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.

None yet

2 participants