-
Notifications
You must be signed in to change notification settings - Fork 902
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
elastoplastic extension #560
Open
mathl79
wants to merge
7
commits into
google-deepmind:main
Choose a base branch
from
mathl79:mujoco_elastoplastic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e3c6331
elastoplastic extension
mathl79 ca21db1
exponential strain hardening model implemented
mathl79 0786aa0
Merge branch 'deepmind:main' into mujoco_elastoplastic
mathl79 ed50400
Merge branch 'deepmind:main' into mujoco_elastoplastic
mathl79 836a12f
hysteresis plasticity
mathl79 5735248
Merge branch 'mujoco_elastoplastic' of https://github.com/mathl79/muj…
mathl79 51aa954
Merge branch 'main' into mujoco_elastoplastic
quagla 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,20 +68,26 @@ | |
0.1 -0. 0.25132741"> | ||
<plugin plugin="mujoco.elasticity.cable"> | ||
<!--Units are in Pa (SI)--> | ||
<config key="twist" value="5e8"/> | ||
<config key="bend" value="15e8"/> | ||
<config key="twist" value="1e10"/> | ||
<config key="bend" value="2.5e10"/> | ||
<config key="yieldstress" value="10e7"/> | ||
<config key="ultimatestress" value="2e8"/> | ||
<config key="ultimatestrain" value="0.12"/> | ||
</plugin> | ||
<joint kind="main" damping="0.12" armature="0.01"/> | ||
<joint kind="main" damping="1" armature="0.01"/> | ||
<geom type="capsule" size=".005" rgba=".8 .2 .1 1"/> | ||
</composite> | ||
<composite prefix="actuated" type="cable" curve="cos(s) sin(s) s" count="41 1 1" | ||
size="0.251327412 .1 4" offset="0.25 0 .05" initial="fixed"> | ||
<plugin plugin="mujoco.elasticity.cable"> | ||
<!--Units are in Pa (SI)--> | ||
<config key="twist" value="5e8"/> | ||
<config key="bend" value="15e8"/> | ||
<config key="twist" value="1e10"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I pull the second spring, at some point it looks like the simulation blows up. |
||
<config key="bend" value="2.5e10"/> | ||
<config key="yieldstress" value="10e7"/> | ||
<config key="ultimatestress" value="2e8"/> | ||
<config key="ultimatestrain" value="0.12"/> | ||
</plugin> | ||
<joint kind="main" damping="0.1" armature="0.01"/> | ||
<joint kind="main" damping="1" armature="0.01"/> | ||
<geom type="capsule" size=".005" rgba=".8 .2 .1 1"/> | ||
</composite> | ||
<body name="slider" pos="0.35 0 0.301327412"> | ||
|
@@ -99,6 +105,6 @@ | |
</contact> | ||
|
||
<actuator> | ||
<position joint="slide" name="extend" gear="1 0 0 0 0 0" ctrlrange="-.25 1" kp="100"/> | ||
<position joint="slide" name="extend" gear="1 0 0 0 0 0" ctrlrange="-1 4" kp="100"/> | ||
</actuator> | ||
</mujoco> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<mujoco> | ||
<option gravity="0 0 0"/> | ||
<option timestep="0.001" o_solref="-1e8 -1e4" o_solimp="0.8 0.99 0.02 0.1 6"> | ||
<flag | ||
gravity="disable" | ||
override="enable" | ||
/> | ||
</option> | ||
<extension> | ||
<required plugin="mujoco.elasticity.cable"/> | ||
</extension> | ||
<worldbody> | ||
|
||
<geom type="plane" size="0 0 1" quat="1 0 0 0"/> | ||
<site name="reference" pos="0 0 0"/> | ||
<composite type="cable" curve="s" count="81 1 1" size="1" offset="0 0 1" initial="none"> | ||
<plugin plugin="mujoco.elasticity.cable"> | ||
<config key="twist" value="1e10"/> | ||
<config key="bend" value="2.5e10"/> | ||
<config key="yieldstress" value="5e7"/> | ||
<config key="ultimatestress" value="2e8"/> | ||
<config key="ultimatestrain" value="0.12"/> | ||
|
||
</plugin> | ||
<joint kind="main" damping="2"/> | ||
<geom type="capsule" size=".004" density="1000"/> | ||
</composite> | ||
</worldbody> | ||
<contact> | ||
<exclude body1="B_first" body2="B_last"/> | ||
</contact> | ||
<sensor> | ||
<framepos objtype="site" objname="S_last"/> | ||
</sensor> | ||
<actuator> | ||
<motor site="S_last" gear="0 0 0 0 1 0" ctrllimited="true" ctrlrange="-10 10"/> | ||
</actuator> | ||
</mujoco> |
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.
If I load this model, it immediately explodes.