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

Compute maximum distance via sampling #21838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wrangelvid
Copy link
Contributor

@wrangelvid wrangelvid commented Aug 22, 2024

Computes the maximum distance of a convex set via sampling. This is especially useful for hpolytopes generated via IRIS where we often can't (or don't want to) compute all the vertices to then compute the maximum distance.

Towards #21460 .


This change is Reviewable

@RussTedrake
Copy link
Contributor

I'd prefer to not resort to sampling unless we need to. I've opened https://robotlocomotion.slack.com/archives/C0JH2GSUR/p1724321626756439 to discuss.

Copy link
Contributor

@sadraddini sadraddini left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, LGTM missing from assignee RussTedrake(platform), needs at least two assigned reviewers, missing label for release notes (waiting on @wrangelvid)


geometry/optimization/convex_set.h line 286 at r1 (raw file):

    relative accuracy
    @throws if ambient_dimension() == 0. */
  double CalcMaximumDistanceViaSampling(RandomGenerator* generator,

Where is the pair? What is the exact definition of distance?

Copy link
Contributor Author

@wrangelvid wrangelvid left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, LGTM missing from assignee RussTedrake(platform), needs at least two assigned reviewers, missing label for release notes


geometry/optimization/convex_set.h line 286 at r1 (raw file):

Previously, sadraddini (Sadra Sadraddini) wrote…

Where is the pair? What is the exact definition of distance?

Good catch, thanks!

@RussTedrake RussTedrake linked an issue Sep 23, 2024 that may be closed by this pull request
7 tasks
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.

Nonlinear GCSTrajectoryOptimization
3 participants