Skip to content

Commit 116a2df

Browse files
committed
deploy: f50e0ec
0 parents  commit 116a2df

File tree

176 files changed

+11411
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+11411
-0
lines changed

.buildinfo

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: e1b39df1e164151fde26803288e04875
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

.doctrees/configuration.doctree

63.2 KB
Binary file not shown.

.doctrees/derivations.doctree

13.1 KB
Binary file not shown.

.doctrees/environment.pickle

763 KB
Binary file not shown.

.doctrees/index.doctree

5.04 KB
Binary file not shown.

.doctrees/inverse_kinematics.doctree

33.9 KB
Binary file not shown.

.doctrees/lie.doctree

125 KB
Binary file not shown.

.doctrees/limits.doctree

82.4 KB
Binary file not shown.

.doctrees/references.doctree

3.73 KB
Binary file not shown.

.doctrees/tasks.doctree

132 KB
Binary file not shown.

.doctrees/utilities.doctree

39.8 KB
Binary file not shown.

.nojekyll

Whitespace-only changes.

_sources/configuration.rst.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/configuration.rst
2+
3+
.. _Configuration:
4+
5+
Configuration
6+
=============
7+
8+
.. automodule:: mink.configuration
9+
:members:

_sources/derivations.rst.txt

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/derivation.rst
2+
3+
.. _derivations:
4+
5+
***********
6+
Derivations
7+
***********
8+
9+
.. list-table::
10+
:header-rows: 1
11+
12+
* - Variable Name
13+
- Symbol
14+
* - Configuration
15+
- :math:`q`
16+
* - Configuration displacement
17+
- :math:`\Delta q`
18+
* - Integration timestep
19+
- :math:`dt`
20+
* - Velocity in tangent space
21+
- :math:`v = \frac{\Delta q}{dt}`
22+
* - Configuration limits
23+
- :math:`q_{\text{min}}, q_{\text{max}}`
24+
* - Maximum joint velocity magnitude
25+
- :math:`v_{\text{max}}`
26+
* - Identity matrix
27+
- :math:`I`
28+
29+
------
30+
Limits
31+
------
32+
33+
Configuration limit
34+
===================
35+
36+
Using a first-order Taylor expansion on the configuration, we can write the limit as:
37+
38+
.. math::
39+
\begin{aligned}
40+
q_{\text{min}} &\leq q \oplus v \cdot dt \leq q_{\text{max}} \\
41+
q_{\text{min}} &\leq q \oplus \Delta q \leq q_{\text{max}} \\
42+
q_{\text{min}} &\ominus q \leq \Delta q \leq q_{\text{max}} \ominus q
43+
\end{aligned}
44+
45+
Rewriting as :math:`G \Delta q \leq h`, we separate the inequalities:
46+
47+
.. math::
48+
\begin{aligned}
49+
&+I \cdot \Delta q \leq q_{\text{max}} \ominus q \\
50+
&-I \cdot \Delta q \leq q \ominus q_{\text{min}}
51+
\end{aligned}
52+
53+
Stacking these inequalities, we define:
54+
55+
.. math::
56+
\begin{aligned}
57+
G &= \begin{bmatrix} +I \\ -I \end{bmatrix}, \\
58+
h &= \begin{bmatrix} q_{\text{max}} \ominus q \\ q \ominus q_{\text{min}} \end{bmatrix}
59+
\end{aligned}
60+
61+
Velocity limit
62+
==============
63+
64+
Given the maximum joint velocity magnitudes :math:`v_{\text{max}}`, the joint velocity limits can be expressed as:
65+
66+
.. math::
67+
\begin{aligned}
68+
-v_{\text{max}} &\leq v \leq v_{\text{max}} \\
69+
-v_{\text{max}} &\leq \frac{\Delta q}{dt} \leq v_{\text{max}} \\
70+
-v_{\text{max}} \cdot dt &\leq \Delta q \leq v_{\text{max}} \cdot dt
71+
\end{aligned}
72+
73+
Rewriting as :math:`G \Delta q \leq h`, we separate the inequalities:
74+
75+
.. math::
76+
\begin{aligned}
77+
&+I \cdot \Delta q \leq v_{\text{max}} \cdot dt \\
78+
&-I \cdot \Delta q \leq v_{\text{max}} \cdot dt
79+
\end{aligned}
80+
81+
Stacking these inequalities, we define:
82+
83+
.. math::
84+
\begin{aligned}
85+
G \Delta q &\leq h \\
86+
\begin{bmatrix} +I \\ -I \end{bmatrix} \Delta q &\leq \begin{bmatrix} v_{\text{max}} \cdot dt \\ v_{\text{max}} \cdot dt \end{bmatrix}
87+
\end{aligned}
88+
89+
90+
-----
91+
Tasks
92+
-----

