Conversation
2051c3a to
93edb9e
Compare
11 tasks
68d12c8 to
099a258
Compare
aclegg3
approved these changes
Aug 21, 2023
Contributor
aclegg3
left a comment
There was a problem hiding this comment.
A few minor nits ans suggestion.
Overall, looks good. I like your idea to fill the enable_physics default from the built_with_bullet arg. 👍
Comment on lines
+111
to
+112
| "cfg.enable_physics to False, or verify your Bullet installation " | ||
| "and recompile Habitat-Sim using the '--bullet' flag."); |
Contributor
There was a problem hiding this comment.
Suggesting on the message advice. This change probably needs to be re-formatted with pre-commit.
Suggested change
| "cfg.enable_physics to False, or verify your Bullet installation " | |
| "and recompile Habitat-Sim using the '--bullet' flag."); | |
| "cfg.enable_physics to False, or verify your Bullet installation (e.g. " | |
| recompile Habitat-Sim using the '--bullet' flag or choose a 'withbullet' conda build)."); |
| ], | ||
| ) | ||
| def test_example_modules(args): | ||
| def test_example_modules_no_bullet(args): |
Contributor
There was a problem hiding this comment.
Naming nit. Some of these (e.g. managed_rigid_object_tutorial) are optional physics rather than no-physics.
Suggested change
| def test_example_modules_no_bullet(args): | |
| def test_example_modules_optional_bullet(args): |
|
|
||
| @pytest.mark.skipif( | ||
| not habitat_sim.bindings.built_with_bullet, | ||
| reason="Bullet physics required for ReplicaCAD Artciulated Objects.", |
Contributor
There was a problem hiding this comment.
Suggested change
| reason="Bullet physics required for ReplicaCAD Artciulated Objects.", | |
| reason="Bullet physics required for ReplicaCAD Articulated Objects.", |
…ullet If bullet is not found or was not used to compile HabitatSim, enablePhysics should never be true. We want to fail early on this to make the user aware before training begins.
--Make enable physics true only if built with Bullet --Make all tests use both the SimConfig and MetadataMediator methods for creating a Simulator. TODO : disable tests that explicitly rely on Bullet if Bullet not found.
…th bullet. Note : there may now be situations where enable_physics is explicitly, although perhaps needlessly ,set to True that will now fail if no Bullet is present.
We just want to skip Bullet-dependent tests if Bullet is absent.
…ullet is present.
099a258 to
c644cb1
Compare
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.
Motivation and Context
This PR contains a bugfix and a few updates/improvements relating to whether Bullet dynamics library is present or not.
How Has This Been Tested
Locally C++ and python tests pass. Some of the python tests required modifications or skipping if bullet was not present).
Types of changes
Checklist