robot-keyframe-kit 0.3.3__tar.gz → 0.3.4__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 (18) hide show
  1. {robot_keyframe_kit-0.3.3/src/robot_keyframe_kit.egg-info → robot_keyframe_kit-0.3.4}/PKG-INFO +1 -1
  2. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/pyproject.toml +1 -1
  3. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/sim_worker.py +8 -2
  4. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4/src/robot_keyframe_kit.egg-info}/PKG-INFO +1 -1
  5. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/LICENSE +0 -0
  6. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/MANIFEST.in +0 -0
  7. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/README.md +0 -0
  8. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/setup.cfg +0 -0
  9. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/__init__.py +0 -0
  10. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/config.py +0 -0
  11. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/editor.py +0 -0
  12. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/keyframe.py +0 -0
  13. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit/math_utils.py +0 -0
  14. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit.egg-info/SOURCES.txt +0 -0
  15. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit.egg-info/dependency_links.txt +0 -0
  16. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit.egg-info/entry_points.txt +0 -0
  17. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit.egg-info/requires.txt +0 -0
  18. {robot_keyframe_kit-0.3.3 → robot_keyframe_kit-0.3.4}/src/robot_keyframe_kit.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robot-keyframe-kit
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: A generalizable Viser-based keyframe editor for any MuJoCo robot
5
5
  Author-email: Stanford TML <yuming29@stanford.edu>
6
6
  Maintainer-email: Stanford TML <yuming29@stanford.edu>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "robot-keyframe-kit"
7
- version = "0.3.3"
7
+ version = "0.3.4"
8
8
  description = "A generalizable Viser-based keyframe editor for any MuJoCo robot"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -667,8 +667,14 @@ class SimWorker(threading.Thread):
667
667
  aligned_torso_t = torso_t_curr.copy()
668
668
  aligned_torso_t[2, 3] -= dz
669
669
 
670
- self.data.qpos[:3] = aligned_torso_t[:3, 3]
671
- self.data.qpos[3:7] = R.from_matrix(aligned_torso_t[:3, :3]).as_quat(scalar_first=True)
670
+ if self.q_start_idx == 7:
671
+ # Floating base: write position + quaternion into freejoint qpos.
672
+ self.data.qpos[:3] = aligned_torso_t[:3, 3]
673
+ self.data.qpos[3:7] = R.from_matrix(aligned_torso_t[:3, :3]).as_quat(scalar_first=True)
674
+ else:
675
+ # Fixed base: no freejoint to adjust, skip ground placement.
676
+ print("[Ground] No freejoint — skipping ground placement", flush=True)
677
+ return
672
678
  self._forward()
673
679
  print(
674
680
  f"[Ground] Placed robot on ground (moved down {dz:.4f}m, lowest geom was at z={lowest_z:.4f}m)",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robot-keyframe-kit
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: A generalizable Viser-based keyframe editor for any MuJoCo robot
5
5
  Author-email: Stanford TML <yuming29@stanford.edu>
6
6
  Maintainer-email: Stanford TML <yuming29@stanford.edu>