示例#1
0
def setStiffness(cfg=cfgstiff.One, time=0.3):
    if isAtStiffness(cfg): return

    for i in range(core.NUM_JOINTS):
        joint_commands.setJointStiffness(i, cfg[i])
    joint_commands.send_stiffness_ = True
    joint_commands.stiffness_time_ = time * 1000.0
示例#2
0
def setStiffness(cfg = cfgstiff.One, time = 0.3):
  if isAtStiffness(cfg): return

  for i in range(core.NUM_JOINTS):
    joint_commands.setJointStiffness(i, cfg[i])
  joint_commands.send_stiffness_ = True
  joint_commands.stiffness_time_ = time * 1000.0