Enable activation clamping when using implicit integrator.

- Introduced private function `mj_advance()` as single point of state & time advancement.

PiperOrigin-RevId: 456525969
Change-Id: Iae17217e305c7baf07cb5ecd1e1b84b936421097
This commit is contained in:
Yuval Tassa
2022-06-22 08:55:06 -07:00
committed by Copybara-Service
parent 2a26bf1ba5
commit 03c2011463
3 changed files with 73 additions and 70 deletions
+1 -1
View File
@@ -113,10 +113,10 @@
<motor tendon="fixed" gear="100"/>
<motor tendon="spatial" gear="10"/>
<motor joint="hipy_2" gear="100"/>
<position joint="hipz_0" kp="100"/>
<position joint="hipz_1" kp="100"/>
<position joint="hipz_2" kp="100"/>
<velocity joint="wheel_2" kv="1"/>
<intvelocity joint="hipz_0" kp="100" actrange="-1 1"/>
<general site="wheel_0" gear="0 0 0 0 10 0" dyntype="filter" dynprm="1"/>
<general joint="wheel_1" biastype="affine" dyntype="integrator" dynprm="1" biasprm="0 -1"/>
</actuator>