-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds services to change equality constraints (#24)
* feat: added services to change equality constraints * test: added tests for equality constraint services --------- Co-authored-by: Julian Leichert <[email protected]> Co-authored-by: David Leins <[email protected]>
- Loading branch information
1 parent
9265f4e
commit 1148f48
Showing
24 changed files
with
1,368 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<mujoco model="3DOF"> | ||
<option collision="all" timestep="0.001" gravity="0 0 -9.81" cone="elliptic" /> | ||
<compiler angle="radian" /> | ||
|
||
<visual> | ||
<headlight ambient="0.4 0.4 0.4" diffuse="0.4 0.4 0.4" specular="0.0 0.0 0.0" active="1" /> | ||
</visual> | ||
|
||
<asset> | ||
<texture builtin="checker" height="512" name="texplane" rgb1=".2 .3 .4" rgb2=".1 .15 .2" type="2d" width="512" /> | ||
<material name="MatPlane" reflectance="0.5" shininess="0.01" specular="0.1" texrepeat="1 1" texture="texplane" texuniform="true" /> | ||
</asset> | ||
|
||
<worldbody> | ||
<light pos="0 0 1000" castshadow="false" /> | ||
<geom name="ground_plane" type="plane" size="5 5 10" material="MatPlane" rgba="1 1 1 1"/> | ||
|
||
<body name="base_link"> | ||
<geom type="capsule" fromto="0 0 1 0 0 0.6" size="0.06"/> | ||
<joint name="balljoint" type="ball" pos="0 0 1"/> | ||
<body name="middle_link"> | ||
<geom type="capsule" fromto="0 0 0.6 0.0 0 0.3" size="0.04"/> | ||
<joint name="joint1" type="hinge" pos="0 0 0.6" axis="0 1 0"/> | ||
<!-- <joint name="joint2" type="hinge" pos="0 0 0.6" axis="1 0 0"/> --> | ||
<body name="end_link"> | ||
<geom name="EE" type="capsule" fromto="0 0 0.3 0.0 0 0.1" size="0.02"/> | ||
<joint name="joint2" type="hinge" pos="0.0 0 0.3" axis="0 1 0"/> | ||
</body> | ||
</body> | ||
</body> | ||
<body name="body_ball" pos="1 0 0.06" > | ||
<freejoint name="ball_freejoint"/> | ||
<geom name="ball" type="sphere" size="0.05" rgba="1.0 0.55 0.0 0.2" mass="0.1"/> | ||
</body> | ||
<body name="immovable" pos="0.56428 0.221972 0.6"> | ||
<geom type="box" size=".0125 .016 .032" rgba=".5 .5 .5 1" /> | ||
<inertial pos="0 0 0" mass="0.1024" diaginertia="4.369e-5 4.028e-5 1.407e-5"/> | ||
<joint name="joint_eq_element1" type="hinge" pos="0 0 0.6" axis="0 1 0"/> | ||
</body> | ||
<body name="connect_eq_element1" pos="2 2 0.6"> | ||
<geom type="box" size=".0125 .016 .032" rgba=".5 .5 .5 1" /> | ||
<inertial pos="0 0 0" mass="0.1024" diaginertia="4.369e-5 4.028e-5 1.407e-5"/> | ||
<joint name="joint_eq_element2" type="hinge" pos="0 0 0.6" axis="0 1 0"/> | ||
</body> | ||
</worldbody> | ||
<tendon> | ||
<fixed name="tendon_eq_element1" limited="true" range="-0.3 2"> | ||
<joint joint="joint_eq_element1" coef=".5"/> | ||
</fixed> | ||
<fixed name="tendon_eq_element2" limited="true" range="-0.3 2"> | ||
<joint joint="joint_eq_element2" coef=".5"/> | ||
</fixed> | ||
</tendon> | ||
<equality> | ||
<weld name="weld_eq" body1="immovable" torquescale="0.9" relpose="1.1 1.2 1.3 0.358 -0.003 -0.886 0.295" solref="0.3 0.9" solimp="0.8 0.95 0.002 0.4 2" active="true"/> | ||
</equality> | ||
<equality> | ||
<joint name="joint_eq" joint1="joint_eq_element1" joint2="joint_eq_element2" polycoef="0.5 0.25 0.76 0.66 1" solref="0.3 0.9" solimp="0.8 0.95 0.002 0.4 2" active="true"/> | ||
</equality> | ||
<equality> | ||
<tendon name="tendon_eq" tendon1="tendon_eq_element1" tendon2="tendon_eq_element2" polycoef="0.5 0.25 0.76 0.66 1" solref="0.3 0.9" solimp="0.8 0.95 0.002 0.4 2" active="true"/> | ||
</equality> | ||
<equality> | ||
<connect anchor="0 0 0" name="connect_eq" body1="immovable" solref="0.3 0.9" solimp="0.8 0.95 0.002 0.4 1" active="true"/> | ||
</equality> | ||
|
||
</mujoco> |
Oops, something went wrong.