Skip to content

Commit 241387d

Browse files
committed
update default gains for robot joints
1 parent 91a9ef5 commit 241387d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

robosuite/models/robots/robot_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ def __init__(self, fname, idn=0):
6868
self.cameras = self.get_element_names(self.worldbody, "camera")
6969

7070
# By default, set small frictionloss and armature values
71-
self.set_joint_attribute(attrib="frictionloss", values=0.01 * np.ones(self.dof), force=False)
72-
self.set_joint_attribute(attrib="armature", values=0.01 * np.ones(self.dof), force=False)
71+
self.set_joint_attribute(attrib="frictionloss", values=0.1 * np.ones(self.dof), force=False)
72+
self.set_joint_attribute(attrib="damping", values=0.1 * np.ones(self.dof), force=False)
73+
self.set_joint_attribute(attrib="armature",
74+
values=np.array([5.0 / (i + 1) for i in range(self.dof)]), force=False)
7375

7476
def set_base_xpos(self, pos):
7577
"""

0 commit comments

Comments
 (0)