dexrtgt 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. dexrtgt-0.1.0/LICENSE +21 -0
  2. dexrtgt-0.1.0/LICENSE-THIRD-PARTY +32 -0
  3. dexrtgt-0.1.0/PKG-INFO +65 -0
  4. dexrtgt-0.1.0/README.md +3 -0
  5. dexrtgt-0.1.0/pyproject.toml +174 -0
  6. dexrtgt-0.1.0/setup.cfg +4 -0
  7. dexrtgt-0.1.0/src/dexrtgt.egg-info/PKG-INFO +65 -0
  8. dexrtgt-0.1.0/src/dexrtgt.egg-info/SOURCES.txt +106 -0
  9. dexrtgt-0.1.0/src/dexrtgt.egg-info/dependency_links.txt +1 -0
  10. dexrtgt-0.1.0/src/dexrtgt.egg-info/requires.txt +46 -0
  11. dexrtgt-0.1.0/src/dexrtgt.egg-info/top_level.txt +1 -0
  12. dexrtgt-0.1.0/src/robokit/__init__.py +31 -0
  13. dexrtgt-0.1.0/src/robokit/helpers/__init__.py +12 -0
  14. dexrtgt-0.1.0/src/robokit/helpers/humanoid_retarget/__init__.py +0 -0
  15. dexrtgt-0.1.0/src/robokit/helpers/humanoid_retarget/humanoid_retargeting_online.py +535 -0
  16. dexrtgt-0.1.0/src/robokit/helpers/humanoid_retarget/motion_viewer.py +535 -0
  17. dexrtgt-0.1.0/src/robokit/helpers/humanoid_retarget/utils/bvh_loader.py +487 -0
  18. dexrtgt-0.1.0/src/robokit/helpers/humanoid_retarget/utils/smplx_loader.py +122 -0
  19. dexrtgt-0.1.0/src/robokit/helpers/ik.py +921 -0
  20. dexrtgt-0.1.0/src/robokit/helpers/ik_cpu.py +122 -0
  21. dexrtgt-0.1.0/src/robokit/lie/__init__.py +5 -0
  22. dexrtgt-0.1.0/src/robokit/lie/pinocchio_se3.py +143 -0
  23. dexrtgt-0.1.0/src/robokit/lie/pinocchio_so3.py +103 -0
  24. dexrtgt-0.1.0/src/robokit/lie/se3.py +155 -0
  25. dexrtgt-0.1.0/src/robokit/lie/so3.py +147 -0
  26. dexrtgt-0.1.0/src/robokit/lie/torch_se3.py +407 -0
  27. dexrtgt-0.1.0/src/robokit/lie/torch_so3.py +315 -0
  28. dexrtgt-0.1.0/src/robokit/lie/warp_se3.py +530 -0
  29. dexrtgt-0.1.0/src/robokit/lie/warp_se3_kernels.py +1118 -0
  30. dexrtgt-0.1.0/src/robokit/lie/warp_so3.py +333 -0
  31. dexrtgt-0.1.0/src/robokit/lie/warp_so3_kernels.py +111 -0
  32. dexrtgt-0.1.0/src/robokit/opt/__init__.py +5 -0
  33. dexrtgt-0.1.0/src/robokit/opt/numpy_optimizer.py +134 -0
  34. dexrtgt-0.1.0/src/robokit/opt/optimizer.py +48 -0
  35. dexrtgt-0.1.0/src/robokit/opt/sparse_warp_optimizer.py +682 -0
  36. dexrtgt-0.1.0/src/robokit/opt/torch_optimizer.py +111 -0
  37. dexrtgt-0.1.0/src/robokit/opt/var_values.py +129 -0
  38. dexrtgt-0.1.0/src/robokit/opt/variables.py +41 -0
  39. dexrtgt-0.1.0/src/robokit/opt/warp_optimizer.py +493 -0
  40. dexrtgt-0.1.0/src/robokit/opt/warp_solver.py +316 -0
  41. dexrtgt-0.1.0/src/robokit/py.typed +0 -0
  42. dexrtgt-0.1.0/src/robokit/robo/__init__.py +5 -0
  43. dexrtgt-0.1.0/src/robokit/robo/numpy_robot.py +427 -0
  44. dexrtgt-0.1.0/src/robokit/robo/robot.py +208 -0
  45. dexrtgt-0.1.0/src/robokit/robo/robot_spec.py +754 -0
  46. dexrtgt-0.1.0/src/robokit/robo/torch_robot.py +549 -0
  47. dexrtgt-0.1.0/src/robokit/robo/warp_robot.py +791 -0
  48. dexrtgt-0.1.0/src/robokit/robo/warp_robot_kernels.py +819 -0
  49. dexrtgt-0.1.0/src/robokit/robo/yourdfpy.py +31 -0
  50. dexrtgt-0.1.0/src/robokit/terms/__init__.py +73 -0
  51. dexrtgt-0.1.0/src/robokit/terms/numpy/__init__.py +0 -0
  52. dexrtgt-0.1.0/src/robokit/terms/numpy/base_damping_task.py +88 -0
  53. dexrtgt-0.1.0/src/robokit/terms/numpy/base_step_limit.py +56 -0
  54. dexrtgt-0.1.0/src/robokit/terms/numpy/frame_task.py +103 -0
  55. dexrtgt-0.1.0/src/robokit/terms/numpy/position_limit.py +77 -0
  56. dexrtgt-0.1.0/src/robokit/terms/numpy/rest_task.py +105 -0
  57. dexrtgt-0.1.0/src/robokit/terms/numpy/smoothness_task.py +129 -0
  58. dexrtgt-0.1.0/src/robokit/terms/numpy/velocity_limit_task.py +138 -0
  59. dexrtgt-0.1.0/src/robokit/terms/terms.py +314 -0
  60. dexrtgt-0.1.0/src/robokit/terms/torch/__init__.py +0 -0
  61. dexrtgt-0.1.0/src/robokit/terms/torch/base_damping_task.py +88 -0
  62. dexrtgt-0.1.0/src/robokit/terms/torch/base_step_limit.py +72 -0
  63. dexrtgt-0.1.0/src/robokit/terms/torch/frame_task.py +72 -0
  64. dexrtgt-0.1.0/src/robokit/terms/torch/position_limit.py +68 -0
  65. dexrtgt-0.1.0/src/robokit/terms/torch/rest_task.py +115 -0
  66. dexrtgt-0.1.0/src/robokit/terms/torch/smoothness_task.py +137 -0
  67. dexrtgt-0.1.0/src/robokit/terms/torch/velocity_limit_task.py +112 -0
  68. dexrtgt-0.1.0/src/robokit/terms/warp/__init__.py +0 -0
  69. dexrtgt-0.1.0/src/robokit/terms/warp/base_damping_task.py +274 -0
  70. dexrtgt-0.1.0/src/robokit/terms/warp/base_step_limit.py +235 -0
  71. dexrtgt-0.1.0/src/robokit/terms/warp/collision_task.py +533 -0
  72. dexrtgt-0.1.0/src/robokit/terms/warp/contact_attraction_task.py +263 -0
  73. dexrtgt-0.1.0/src/robokit/terms/warp/distance_task.py +896 -0
  74. dexrtgt-0.1.0/src/robokit/terms/warp/frame_position_huber_task.py +308 -0
  75. dexrtgt-0.1.0/src/robokit/terms/warp/frame_retargeting_task.py +419 -0
  76. dexrtgt-0.1.0/src/robokit/terms/warp/frame_task.py +418 -0
  77. dexrtgt-0.1.0/src/robokit/terms/warp/frame_vector_distance_task.py +380 -0
  78. dexrtgt-0.1.0/src/robokit/terms/warp/position_limit.py +187 -0
  79. dexrtgt-0.1.0/src/robokit/terms/warp/position_score.py +173 -0
  80. dexrtgt-0.1.0/src/robokit/terms/warp/position_task.py +228 -0
  81. dexrtgt-0.1.0/src/robokit/terms/warp/rest_task.py +320 -0
  82. dexrtgt-0.1.0/src/robokit/terms/warp/rotation_task.py +226 -0
  83. dexrtgt-0.1.0/src/robokit/terms/warp/self_penetration_task.py +312 -0
  84. dexrtgt-0.1.0/src/robokit/terms/warp/smoothness_task.py +366 -0
  85. dexrtgt-0.1.0/src/robokit/terms/warp/velocity_limit_task.py +242 -0
  86. dexrtgt-0.1.0/src/robokit/thirdparty/__init__.py +0 -0
  87. dexrtgt-0.1.0/src/robokit/thirdparty/pytorch3d/__init__.py +0 -0
  88. dexrtgt-0.1.0/src/robokit/thirdparty/pytorch3d/math.py +87 -0
  89. dexrtgt-0.1.0/src/robokit/thirdparty/pytorch3d/rotation_conversions.py +646 -0
  90. dexrtgt-0.1.0/src/robokit/thirdparty/pytorch3d/se3.py +223 -0
  91. dexrtgt-0.1.0/src/robokit/thirdparty/pytorch3d/so3.py +269 -0
  92. dexrtgt-0.1.0/src/robokit/types.py +16 -0
  93. dexrtgt-0.1.0/src/robokit/utils/__init__.py +0 -0
  94. dexrtgt-0.1.0/src/robokit/utils/tensor_utils.py +264 -0
  95. dexrtgt-0.1.0/src/robokit/utils/visualize_utils.py +95 -0
  96. dexrtgt-0.1.0/src/robokit/utils/warp_utils.py +444 -0
  97. dexrtgt-0.1.0/src/robokit/xform/__init__.py +0 -0
  98. dexrtgt-0.1.0/src/robokit/xform/numpy/__init__.py +32 -0
  99. dexrtgt-0.1.0/src/robokit/xform/numpy/rotation_conversions.py +363 -0
  100. dexrtgt-0.1.0/src/robokit/xform/numpy/transforms.py +87 -0
  101. dexrtgt-0.1.0/src/robokit/xform/torch/__init__.py +47 -0
  102. dexrtgt-0.1.0/src/robokit/xform/torch/rotation_conversions.py +317 -0
  103. dexrtgt-0.1.0/src/robokit/xform/torch/transforms.py +262 -0
  104. dexrtgt-0.1.0/src/robokit/xform/torch/utils.py +298 -0
  105. dexrtgt-0.1.0/src/robokit/xform/warp/__init__.py +0 -0
  106. dexrtgt-0.1.0/src/robokit/xform/warp/rotation_conversions.py +261 -0
  107. dexrtgt-0.1.0/src/robokit/xform/warp/torch_wrappers.py +992 -0
  108. dexrtgt-0.1.0/src/robokit/xform/warp/transforms.py +46 -0
