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

Add Ellipsoid #259

Merged
merged 5 commits into from Feb 15, 2022
Merged

Add Ellipsoid #259

merged 5 commits into from Feb 15, 2022

Conversation

jcarpent
Copy link
Member

This PR done by @lmontaut introduces the class Ellipsoid, which can be further used for external applications.

@jcarpent
Copy link
Member Author

I will merge it as there is no conflict with the existing work.

@jcarpent jcarpent merged commit 5b63be2 into humanoid-path-planner:devel Feb 15, 2022
@@ -381,6 +397,10 @@ MinkowskiDiff::GetSupportFunction makeGetSupportFunction1 (const ShapeBase* s1,
inflation[1] = static_cast<const Sphere*>(s1)->radius;
if (identity) return getSupportFuncTpl<Shape0, Sphere, true >;
else return getSupportFuncTpl<Shape0, Sphere, false>;
case GEOM_ELLIPSOID:
// TODO: what should we put for inflation[1]?
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be 0 since the support function returns a point on the shape. I think it is initialized to 0.

Copy link
Member Author

Choose a reason for hiding this comment

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

@lmontaut Could you handle the comment made by @jmirabel within a new PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes no problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

I simply removed the comment, inflation is already set to 0 as mentioned by @jmirabel
See #261

@@ -421,6 +441,10 @@ MinkowskiDiff::GetSupportFunction makeGetSupportFunction0 (const ShapeBase* s0,
inflation[0] = static_cast<const Sphere*>(s0)->radius;
return makeGetSupportFunction1<Sphere> (s1, identity, inflation, linear_log_convex_threshold);
break;
case GEOM_ELLIPSOID:
// TODO: what should we put for inflation[0]?
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

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

3 participants