Skip to content

Commit 0caba21

Browse files
committed
Set the acceleration limits to the tested values
1 parent be9d782 commit 0caba21

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/prpy/base/mico.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ def __init__(self, sim,
4343
env = robot.GetEnv()
4444

4545
with env:
46-
dof_indices = self.GetIndices()
4746
accel_limits = robot.GetDOFAccelerationLimits()
48-
accel_limits[dof_indices[0:3]] = 1.2
49-
accel_limits[dof_indices[3:6]] = 1.0
47+
dof_indices = self.GetIndices()
48+
accel_limits[dof_indices[0]] = 1.45
49+
accel_limits[dof_indices[1]] = 1.56
50+
accel_limits[dof_indices[2]] = 1.56
51+
accel_limits[dof_indices[3]] = 1.5
52+
accel_limits[dof_indices[4]] = 1.48
53+
accel_limits[dof_indices[5]] = 1.49
5054
robot.SetDOFAccelerationLimits(accel_limits)
5155

5256
# Load or_nlopt_ik as the IK solver. Unfortunately, IKFast doesn't work

0 commit comments

Comments
 (0)