dexrtgt-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 dexrtgt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,32 @@
1
+ PyTorch3D License (https://github.com/facebookresearch/pytorch3d):
2
+
3
+ BSD License
4
+
5
+ For PyTorch3D software
6
+
7
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
8
+
9
+ Redistribution and use in source and binary forms, with or without modification,
10
+ are permitted provided that the following conditions are met:
11
+
12
+ * Redistributions of source code must retain the above copyright notice, this
13
+ list of conditions and the following disclaimer.
14
+
15
+ * Redistributions in binary form must reproduce the above copyright notice,
16
+ this list of conditions and the following disclaimer in the documentation
17
+ and/or other materials provided with the distribution.
18
+
19
+ * Neither the name Meta nor the names of its contributors may be used to
20
+ endorse or promote products derived from this software without specific
21
+ prior written permission.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dexrtgt-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: dexrtgt
3
+ Version: 0.1.0
4
+ Summary: dexrtgt
5
+ Author: dexrtgt
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.8
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Requires-Python: <3.13,>=3.8
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ License-File: LICENSE-THIRD-PARTY
19
+ Requires-Dist: packaging
20
+ Requires-Dist: typing-extensions
21
+ Requires-Dist: jaxtyping
22
+ Requires-Dist: rich
23
+ Requires-Dist: PyYAML
24
+ Requires-Dist: numpy<2
25
+ Requires-Dist: yourdfpy
26
+ Requires-Dist: pin
27
+ Requires-Dist: qpsolvers[daqp]
28
+ Requires-Dist: viser
29
+ Requires-Dist: einops
30
+ Requires-Dist: warp-lang
31
+ Requires-Dist: beartype>=0.19.0
32
+ Requires-Dist: smplx>=0.1.28
33
+ Requires-Dist: natsort>=8.4.0
34
+ Requires-Dist: robot-descriptions>=1.22.0
35
+ Provides-Extra: cpu
36
+ Requires-Dist: torch; extra == "cpu"
37
+ Provides-Extra: cu126
38
+ Requires-Dist: torch; extra == "cu126"
39
+ Provides-Extra: cu128
40
+ Requires-Dist: torch; extra == "cu128"
41
+ Requires-Dist: nvidia-nccl-cu12; extra == "cu128"
42
+ Provides-Extra: dev
43
+ Requires-Dist: robot_descriptions; extra == "dev"
44
+ Requires-Dist: pandas; extra == "dev"
45
+ Requires-Dist: tabulate; extra == "dev"
46
+ Requires-Dist: pin-pink; extra == "dev"
47
+ Requires-Dist: smplx; extra == "dev"
48
+ Requires-Dist: opencv-python; extra == "dev"
49
+ Requires-Dist: ipython; extra == "dev"
50
+ Requires-Dist: ruff; extra == "dev"
51
+ Requires-Dist: pyright; extra == "dev"
52
+ Requires-Dist: pytest; extra == "dev"
53
+ Requires-Dist: xdoctest; extra == "dev"
54
+ Requires-Dist: coverage; extra == "dev"
55
+ Requires-Dist: pytest-cov; extra == "dev"
56
+ Requires-Dist: pre-commit; extra == "dev"
57
+ Requires-Dist: tyro; extra == "dev"
58
+ Requires-Dist: gdown; extra == "dev"
59
+ Requires-Dist: tabulate>=0.9.0; extra == "dev"
60
+ Requires-Dist: ipdb>=0.13.13; extra == "dev"
61
+ Dynamic: license-file
62
+
63
+ # dexrtgt
64
+
65
+ GPU-accelerated inverse kinematics and humanoid motion retargeting.
@@ -0,0 +1,3 @@
1
+ # dexrtgt
2
+
3
+ GPU-accelerated inverse kinematics and humanoid motion retargeting.
@@ -0,0 +1,174 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dexrtgt"
7
+ version = "0.1.0"
8
+ authors = [{ name = "dexrtgt" }]
9
+ description = "dexrtgt"
10
+ readme = "README.md"
11
+ license = { text = "MIT" }
12
+ requires-python = ">=3.8,<3.13"
13
+ classifiers = [
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: 3.8",
16
+ "Programming Language :: Python :: 3.9",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ ]
23
+ dependencies = [
24
+ "packaging",
25
+ "typing-extensions",
26
+ "jaxtyping",
27
+ "rich",
28
+ "PyYAML",
29
+ "numpy<2",
30
+ "yourdfpy",
31
+ "pin",
32
+ "qpsolvers[daqp]",
33
+ "viser",
34
+ "einops",
35
+ "warp-lang",
36
+ "beartype>=0.19.0",
37
+ "smplx>=0.1.28",
38
+ "natsort>=8.4.0",
39
+ "robot-descriptions>=1.22.0",
40
+ ]
41
+
42
+
43
+ [project.optional-dependencies]
44
+ cpu = ["torch"]
45
+ cu126 = ["torch"]
46
+ cu128 = [
47
+ "torch",
48
+ "nvidia-nccl-cu12",
49
+ ]
50
+ dev = [
51
+ "robot_descriptions",
52
+ "pandas",
53
+ "tabulate",
54
+ "pin-pink",
55
+ "smplx",
56
+ "opencv-python",
57
+ "ipython",
58
+ "ruff",
59
+ "pyright",
60
+ "pytest",
61
+ "xdoctest",
62
+ "coverage",
63
+ "pytest-cov",
64
+ "pre-commit",
65
+ "tyro",
66
+ "gdown",
67
+ "tabulate>=0.9.0",
68
+ "ipdb>=0.13.13",
69
+ ]
70
+
71
+ [tool.setuptools]
72
+ include-package-data = true
73
+
74
+ [tool.setuptools.packages.find]
75
+ where = ["src"]
76
+
77
+ [tool.setuptools.package-data]
78
+ robokit = ["**/*.c", "**/*.cpp", "**/*.h", "**/*.hpp", "**/*.cu", "**/*.cuh", "**/*.urdf", "**/*.yaml", "**/*.json"]
79
+
80
+ [tool.ruff]
81
+ line-length = 120
82
+ exclude = ["src/robokit/thirdparty", "thirdparty"]
83
+
84
+ [tool.ruff.lint]
85
+ select = [
86
+ "E", # pycodestyle errors.
87
+ "I", # isort
88
+ "F", # Pyflakes rules.
89
+ "PLC", # Pylint convention warnings.
90
+ "PLE", # Pylint errors.
91
+ "PLR", # Pylint refactor recommendations.
92
+ "PLW", # Pylint warnings.
93
+ ]
94
+ ignore = [
95
+ "E731", # Do not assign a lambda expression, use a def.
96
+ "E741", # Ambiguous variable name. (l, O, or I)
97
+ "E501", # Line too long.
98
+ "E721", # Do not compare types, use `isinstance()`.
99
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
100
+ "F821", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
101
+ "PLR2004", # Magic value used in comparison.
102
+ "PLR0915", # Too many statements.
103
+ "PLR0913", # Too many arguments.
104
+ "PLC0414", # Import alias does not rename variable. (this is used for exporting names)
105
+ "PLC1901", # Use falsey strings.
106
+ "PLC0415", # `import` should be at the top-level of a file
107
+ "PLR5501", # Use `elif` instead of `else if`.
108
+ "PLR0911", # Too many return statements.
109
+ "PLR0912", # Too many branches.
110
+ "PLW0603", # Globa statement updates are discouraged.
111
+ "PLW2901", # For loop variable overwritten.
112
+ ]
113
+
114
+ [tool.ruff.lint.isort]
115
+ known-first-party = ["robokit"]
116
+ force-single-line = false
117
+ lines-after-imports = 2
118
+
119
+ [tool.pytest.ini_options]
120
+ addopts = "--cov=robokit --cov-report=term --ignore=thirdparty"
121
+
122
+ [[tool.uv.index]]
123
+ name = "pytorch-cu126"
124
+ url = "https://download.pytorch.org/whl/cu126"
125
+ explicit = true
126
+
127
+ [[tool.uv.index]]
128
+ name = "pytorch-cu128"
129
+ url = "https://download.pytorch.org/whl/cu128"
130
+ explicit = true
131
+
132
+ [[tool.uv.index]]
133
+ name = "pytorch-cu118"
134
+ url = "https://download.pytorch.org/whl/cu118"
135
+ explicit = true
136
+
137
+ [[tool.uv.index]]
138
+ name = "pytorch-cpu"
139
+ url = "https://download.pytorch.org/whl/cpu"
140
+ explicit = true
141
+
142
+ [tool.uv]
143
+ constraint-dependencies = [
144
+ "pin<3.7.0; python_version < '3.9'",
145
+ ]
146
+ conflicts = [
147
+ [{ extra = "cpu" }, { extra = "cu126" }],
148
+ [{ extra = "cpu" }, { extra = "cu128" }],
149
+ [{ extra = "cu126" }, { extra = "cu128" }],
150
+ ]
151
+
152
+ [tool.uv.sources]
153
+ torch = [
154
+ { index = "pytorch-cu128", extra = "cu128", marker = "python_version >= '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" },
155
+ { index = "pytorch-cu126", extra = "cu126", marker = "python_version >= '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" },
156
+ { index = "pytorch-cpu", extra = "cpu", marker = "python_version >= '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" },
157
+ { index = "pytorch-cu118", marker = "python_version < '3.9'" },
158
+ ]
159
+
160
+ [tool.coverage.run]
161
+ omit = ["src/robokit/thirdparty/*"]
162
+
163
+
164
+ [tool.pyright]
165
+ typeCheckingMode = "standard"
166
+ include = ["src", "examples"]
167
+ ignore = ["src/robokit/thirdparty"]
168
+ reportAttributeAccessIssue = false
169
+ reportInvalidTypeForm = false
170
+ reportAbstractUsage = false
171
+ reportIncompatibleMethodOverride = false
172
+ reportOverlappingOverload = false
173
+ reportPossiblyUnboundVariable = false
174
+ reportOptionalMemberAccess = false
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: dexrtgt
3
+ Version: 0.1.0
4
+ Summary: dexrtgt
5
+ Author: dexrtgt
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.8
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Requires-Python: <3.13,>=3.8
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ License-File: LICENSE-THIRD-PARTY
19
+ Requires-Dist: packaging
20
+ Requires-Dist: typing-extensions
21
+ Requires-Dist: jaxtyping
22
+ Requires-Dist: rich
23
+ Requires-Dist: PyYAML
24
+ Requires-Dist: numpy<2
25
+ Requires-Dist: yourdfpy
26
+ Requires-Dist: pin
27
+ Requires-Dist: qpsolvers[daqp]
28
+ Requires-Dist: viser
29
+ Requires-Dist: einops
30
+ Requires-Dist: warp-lang
31
+ Requires-Dist: beartype>=0.19.0
32
+ Requires-Dist: smplx>=0.1.28
33
+ Requires-Dist: natsort>=8.4.0
34
+ Requires-Dist: robot-descriptions>=1.22.0
35
+ Provides-Extra: cpu
36
+ Requires-Dist: torch; extra == "cpu"
37
+ Provides-Extra: cu126
38
+ Requires-Dist: torch; extra == "cu126"
39
+ Provides-Extra: cu128
40
+ Requires-Dist: torch; extra == "cu128"
41
+ Requires-Dist: nvidia-nccl-cu12; extra == "cu128"
42
+ Provides-Extra: dev
43
+ Requires-Dist: robot_descriptions; extra == "dev"
44
+ Requires-Dist: pandas; extra == "dev"
45
+ Requires-Dist: tabulate; extra == "dev"
46
+ Requires-Dist: pin-pink; extra == "dev"
47
+ Requires-Dist: smplx; extra == "dev"
48
+ Requires-Dist: opencv-python; extra == "dev"
49
+ Requires-Dist: ipython; extra == "dev"
50
+ Requires-Dist: ruff; extra == "dev"
51
+ Requires-Dist: pyright; extra == "dev"
52
+ Requires-Dist: pytest; extra == "dev"
53
+ Requires-Dist: xdoctest; extra == "dev"
54
+ Requires-Dist: coverage; extra == "dev"
55
+ Requires-Dist: pytest-cov; extra == "dev"
56
+ Requires-Dist: pre-commit; extra == "dev"
57
+ Requires-Dist: tyro; extra == "dev"
58
+ Requires-Dist: gdown; extra == "dev"
59
+ Requires-Dist: tabulate>=0.9.0; extra == "dev"
60
+ Requires-Dist: ipdb>=0.13.13; extra == "dev"
61
+ Dynamic: license-file
62
+
63
+ # dexrtgt
64
+
65
+ GPU-accelerated inverse kinematics and humanoid motion retargeting.
@@ -0,0 +1,106 @@
1
+ LICENSE
2
+ LICENSE-THIRD-PARTY
3
+ README.md
4
+ pyproject.toml
5
+ src/dexrtgt.egg-info/PKG-INFO
6
+ src/dexrtgt.egg-info/SOURCES.txt
7
+ src/dexrtgt.egg-info/dependency_links.txt
8
+ src/dexrtgt.egg-info/requires.txt
9
+ src/dexrtgt.egg-info/top_level.txt
10
+ src/robokit/__init__.py
11
+ src/robokit/py.typed
12
+ src/robokit/types.py
13
+ src/robokit/helpers/__init__.py
14
+ src/robokit/helpers/ik.py
15
+ src/robokit/helpers/ik_cpu.py
16
+ src/robokit/helpers/humanoid_retarget/__init__.py
17
+ src/robokit/helpers/humanoid_retarget/humanoid_retargeting_online.py
18
+ src/robokit/helpers/humanoid_retarget/motion_viewer.py
19
+ src/robokit/helpers/humanoid_retarget/utils/bvh_loader.py
20
+ src/robokit/helpers/humanoid_retarget/utils/smplx_loader.py
21
+ src/robokit/lie/__init__.py
22
+ src/robokit/lie/pinocchio_se3.py
23
+ src/robokit/lie/pinocchio_so3.py
24
+ src/robokit/lie/se3.py
25
+ src/robokit/lie/so3.py
26
+ src/robokit/lie/torch_se3.py
27
+ src/robokit/lie/torch_so3.py
28
+ src/robokit/lie/warp_se3.py
29
+ src/robokit/lie/warp_se3_kernels.py
30
+ src/robokit/lie/warp_so3.py
31
+ src/robokit/lie/warp_so3_kernels.py
32
+ src/robokit/opt/__init__.py
33
+ src/robokit/opt/numpy_optimizer.py
34
+ src/robokit/opt/optimizer.py
35
+ src/robokit/opt/sparse_warp_optimizer.py
36
+ src/robokit/opt/torch_optimizer.py
37
+ src/robokit/opt/var_values.py
38
+ src/robokit/opt/variables.py
39
+ src/robokit/opt/warp_optimizer.py
40
+ src/robokit/opt/warp_solver.py
41
+ src/robokit/robo/__init__.py
42
+ src/robokit/robo/numpy_robot.py
43
+ src/robokit/robo/robot.py
44
+ src/robokit/robo/robot_spec.py
45
+ src/robokit/robo/torch_robot.py
46
+ src/robokit/robo/warp_robot.py
47
+ src/robokit/robo/warp_robot_kernels.py
48
+ src/robokit/robo/yourdfpy.py
49
+ src/robokit/terms/__init__.py
50
+ src/robokit/terms/terms.py
51
+ src/robokit/terms/numpy/__init__.py
52
+ src/robokit/terms/numpy/base_damping_task.py
53
+ src/robokit/terms/numpy/base_step_limit.py
54
+ src/robokit/terms/numpy/frame_task.py
55
+ src/robokit/terms/numpy/position_limit.py
56
+ src/robokit/terms/numpy/rest_task.py
57
+ src/robokit/terms/numpy/smoothness_task.py
58
+ src/robokit/terms/numpy/velocity_limit_task.py
59
+ src/robokit/terms/torch/__init__.py
60
+ src/robokit/terms/torch/base_damping_task.py
61
+ src/robokit/terms/torch/base_step_limit.py
62
+ src/robokit/terms/torch/frame_task.py
63
+ src/robokit/terms/torch/position_limit.py
64
+ src/robokit/terms/torch/rest_task.py
65
+ src/robokit/terms/torch/smoothness_task.py
66
+ src/robokit/terms/torch/velocity_limit_task.py
67
+ src/robokit/terms/warp/__init__.py
68
+ src/robokit/terms/warp/base_damping_task.py
69
+ src/robokit/terms/warp/base_step_limit.py
70
+ src/robokit/terms/warp/collision_task.py
71
+ src/robokit/terms/warp/contact_attraction_task.py
72
+ src/robokit/terms/warp/distance_task.py
73
+ src/robokit/terms/warp/frame_position_huber_task.py
74
+ src/robokit/terms/warp/frame_retargeting_task.py
75
+ src/robokit/terms/warp/frame_task.py
76
+ src/robokit/terms/warp/frame_vector_distance_task.py
77
+ src/robokit/terms/warp/position_limit.py
78
+ src/robokit/terms/warp/position_score.py
79
+ src/robokit/terms/warp/position_task.py
80
+ src/robokit/terms/warp/rest_task.py
81
+ src/robokit/terms/warp/rotation_task.py
82
+ src/robokit/terms/warp/self_penetration_task.py
83
+ src/robokit/terms/warp/smoothness_task.py
84
+ src/robokit/terms/warp/velocity_limit_task.py
85
+ src/robokit/thirdparty/__init__.py
86
+ src/robokit/thirdparty/pytorch3d/__init__.py
87
+ src/robokit/thirdparty/pytorch3d/math.py
88
+ src/robokit/thirdparty/pytorch3d/rotation_conversions.py
89
+ src/robokit/thirdparty/pytorch3d/se3.py
90
+ src/robokit/thirdparty/pytorch3d/so3.py
91
+ src/robokit/utils/__init__.py
92
+ src/robokit/utils/tensor_utils.py
93
+ src/robokit/utils/visualize_utils.py
94
+ src/robokit/utils/warp_utils.py
95
+ src/robokit/xform/__init__.py
96
+ src/robokit/xform/numpy/__init__.py
97
+ src/robokit/xform/numpy/rotation_conversions.py
98
+ src/robokit/xform/numpy/transforms.py
99
+ src/robokit/xform/torch/__init__.py
100
+ src/robokit/xform/torch/rotation_conversions.py
101
+ src/robokit/xform/torch/transforms.py
102
+ src/robokit/xform/torch/utils.py
103
+ src/robokit/xform/warp/__init__.py
104
+ src/robokit/xform/warp/rotation_conversions.py
105
+ src/robokit/xform/warp/torch_wrappers.py
106
+ src/robokit/xform/warp/transforms.py
@@ -0,0 +1,46 @@
1
+ packaging
2
+ typing-extensions
3
+ jaxtyping
4
+ rich
5
+ PyYAML
6
+ numpy<2
7
+ yourdfpy
8
+ pin
9
+ qpsolvers[daqp]
10
+ viser
11
+ einops
12
+ warp-lang
13
+ beartype>=0.19.0
14
+ smplx>=0.1.28
15
+ natsort>=8.4.0
16
+ robot-descriptions>=1.22.0
17
+
18
+ [cpu]
19
+ torch
20
+
21
+ [cu126]
22
+ torch
23
+
24
+ [cu128]
25
+ torch
26
+ nvidia-nccl-cu12
27
+
28
+ [dev]
29
+ robot_descriptions
30
+ pandas
31
+ tabulate
32
+ pin-pink
33
+ smplx
34
+ opencv-python
35
+ ipython
36
+ ruff
37
+ pyright
38
+ pytest
39
+ xdoctest
40
+ coverage
41
+ pytest-cov
42
+ pre-commit
43
+ tyro
44
+ gdown
45
+ tabulate>=0.9.0
46
+ ipdb>=0.13.13
@@ -0,0 +1 @@
1
+ robokit
@@ -0,0 +1,31 @@
1
+ import logging
2
+ from dataclasses import dataclass
3
+
4
+ import rich
5
+ from rich.logging import RichHandler
6
+
7
+
8
+ # ----------------------------- Logging -----------------------------
9
+ rich.reconfigure(log_path=False)
10
+
11
+ logger = logging.getLogger("robokit")
12
+ logger.propagate = False
13
+ logger.setLevel("INFO")
14
+ if not logger.handlers:
15
+ logger.addHandler(RichHandler(console=rich.get_console(), show_path=False, log_time_format="[%X]"))
16
+
17
+
18
+ # ----------------------------- Config -----------------------------
19
+ @dataclass
20
+ class Config:
21
+ """Configuration for robokit."""
22
+
23
+ enable_torch_jit: bool = True
24
+ """Whether to enable torch jit."""
25
+
26
+
27
+ CONFIG = Config()
28
+
29
+ __version__ = "0.1.0"
30
+
31
+ __all__ = ["CONFIG", "__version__"]
@@ -0,0 +1,12 @@
1
+ from robokit.helpers.ik import IKHelper, IKHelperConfig
2
+ from robokit.helpers.ik_cpu import CPUIKHelper, CPUIKHelperConfig
3
+ from robokit.opt.warp_solver import WarpStageConfig
4
+
5
+
6
+ __all__ = [
7
+ "CPUIKHelper",
8
+ "CPUIKHelperConfig",
9
+ "IKHelper",
10
+ "IKHelperConfig",
11
+ "WarpStageConfig",
12
+ ]