scikit-robot 0.4.6__tar.gz → 0.4.7__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 (223) hide show
  1. {scikit_robot-0.4.6/scikit_robot.egg-info → scikit_robot-0.4.7}/PKG-INFO +1 -1
  2. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/pyproject.toml +1 -1
  3. {scikit_robot-0.4.6 → scikit_robot-0.4.7/scikit_robot.egg-info}/PKG-INFO +1 -1
  4. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/dynamics/differentiable.py +69 -47
  5. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/LICENSE +0 -0
  6. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/MANIFEST.in +0 -0
  7. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/README.md +0 -0
  8. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/SOURCES.txt +0 -0
  9. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/dependency_links.txt +0 -0
  10. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/entry_points.txt +0 -0
  11. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/not-zip-safe +0 -0
  12. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/requires.txt +0 -0
  13. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/scikit_robot.egg-info/top_level.txt +0 -0
  14. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/setup.cfg +0 -0
  15. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/__init__.py +0 -0
  16. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/_lazy_imports.py +0 -0
  17. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/__init__.py +0 -0
  18. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/canonicalize_urdf.py +0 -0
  19. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/change_urdf_root.py +0 -0
  20. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/cli.py +0 -0
  21. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/convert_urdf_mesh.py +0 -0
  22. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/convert_urdf_to_mjcf.py +0 -0
  23. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/convert_urdf_to_primitives.py +0 -0
  24. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/convert_urdf_to_usd.py +0 -0
  25. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/convert_wheel_collision.py +0 -0
  26. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/extract_sub_urdf.py +0 -0
  27. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/generate_robot_class.py +0 -0
  28. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/modularize_urdf.py +0 -0
  29. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/scale_urdf.py +0 -0
  30. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/transform_urdf.py +0 -0
  31. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/urdf_hash.py +0 -0
  32. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/urdf_tree.py +0 -0
  33. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/visualize_mesh.py +0 -0
  34. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/apps/visualize_urdf.py +0 -0
  35. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/assembly/__init__.py +0 -0
  36. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/assembly/module_assembly.py +0 -0
  37. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/assembly/module_registry.py +0 -0
  38. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/backend/__init__.py +0 -0
  39. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/backend/jax_backend.py +0 -0
  40. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/backend/math_utils.py +0 -0
  41. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/backend/numpy_backend.py +0 -0
  42. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/backend/registry.py +0 -0
  43. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/__init__.py +0 -0
  44. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/distance.py +0 -0
  45. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/environment_collision.py +0 -0
  46. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/geometry.py +0 -0
  47. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/robot_collision.py +0 -0
  48. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/collision/self_collision.py +0 -0
  49. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/coordinates/__init__.py +0 -0
  50. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/coordinates/base.py +0 -0
  51. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/coordinates/geo.py +0 -0
  52. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/coordinates/math.py +0 -0
  53. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/__init__.py +0 -0
  54. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/kuka.urdf +0 -0
  55. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/finger_base_left.stl +0 -0
  56. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/finger_base_right.stl +0 -0
  57. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/finger_tip_left.stl +0 -0
  58. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/finger_tip_right.stl +0 -0
  59. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_0.mtl +0 -0
  60. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_0.obj +0 -0
  61. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_0.stl +0 -0
  62. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_1.mtl +0 -0
  63. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_1.obj +0 -0
  64. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_1.stl +0 -0
  65. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_2.mtl +0 -0
  66. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_2.obj +0 -0
  67. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_2.stl +0 -0
  68. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_3.mtl +0 -0
  69. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_3.obj +0 -0
  70. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_3.stl +0 -0
  71. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_4.mtl +0 -0
  72. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_4.obj +0 -0
  73. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_4.stl +0 -0
  74. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_5.mtl +0 -0
  75. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_5.obj +0 -0
  76. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_5.stl +0 -0
  77. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_6.mtl +0 -0
  78. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_6.obj +0 -0
  79. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_6.stl +0 -0
  80. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_7.mtl +0 -0
  81. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_7.obj +0 -0
  82. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/kuka_description/meshes/link_7.stl +0 -0
  83. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/robot_descriptions/urdf/r8_6.urdf +0 -0
  84. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/CMakeLists.txt.ros2.template +0 -0
  85. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/gazebo.launch.py.template +0 -0
  86. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/gazebo_moveit.launch.py.template +0 -0
  87. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/isaac_fjt_server.py.template +0 -0
  88. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/moveit.rviz.template +0 -0
  89. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/package.xml.ros2.template +0 -0
  90. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/ros2_control.xacro.joint.template +0 -0
  91. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/ros2_control.xacro.template +0 -0
  92. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/data/ros_config_templates/setup_assistant.template +0 -0
  93. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/dynamics/__init__.py +0 -0
  94. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/dynamics/gravity.py +0 -0
  95. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/__init__.py +0 -0
  96. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/contact_links.py +0 -0
  97. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/isaac/__init__.py +0 -0
  98. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/isaac/fjt_server.py +0 -0
  99. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/task.py +0 -0
  100. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/export/usd.py +0 -0
  101. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/__init__.py +0 -0
  102. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/_pybullet.py +0 -0
  103. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/__init__.py +0 -0
  104. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/base.py +0 -0
  105. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/move_base.py +0 -0
  106. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/nextage.py +0 -0
  107. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/panda.py +0 -0
  108. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/pr2.py +0 -0
  109. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/tf_utils.py +0 -0
  110. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros/transform_listener.py +0 -0
  111. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros2/__init__.py +0 -0
  112. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros2/base.py +0 -0
  113. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros2/gripper.py +0 -0
  114. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/interfaces/ros2/panda.py +0 -0
  115. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/__init__.py +0 -0
  116. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/_base_placement_jax.py +0 -0
  117. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/base_placement.py +0 -0
  118. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/differentiable.py +0 -0
  119. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/inverse_reachability_map.py +0 -0
  120. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/loop_closure.py +0 -0
  121. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/kinematics/reachability_map.py +0 -0
  122. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/__init__.py +0 -0
  123. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/joint.py +0 -0
  124. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/joint_limit_table.py +0 -0
  125. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/link.py +0 -0
  126. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/primitives.py +0 -0
  127. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/robot_model.py +0 -0
  128. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/model/skeleton.py +0 -0
  129. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/__init__.py +0 -0
  130. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/aero.py +0 -0
  131. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/differential_wrist_sample.py +0 -0
  132. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/fetch.py +0 -0
  133. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/g1.py +0 -0
  134. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/griphis.py +0 -0
  135. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/hydrus.py +0 -0
  136. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/jaxon_jvrc.py +0 -0
  137. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/jedy.py +0 -0
  138. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/kuka.py +0 -0
  139. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/nextage.py +0 -0
  140. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/panda.py +0 -0
  141. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/pr2.py +0 -0
  142. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/r8_6.py +0 -0
  143. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/tycoon.py +0 -0
  144. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/models/urdf.py +0 -0
  145. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/__init__.py +0 -0
  146. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/collision_checker.py +0 -0
  147. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/inverse_kinematics_optimization.py +0 -0
  148. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/sqp_based.py +0 -0
  149. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/swept_sphere.py +0 -0
  150. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/__init__.py +0 -0
  151. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/collision.py +0 -0
  152. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/fk_utils.py +0 -0
  153. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/gridsdf_collision.py +0 -0
  154. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/problem.py +0 -0
  155. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/residuals.py +0 -0
  156. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/__init__.py +0 -0
  157. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/augmented_lagrangian.py +0 -0
  158. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/base.py +0 -0
  159. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/gradient_descent.py +0 -0
  160. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/jaxls_solver.py +0 -0
  161. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/scipy_solver.py +0 -0
  162. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/solvers/solver_utils.py +0 -0
  163. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/trajectory.py +0 -0
  164. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/trajectory_optimization/world_surface_collision.py +0 -0
  165. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/planner/utils.py +0 -0
  166. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/pycompat.py +0 -0
  167. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/sdf/__init__.py +0 -0
  168. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/sdf/signed_distance_function.py +0 -0
  169. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/__init__.py +0 -0
  170. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/aggregate.py +0 -0
  171. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/canonicalize.py +0 -0
  172. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/compare.py +0 -0
  173. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/extract_sub_urdf.py +0 -0
  174. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/flip_axis.py +0 -0
  175. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/hash.py +0 -0
  176. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/link_origins.py +0 -0
  177. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/llm_grouping.py +0 -0
  178. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/merge_fixed_links.py +0 -0
  179. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/modularize_urdf.py +0 -0
  180. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/primitives_converter.py +0 -0
  181. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/robot_class_generator.py +0 -0
  182. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/__init__.py +0 -0
  183. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/export.py +0 -0
  184. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/gazebo_generator.py +0 -0
  185. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/moveit_generator.py +0 -0
  186. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/moveit_package.py +0 -0
  187. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_config/urdf_parser.py +0 -0
  188. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_package.py +0 -0
  189. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/ros_package_exporter.py +0 -0
  190. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/sanitize.py +0 -0
  191. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/scale_urdf.py +0 -0
  192. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/structure.py +0 -0
  193. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/transform_urdf.py +0 -0
  194. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/wheel_collision_converter.py +0 -0
  195. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/urdf/xml_root_link_changer.py +0 -0
  196. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/__init__.py +0 -0
  197. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/_blender_decimate_core.py +0 -0
  198. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/_blender_remesh_core.py +0 -0
  199. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/archive.py +0 -0
  200. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/blender_mesh.py +0 -0
  201. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/checksum.py +0 -0
  202. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/convex_decomposition.py +0 -0
  203. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/draco.py +0 -0
  204. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/inertia.py +0 -0
  205. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/listify.py +0 -0
  206. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/mesh.py +0 -0
  207. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/mjcf_converter.py +0 -0
  208. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/package.py +0 -0
  209. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/primitive_fitting.py +0 -0
  210. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/urdf.py +0 -0
  211. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/urdf_mesh.py +0 -0
  212. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/video.py +0 -0
  213. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/utils/visualization.py +0 -0
  214. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/__init__.py +0 -0
  215. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_base.py +0 -0
  216. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_manipulability_ellipse.py +0 -0
  217. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_mitsuba.py +0 -0
  218. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_notebook.py +0 -0
  219. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_offscreen.py +0 -0
  220. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_path_utils.py +0 -0
  221. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_pyrender.py +0 -0
  222. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_trimesh.py +0 -0
  223. {scikit_robot-0.4.6 → scikit_robot-0.4.7}/skrobot/viewers/_viser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scikit-robot
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: A Flexible Framework for Robot Control in Python
5
5
  Author-email: iory <ab.ioryz@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scikit-robot"
