Conversation
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## ign-math6 #219 +/- ##
=============================================
+ Coverage 99.40% 99.41% +0.01%
=============================================
Files 66 67 +1
Lines 6185 6347 +162
=============================================
+ Hits 6148 6310 +162
Misses 37 37
Continue to review full report at Codecov.
|
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
10 tasks
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
19e5f67 to
f4e70c7
Compare
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
scpeters
reviewed
Sep 21, 2021
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Contributor
Author
|
@scpeters I've addressed your feedback and removed the controversial function. |
chapulina
reviewed
Sep 21, 2021
chapulina
reviewed
Sep 21, 2021
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
scpeters
reviewed
Sep 21, 2021
scpeters
reviewed
Sep 21, 2021
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
scpeters
reviewed
Sep 21, 2021
scpeters
reviewed
Sep 21, 2021
scpeters
reviewed
Sep 21, 2021
scpeters
reviewed
Sep 21, 2021
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
scpeters
reviewed
Sep 21, 2021
scpeters
reviewed
Sep 21, 2021
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
scpeters
reviewed
Sep 21, 2021
scpeters
approved these changes
Sep 21, 2021
Member
scpeters
left a comment
There was a problem hiding this comment.
thanks for your patience with my review! the API looks good to me. I haven't gone over the test cases, but I think it is good for merging once CI is happy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
🎉 New feature
Adds a
VolumeBelow(Plane<T> &_plane)function to some of the shapes. This is useful for simulating surface behavior when the vehicle is buoyant. It also introduces aCenterOfVolumeBelow(const Planed &_plane)which is useful for calculating the center of buoyancy. This is to support gazebosim/gz-sim#818.Summary
Currently the following shapes have a
VolumeBelow:The sphere calculation is relatively simple formula can be found here.
The box calculation is relatively difficult. However the essence of it is we find out the points at which the plane intersects with the plane itself. We then reconstruct a triangle mesh using the resulting vertices. Subsequently we use the generic triangle mesh volume formula.
TODO:
Cylinder slices are relatively simple to calculate using Cylinder wedges. [To Be done in a Separate PR]
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge