Exemple #1
0
def inc():
    robot.increment(dt)
    attime.run(robot.control.time)
    #robot.viewer.updateElementConfig('zmp',[zmp.zmp.value[0],zmp.zmp.value[1],0,0,0,0])
    if dyn.com.time >0:
        robot.viewer.updateElementConfig('com',[dyn.com.value[0],dyn.com.value[1],0,0,0,0])
    history.record()
Exemple #2
0
def inc():
    robot.increment(dt)
    attime.run(robot.control.time)
    #robot.viewer.updateElementConfig('zmp',[zmp.zmp.value[0],zmp.zmp.value[1],0,0,0,0])
    if dyn.com.time > 0:
        robot.viewer.updateElementConfig(
            'com', [dyn.com.value[0], dyn.com.value[1], 0, 0, 0, 0])
    history.record()
Exemple #3
0
def inc():
    global showNumber, cnt, READ_TIME, flag_finish

    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    attime.run(robot.control.time)
    if showNumber: print robot.control.time
    zmpup()
Exemple #4
0
def inc():
    global showNumber, cnt, READ_TIME, flag_finish

    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    attime.run(robot.control.time)
    if showNumber: print robot.control.time
    zmpup()
Exemple #5
0
def inc():
    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    if 'refresh' in ZmpEstimator.__dict__: zmp.refresh()
    attime.run(robot.control.time)
    robot.viewer.updateElementConfig('zmp',[zmp.zmp.value[0],zmp.zmp.value[1],0,0,0,0])
    if dyn.com.time >0:
        robot.viewer.updateElementConfig('com',[dyn.com.value[0],dyn.com.value[1],0,0,0,0])
    history.record()
Exemple #6
0
def inc():
    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    if 'refresh' in ZmpEstimator.__dict__: zmp.refresh()
    attime.run(robot.control.time)
    robot.viewer.updateElementConfig('zmp',[zmp.zmp.value[0],zmp.zmp.value[1],0,0,0,0])
    if dyn.com.time >0:
        robot.viewer.updateElementConfig('com',[dyn.com.value[0],dyn.com.value[1],0,0,0,0])
    history.record()
Exemple #7
0
def inc():
    updateMocap()
    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    attime.run(robot.control.time)
    zmpup()
    robot.viewer.updateElementConfig("zmp", [zmp.zmp.value[0], zmp.zmp.value[1], 0, 0, 0, 0])
    if dyn.com.time > 0:
        robot.viewer.updateElementConfig("com", [dyn.com.value[0], dyn.com.value[1], 0, 0, 0, 0])
    history.record()
Exemple #8
0
def inc():
    tnext=robot.control.time+1
    attime.run(tnext)
    for sig in toBeRecomputed:
        sot.signal(sig).recompute( tnext )
    chrono=Chrono()
    sot.triger.recompute(tnext)
    chronos.append(chrono.tic())
    robot.increment(dt)
    qs.append(robot.state.value)
Exemple #9
0
def inc():
    tnext = robot.control.time + 1
    attime.run(tnext)
    for sig in toBeRecomputed:
        sot.signal(sig).recompute(tnext)
    chrono = Chrono()
    sot.triger.recompute(tnext)
    chronos.append(chrono.tic())
    robot.increment(dt)
    qs.append(robot.state.value)
Exemple #10
0
def inc():
    updateMocap()
    robot.increment(dt)
    # Execute a function at time t, if specified with t.add(...)
    attime.run(robot.control.time)
    zmpup()
    robot.viewer.updateElementConfig(
        'zmp', [zmp.zmp.value[0], zmp.zmp.value[1], 0, 0, 0, 0])
    if dyn.com.time > 0:
        robot.viewer.updateElementConfig(
            'com', [dyn.com.value[0], dyn.com.value[1], 0, 0, 0, 0])
    history.record()
Exemple #11
0
def inc():
    attime.run(robot.control.time+1)
    robot.increment(dt)
    tr.triger.recompute( robot.control.time )
    qs.append(robot.state.value)