Skip to content

RSDK-10392 remove magic numbers from point cloud collision check #4896

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

raybjork
Copy link
Member

@raybjork raybjork commented Apr 8, 2025

We already expose a buffer variable this just makes it so there aren't two variables, one of which cannot be changed

Edit: I should note that getting rid of this does have implications for collisions for 2D motion. We should probably be updating the collisionBuffer for that case along with the rest of the changes here

@raybjork raybjork requested a review from biotinker April 8, 2025 20:03
@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Apr 8, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 8, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 8, 2025
case *point:
return pt.almostEqual(other), nil
return pt.position.Sub(other.position).Norm() <= collisionBufferMM, nil
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops discovered some bugs

@raybjork raybjork changed the title Remove buffer from point cloud collision check RSDK-10392 remove buffer magic number from point cloud collision check Apr 8, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 9, 2025
@raybjork raybjork requested a review from biotinker April 9, 2025 21:16
@@ -414,27 +414,6 @@ func NewLineConstraint(pt1, pt2 r3.Vector, tolerance float64) (StateConstraint,
return validFunc, gradFunc
}

// NewOctreeCollisionConstraint takes an octree and will return a constraint that checks whether any geometries
Copy link
Member Author

Choose a reason for hiding this comment

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

This just isn't used anymore. Would like to cut down on the LOC

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 9, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 10, 2025
@raybjork raybjork changed the title RSDK-10392 remove buffer magic number from point cloud collision check RSDK-10392 remove magic numbers from point cloud collision check Apr 10, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 14, 2025
@raybjork raybjork requested a review from biotinker April 14, 2025 18:57
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 14, 2025
Copy link
Member

@biotinker biotinker left a comment

Choose a reason for hiding this comment

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

LGTM

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 15, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants