add urdf files.

aligh the function parameter names of qp and rm methods
This commit is contained in:
LiuzhengSJ
2026-06-05 15:25:35 +01:00
parent aefc7bacd5
commit 2ca5033b46
14 changed files with 562 additions and 168 deletions

View File

@ -18,7 +18,7 @@ class MuJoCoPositionController:
No velocity commands, no forces - completely stable
"""
def __init__(self, urdf_path, smoothness=0.2, enable_viewer=True):
def __init__(self, urdf_path="./urdf_rm75/RM75-B.urdf", smoothness=0.05, enable_viewer=True):
"""
Args:
urdf_path: Path to URDF file
@ -73,8 +73,7 @@ class MuJoCoPositionController:
print("Viewer launched")
except Exception as e:
print(f"Viewer warning: {e}")
print("Robot controller ready - Pure Position Mode")
self.start()
def start(self):
"""Start the simulation thread"""