mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-31 13:39:40 +00:00
remove comments
This commit is contained in:
@@ -23,9 +23,7 @@ import numpy as np
|
|||||||
|
|
||||||
NUM_MOTORS = 29
|
NUM_MOTORS = 29
|
||||||
|
|
||||||
# Joint-order permutations between the two 29-DoF layouts used across the G1 stack:
|
# Joint-order permutation between IsaacLab and Mujoco convention
|
||||||
# IsaacLab (policy/training order) and MuJoCo (deploy order). ``a[ISAACLAB_TO_MUJOCO]``
|
|
||||||
# reorders an IsaacLab-ordered vector into MuJoCo order, and vice-versa.
|
|
||||||
ISAACLAB_TO_MUJOCO = np.array(
|
ISAACLAB_TO_MUJOCO = np.array(
|
||||||
[
|
[
|
||||||
0,
|
0,
|
||||||
@@ -60,8 +58,6 @@ ISAACLAB_TO_MUJOCO = np.array(
|
|||||||
],
|
],
|
||||||
dtype=np.int32,
|
dtype=np.int32,
|
||||||
)
|
)
|
||||||
# The two orderings are inverses of each other, so derive one from the other (argsort) to
|
|
||||||
# guarantee they can never drift out of sync.
|
|
||||||
MUJOCO_TO_ISAACLAB = np.argsort(ISAACLAB_TO_MUJOCO).astype(np.int32)
|
MUJOCO_TO_ISAACLAB = np.argsort(ISAACLAB_TO_MUJOCO).astype(np.int32)
|
||||||
|
|
||||||
REMOTE_AXES = ("remote.lx", "remote.ly", "remote.rx", "remote.ry")
|
REMOTE_AXES = ("remote.lx", "remote.ly", "remote.rx", "remote.ry")
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ class UnitreeG1(Robot):
|
|||||||
|
|
||||||
self.arm_ik = G1_29_ArmIK() if config.gravity_compensation else None
|
self.arm_ik = G1_29_ArmIK() if config.gravity_compensation else None
|
||||||
|
|
||||||
# Lower-body / whole-body controller loaded dynamically
|
# Controller loaded dynamically
|
||||||
self.controller: LocomotionController | None = make_locomotion_controller(config.controller)
|
self.controller: LocomotionController | None = make_locomotion_controller(config.controller)
|
||||||
# Controller thread state
|
# Controller thread state
|
||||||
self._controller_thread = None
|
self._controller_thread = None
|
||||||
|
|||||||
Reference in New Issue
Block a user