7
- version = "0.4.6"
7
+ version = "0.4.7"
8
8
  description = "A Flexible Framework for Robot Control in Python"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scikit-robot
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: A Flexible Framework for Robot Control in Python
5
5
  Author-email: iory <ab.ioryz@gmail.com>
6
6
  License: MIT
@@ -874,8 +874,13 @@ def extract_inverse_dynamics_parameters(robot_model, link_list=None,
874
874
  link_list = sorted(link_list, key=get_depth)
875
875
 
876
876
  # Compute permutations between sorted and original order
877
- # sorted_to_original[sorted_idx] = original_idx (for reordering output)
878
- # original_to_sorted[original_idx] = sorted_idx (for reordering input)
877
+ # sorted_to_original[sorted_idx] = original_idx
878
+ # original_to_sorted[original_idx] = sorted_idx
879
+ # Gathering with them: x_sorted = x[sorted_to_original] (input),
880
+ # x = x_sorted[original_to_sorted] (output), and an index into the
881
+ # original list maps with original_to_sorted[idx]. Swapping the two
882
+ # gathers only goes unnoticed when the sort is its own inverse (no
883
+ # reordering, or two branches of equal length).
879
884
  sorted_link_names = [link.name for link in link_list]
880
885
  sorted_to_original = np.array([
881
886
  original_link_names.index(name) for name in sorted_link_names
@@ -1239,7 +1244,9 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1239
1244
  """Compute forward kinematics for all joints.
1240
1245
 
1241
1246
  Returns positions and rotations of each link frame.
1242
- Position is the origin of the link frame (joint location).
1247
+ Position is the origin of the link frame after the joint has
1248
+ moved: on the axis for a revolute joint, translated along it for a
1249
+ prismatic one.
1243
1250
  Rotation is the orientation of the link frame (after joint rotation).
1244
1251
 
1245
1252
  Supports branching kinematic trees via parent_indices.
@@ -1263,9 +1270,6 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1263
1270
  pos = parent_pos + parent_rot @ link_translations[i]
1264
1271
  rot = parent_rot @ link_rotations[i]
1265
1272
 
1266
- # Save position before joint rotation (joint axis passes through here)
1267
- joint_pos = pos
1268
-
1269
1273
  # Apply joint motion as delta from reference angle
1270
1274
  delta_angle = q[i] - ref_angles[i]
1271
1275
 
@@ -1278,8 +1282,13 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1278
1282
  joint_rot = rodrigues_rotation(joint_axes[i], delta_angle)
1279
1283
  rot = rot @ joint_rot
1280
1284
 
1281
- # Store joint position and link rotation
1282
- positions[i] = joint_pos
1285
+ # Store the link frame: its origin and orientation after the
1286
+ # joint has moved. For a revolute joint the origin lies on the
1287
+ # axis, so it doubles as the moment-arm origin. For a prismatic
1288
+ # joint it must be the translated origin: the child links and
1289
+ # this link's CoM ride on it (the torque of a prismatic joint is
1290
+ # F . axis and does not need a point on the axis).
1291
+ positions[i] = pos
1283
1292
  rotations[i] = rot
1284
1293
 
1285
1294
  return positions, rotations
@@ -1320,9 +1329,6 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1320
1329
  pos = parent_pos + parent_rot @ link_translations[i]
1321
1330
  rot = parent_rot @ link_rotations[i]
1322
1331
 
1323
- # Save joint position
1324
- joint_pos = pos
1325
-
1326
1332
  # Apply joint motion
1327
1333
  delta_angle = q[i] - ref_angles[i]
1328
1334
  axis_local = joint_axes[i]
@@ -1365,7 +1371,8 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1365
1371
  ang_acc = parent_ang_acc + axis_world * qdd[i]
1366
1372
  ang_acc = ang_acc + backend.cross(parent_ang_vel, axis_world * qd[i])
1367
1373
 
1368
- positions[i] = joint_pos
1374
+ # Link frame origin after the joint moved (see compute_fk).
1375
+ positions[i] = pos
1369
1376
  rotations[i] = rot
1370
1377
  lin_vels[i] = lin_vel
1371
1378
  ang_vels[i] = ang_vel
@@ -1413,15 +1420,15 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1413
1420
  gravity = backend.array([0.0, 0.0, -9.81])
1414
1421
 
1415
1422
  # Reorder input from original to sorted order
1416
- q_sorted = q[original_to_sorted]
1423
+ q_sorted = q[sorted_to_original]
1417
1424
 
1418
1425
  # Reorder external forces/moments if provided
1419
1426
  external_forces_sorted = None
1420
1427
  if external_forces is not None:
1421
- external_forces_sorted = external_forces[original_to_sorted]
1428
+ external_forces_sorted = external_forces[sorted_to_original]
1422
1429
  external_moments_sorted = None
1423
1430
  if external_moments is not None:
1424
- external_moments_sorted = external_moments[original_to_sorted]
1431
+ external_moments_sorted = external_moments[sorted_to_original]
1425
1432
 
1426
1433
  # Remap point force link indices from original to sorted order
1427
1434
  point_force_link_indices_sorted = None
@@ -1433,8 +1440,8 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1433
1440
 
1434
1441
  if is_dynamic:
1435
1442
  # Reorder velocities and accelerations
1436
- qd_sorted = qd[original_to_sorted]
1437
- qdd_sorted = qdd[original_to_sorted]
1443
+ qd_sorted = qd[sorted_to_original]
1444
+ qdd_sorted = qdd[sorted_to_original]
1438
1445
  # Dynamic case: use Newton-Euler with velocities and accelerations
1439
1446
  positions, rotations, lin_vels, ang_vels, lin_accs, ang_accs = \
1440
1447
  compute_fk_with_velocity(q_sorted, qd_sorted, qdd_sorted)
@@ -1599,7 +1606,7 @@ def build_inverse_dynamics_fn(robot_model, link_list=None, backend=None,
1599
1606
  # The sum above is the generalized force of gravity, the external
1600
1607
  # forces and the d'Alembert inertial forces on each joint; the joint
1601
1608
  # has to supply the opposite: tau = M qdd + C + g(q) - J^T f_ext.
1602
- tau = -tau_sorted[sorted_to_original]
1609
+ tau = -tau_sorted[original_to_sorted]
1603
1610
 
1604
1611
  return tau
1605
1612
 
@@ -1687,6 +1694,36 @@ def build_torque_vector_fn(robot_model, link_list=None, backend=None,
1687
1694
  return torque_vector_fn
1688
1695
 
1689
1696
 
1697
+ def _find_carrying_link(coords, link_list):
1698
+ """Return the link in ``link_list`` that ``coords`` moves with.
1699
+
1700
+ The search starts at ``coords`` itself: a target that is one of the
1701
+ chain links (``target_coords=[robot.some_link]``) is carried by that
1702
+ link, whose own joint feels the force. Starting from its parent would
1703
+ hand the force to the joint above and drop the link's own joint.
1704
+
1705
+ Parameters
1706
+ ----------
1707
+ coords : Coordinates
1708
+ Target frame, a link or a frame attached below one.
1709
+ link_list : list of Link
1710
+ Links that carry a joint.
1711
+
1712
+ Returns
1713
+ -------
1714
+ link : Link or None
1715
+ The nearest of ``coords`` and its ancestors that is in
1716
+ ``link_list``, or None when there is none.
1717
+ """
1718
+ ids = set(id(link) for link in link_list)
1719
+ current = coords
1720
+ while current is not None:
1721
+ if id(current) in ids:
1722
+ return current
1723
+ current = getattr(current, 'parent', None)
1724
+ return None
1725
+
1726
+
1690
1727
  def preprocess_external_forces(robot, force_list=None, moment_list=None,
1691
1728
  target_coords=None, link_list=None):
1692
1729
  """Convert high-level force specification to low-level arrays.
@@ -1744,10 +1781,7 @@ def preprocess_external_forces(robot, force_list=None, moment_list=None,
1744
1781
 
1745
1782
  n_joints = len(link_list)
1746
1783
 
1747
- # Build link name to index mapping
1748
- link_name_to_idx = {}
1749
- for idx, link in enumerate(link_list):
1750
- link_name_to_idx[link.name] = idx
1784
+ link_index_by_id = {id(link): idx for idx, link in enumerate(link_list)}
1751
1785
 
1752
1786
  # Case 1: No target_coords - forces/moments applied at link CoMs
1753
1787
  external_forces = None
@@ -1779,18 +1813,10 @@ def preprocess_external_forces(robot, force_list=None, moment_list=None,
1779
1813
  valid_local_positions = []
1780
1814
 
1781
1815
  for force, coords in zip(force_list, target_coords):
1782
- # Traverse up parent chain to find a link in link_list
1783
- current = coords.parent if hasattr(coords, 'parent') else None
1784
- found_link = None
1785
-
1786
- while current is not None:
1787
- if current.name in link_name_to_idx:
1788
- found_link = current
1789
- break
1790
- current = current.parent if hasattr(current, 'parent') else None
1816
+ found_link = _find_carrying_link(coords, link_list)
1791
1817
 
1792
1818
  if found_link is not None:
1793
- link_idx = link_name_to_idx[found_link.name]
1819
+ link_idx = link_index_by_id[id(found_link)]
1794
1820
 
1795
1821
  # Compute local position relative to link frame
1796
1822
  point_world = coords.worldpos()
@@ -1811,13 +1837,9 @@ def preprocess_external_forces(robot, force_list=None, moment_list=None,
1811
1837
  if moment_list is not None and target_coords is not None:
1812
1838
  external_moments = np.zeros((n_joints, 3))
1813
1839
  for moment, coords in zip(moment_list, target_coords):
1814
- current = coords.parent if hasattr(coords, 'parent') else None
1815
- while current is not None:
1816
- if current.name in link_name_to_idx:
1817
- link_idx = link_name_to_idx[current.name]
1818
- external_moments[link_idx] += moment
1819
- break
1820
- current = current.parent if hasattr(current, 'parent') else None
1840
+ found_link = _find_carrying_link(coords, link_list)
1841
+ if found_link is not None:
1842
+ external_moments[link_index_by_id[id(found_link)]] += moment
1821
1843
 
1822
1844
  return external_forces, external_moments, point_forces, point_force_link_indices, point_force_local_positions
1823
1845
 
@@ -2066,7 +2088,7 @@ def build_optimized_gravity_torque_fn(robot_model, link_list=None,
2066
2088
  gravity = jnp.asarray(gravity, dtype=dtype)
2067
2089
 
2068
2090
  # Reorder input
2069
- q_sorted = q[original_to_sorted]
2091
+ q_sorted = q[sorted_to_original]
2070
2092
 
2071
2093
  # Forward kinematics using lax.scan
2072
2094
  def fk_step(carry, i):
@@ -2171,7 +2193,7 @@ def build_optimized_gravity_torque_fn(robot_model, link_list=None,
2171
2193
  tau_sorted = jax.vmap(compute_torque)(jnp.arange(n_joints))
2172
2194
 
2173
2195
  # Gravity's moment about each axis; holding takes the opposite.
2174
- tau = -tau_sorted[sorted_to_original]
2196
+ tau = -tau_sorted[original_to_sorted]
2175
2197
 
2176
2198
  return tau
2177
2199
 
@@ -2290,7 +2312,7 @@ def build_gravity_torque_fn_vectorized(robot_model, link_list=None,
2290
2312
  else:
2291
2313
  gravity = jnp.asarray(gravity, dtype=dtype)
2292
2314
 
2293
- q_sorted = q[original_to_sorted]
2315
+ q_sorted = q[sorted_to_original]
2294
2316
  delta_angles = q_sorted - ref_angles
2295
2317
 
2296
2318
  # Compute joint rotations
@@ -2353,7 +2375,7 @@ def build_gravity_torque_fn_vectorized(robot_model, link_list=None,
2353
2375
 
2354
2376
  tau_sorted = jax.vmap(compute_torque)(jnp.arange(n_joints))
2355
2377
  # Gravity's moment about each axis; holding takes the opposite.
2356
- tau = -tau_sorted[sorted_to_original]
2378
+ tau = -tau_sorted[original_to_sorted]
2357
2379
 
2358
2380
  return tau
2359
2381
 
@@ -2551,7 +2573,7 @@ def build_rnea_gravity_fn(robot_model, link_list=None, use_float32=False):
2551
2573
  else:
2552
2574
  gravity = jnp.asarray(gravity, dtype=dtype)
2553
2575
 
2554
- q_sorted = q[original_to_sorted]
2576
+ q_sorted = q[sorted_to_original]
2555
2577
 
2556
2578
  # ===== Forward pass: compute FK =====
2557
2579
  def fk_step(carry, i):
@@ -2697,7 +2719,7 @@ def build_rnea_gravity_fn(robot_model, link_list=None, use_float32=False):
2697
2719
  )
2698
2720
 
2699
2721
  # Gravity's moment about each axis; holding takes the opposite.
2700
- tau = -taus_sorted[sorted_to_original]
2722
+ tau = -taus_sorted[original_to_sorted]
2701
2723
 
2702
2724
  return tau
2703
2725
 
@@ -2780,7 +2802,7 @@ def build_rnea_serial_gravity_fn(robot_model, link_list=None, use_float32=False)
2780
2802
  else:
2781
2803
  gravity = jnp.asarray(gravity, dtype=dtype)
2782
2804
 
2783
- q_sorted = q[original_to_sorted]
2805
+ q_sorted = q[sorted_to_original]
2784
2806
 
2785
2807
  # Forward pass: compute FK
2786
2808
  def fk_step(carry, i):
@@ -2915,6 +2937,6 @@ def build_rnea_serial_gravity_fn(robot_model, link_list=None, use_float32=False)
2915
2937
  taus_sorted = jnp.sum(total_moment * axes_world, axis=1)
2916
2938
 
2917
2939
  # Gravity's moment about each axis; holding takes the opposite.
2918
- return -taus_sorted[sorted_to_original]
2940
+ return -taus_sorted[original_to_sorted]
2919
2941
 
2920
2942
  return jax.jit(gravity_torque_fn)
File without changes
File without changes
File without changes
File without changes