Skip to content

Commit f00f4a7

Browse files
author
ADA Demo
committed
Switched to emprical acceleration limits.
1 parent 2c1dbd4 commit f00f4a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/prpy/base/mico.py

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

4545
with env:
46+
dof_indices = self.GetIndices()
4647
accel_limits = robot.GetDOFAccelerationLimits()
47-
accel_limits[self.GetIndices()] = 2.5
48+
accel_limits[dof_indices[0:3]] = 1.2
49+
accel_limits[dof_indices[3:6]] = 1.0
4850
robot.SetDOFAccelerationLimits(accel_limits)
4951

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

0 commit comments

Comments
 (0)