_sources/index.rst.txt

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/index.rst
2+
3+
.. title:: Table of Contents
4+
5+
####
6+
mink
7+
####
8+
9+
mink is a library for differential inverse kinematics in Python, based on the `MuJoCo <https://github.com/google-deepmind/mujoco>`_ physics engine.
10+
11+
.. image:: https://github.com/kevinzakka/mink/blob/assets/banner.png?raw=true
12+
:alt: Banner for mink
13+
14+
------------
15+
Installation
16+
------------
17+
18+
You can install `mink` with `pip`:
19+
20+
.. code:: bash
21+
22+
pip install mink
23+
24+
To include example dependencies:
25+
26+
.. code:: bash
27+
28+
pip install mink[examples]
29+
30+
.. toctree::
31+
:maxdepth: 1
32+
33+
configuration.rst
34+
lie.rst
35+
tasks.rst
36+
limits.rst
37+
inverse_kinematics.rst
38+
utilities.rst
39+
derivations.rst
40+
references.rst

_sources/inverse_kinematics.rst.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/inverse_kinematics.rst
2+
3+
******************
4+
Inverse kinematics
5+
******************
6+
7+
.. autofunction:: mink.solve_ik.solve_ik
8+
9+
.. autofunction:: mink.solve_ik.build_ik

_sources/lie.rst.txt

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/lie.rst
2+
3+
***
4+
Lie
5+
***
6+
7+
MuJoCo does not currently offer a native Lie group interface for rigid body transforms, though it
8+
does have a collection of functions for manipulating quaternions and rotation matrices. The goal
9+
of this library is to provide this unified interface. Whenever possible, the underlying
10+
lie operation leverages the corresponding MuJoCo function. For example,
11+
:py:meth:`~SO3.from_matrix` uses `mujoco.mju_mat2Quat` under the hood.
12+
13+
This library is heavily ported from `jaxlie <https://github.com/brentyi/jaxlie>`__,
14+
swapping out JAX for Numpy and adding a few additional features.
15+
16+
MatrixLieGroup
17+
==============
18+
19+
.. autoclass:: mink.lie.base.MatrixLieGroup
20+
:members:
21+
22+
SO3
23+
===
24+
25+
.. autoclass:: mink.lie.so3.SO3
26+
:show-inheritance:
27+
:inherited-members:
28+
:members:
29+
30+
SE3
31+
===
32+
33+
.. autoclass:: mink.lie.se3.SE3
34+
:show-inheritance:
35+
:inherited-members:
36+
:members:

_sources/limits.rst.txt

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/limits.rst
2+
3+
.. _Limits:
4+
5+
******
6+
Limits
7+
******
8+
9+
Definition
10+
==========
11+
12+
.. automodule:: mink.limits.limit
13+
:members:
14+
15+
Configuration limits
16+
====================
17+
18+
.. automodule:: mink.limits.configuration_limit
19+
:members:
20+
21+
Velocity limits
22+
===============
23+
24+
.. automodule:: mink.limits.velocity_limit
25+
:members:
26+
27+
28+
Collision avoidance limits
29+
==========================
30+
31+
.. automodule:: mink.limits.collision_avoidance_limit
32+
:members:

_sources/references.rst.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/references.rst
2+
3+
**********
4+
References
5+
**********
6+
7+
.. [FrameTaskJacobian] `Jacobian of a kinematic task and derivatives on manifolds <https://scaron.info/robotics/jacobian-of-a-kinematic-task-and-derivatives-on-manifolds.html>`_. S. Caron. 2023.

_sources/tasks.rst.txt

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/tasks.rst
2+
3+
.. _Tasks:
4+
5+
*****
6+
Tasks
7+
*****
8+
9+
.. automodule:: mink.tasks.task
10+
:members:
11+
12+
Frame task
13+
==========
14+
15+
.. automodule:: mink.tasks.frame_task
16+
:members:
17+
18+
Relative frame task
19+
===================
20+
21+
.. automodule:: mink.tasks.relative_frame_task
22+
:members:
23+
24+
Center of mass task
25+
===================
26+
27+
.. automodule:: mink.tasks.com_task
28+
:members:
29+
30+
Posture task
31+
============
32+
33+
.. automodule:: mink.tasks.posture_task
34+
:members:
35+
36+
Damping task
37+
============
38+
39+
.. automodule:: mink.tasks.damping_task
40+
:members:

_sources/utilities.rst.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/kevinzakka/mink/tree/main/doc/utilities.rst
2+
3+
*********
4+
Utilities
5+
*********
6+
7+
.. automodule:: mink.utils
8+
:members:

0 commit comments

Comments
 (0)