-
Notifications
You must be signed in to change notification settings - Fork 43
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
bullet-featherstone: Update fixed constraint behavior #632
Merged
Merged
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
894a348
Add FixedJointWeldChildToParent feature and update bullet-featherston…
iche033 4e05844
clean up
iche033 4eae0c4
lint
iche033 8e32ed8
remove unused code
iche033 12cef38
disable check on mac
iche033 2e49b03
add includes
iche033 e1c1b84
minor collision checking optimization
iche033 33af03e
fixes
iche033 ab22dfc
further optimize collision flags
iche033 936d164
style
iche033 19adb26
style
iche033 6c2db26
fixes for bullet version < 3.07
iche033 c5e33e9
check bullet version
iche033 b69191a
more ifdef
iche033 c904cb5
fix
iche033 8418966
Merge branch 'gz-physics7' into bullet_fixed_joint
iche033 755aeb5
Disable collisions between attached bodies (#640)
azeey 26a72cd
add comments
iche033 0617ae7
Merge branch 'gz-physics7' into bullet_fixed_joint
iche033 d9b0bdb
Remove SetFixedJointWeldChildToParentFeature. Enforce fixed constrain…
iche033 83e31a0
increase tol for bullet version < 3.07
iche033 12688f9
revert one change
iche033 97bd03b
update comment
iche033 1de0ede
update comment
iche033 c921141
add note about disable collisions between all links and parent and child
iche033 fce556e
Enforce fixed constraints recursively when setting pose on freegroups…
azeey a112092
lint
iche033 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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 tried adding the following here
and disabling
fixedConstraintWeldChildToParent
in Base.hh. By default the max impulse is 100. Setting a high value like this made it so that the constraint is satisfied with minimal oscillations. As we discussed, the transform tool does not apply forces on the bodies, so the resulting behavior cannot be relied upon to determine if the physics is correct. Instead, I set up a simulation where two boxes are attached by a detachable joint and the parent box is attached to a fixed base with a prismatic joint.Test SDFormat file
Test command
Here are the results:
DART
dart.webm
Bullet-featherstone gz-physics7 branch
bullet-default.webm
Bullet-featherstone current PR
current-PR.webm
Bullet-featherstone proposed change: setting a high max impulse
max_impulse.webm
I moved your changes in SimulationFeatures.cc directly into
FreeGroupFeatures::SetFreeGroupWorldPose
and that solved the transform tool issue.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.
ok thanks for testing. I revised this PR based on the suggestions. Changes are in d9b0bdb:
jointInfo->fixedConstraint->setMaxAppliedImpulse(btScalar(1e9));
when creating attaching jointSetFreeGroupWorldPose
and updated testSetFixedJointWeldChildToParent
feature