You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/load_mechanism.md
+46-11Lines changed: 46 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
1
# Loading Mechanism via URDF
2
-
Another way to build a mechanism is to directly load it from a URDF file. We can do this is the mechanism builder function. We illustrate this with the RExLab hopper.
2
+
Another way to build a mechanism is to directly load it from a URDF file. We illustrate this with the RExLab hopper.
Here, we have created a mechanism, that contains all the bodies and the joint and also the meshes loaded from the path contained in the URDF file. This is the resulting robot;
30
+

25
31
26
-
#joint limits
27
-
joints =deepcopy(mech.joints)
32
+
However, we are still missing the joint limits and the contact spheres. The following methods provides an example for adding joint limits and contact spheres. Our goal here was to best approximate the mesh shapes using as few spheres as possible.
33
+
Parsing joint limits from the URDF to add them automatically to the mechanism should be easily feasible. That could be a great way to contribute and familiarize yourself with the code!
This is the result, we added three spherical contacts to the robot. There is one coverinn the torso one covering the knee and one covering the foot, they are shown in red;
0 commit comments