-
Notifications
You must be signed in to change notification settings - Fork 42
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
Heightmaps ποΈ #218
Heightmaps ποΈ #218
Conversation
Make dependency for dartsim plugin. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
still needs more changes in CustomHeightmapShape Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
This is a problem in the I tested the above with these branches:
This PR is ready for review. CC @scpeters |
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-physics4 #218 +/- ##
================================================
+ Coverage 75.26% 75.40% +0.14%
================================================
Files 122 125 +3
Lines 5376 5433 +57
================================================
+ Hits 4046 4097 +51
- Misses 1330 1336 +6
Continue to review full report at Codecov.
|
Removed from beta, this can come in a minor release. |
Signed-off-by: Louise Poubel <[email protected]>
See gazebo-release/ign-physics4-release#9 for Debian packaging |
This is ready for review, @scpeters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to make a change to ign-common to allow passing HeightmapData
as a const
reference to AttachHeightmapShape
/// \param[in] _subSampling Increase sampling to improve resolution. | ||
public: ShapePtrType AttachHeightmapShape( | ||
const std::string &_name, | ||
ignition::common::HeightmapData &_heightmapData, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that you had to make this argument non-const
in 923ae18 since HeightmapData::FillHeights is not a const
function. I believe that could be a const
function, so I'll go ahead and add a const
version alongside the current one so we can make this argument const
again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to make a change to ign-common to allow passing HeightmapData as a const reference to AttachHeightmapShape
HeightmapData
is a pure virtual class, so I think it will be hard to add new API to it without breaking ABI. I have a band-aid workaround in 457c052, which shouldn't be too costly since the HeightmapData
classes themselves are pretty thin. Let me know what you think.
There's a lot that bothers me about the HeightmapData
class, I think it could be refactored in the future.
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/usr/bin/find: '/github/workspace/tpe/include': No such file or directory
/usr/bin/find: '/github/workspace/bullet/include': No such file or directory
/github/workspace/dartsim/src/CustomHeightmapShape.cc:55: Lines should be <= 80 characters long [whitespace/line_length] [2]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally finished looking over the changes you've made, and I just found one tiny thing that I will fix directly
Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
I fixed the line length in 4a1edc3 |
Signed-off-by: Steven Peters <[email protected]>
added some test expectations for |
Signed-off-by: Steve Peters <[email protected]> Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Steve Peters <[email protected]>
π New feature
Closes #156
Summary
Add an attach heightmap feature and its implementation for DART.
The current implementation has a nice feature: there are hidden holes where objects can go through π³οΈ π It may be related to gazebosim/gazebo-classic#2838
Test it
Checklist
ign-gazebo
Updated migration guide (as needed)codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
πΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