def plallp(first=0, second=1): global all_paths_with_pauses pIds = [i for i in range(len(all_paths_with_pauses[0]))] cs = [ item for sublist in [[[first, i], [second, i]] for i in [j for j in range(len(all_paths_with_pauses[0]))]] for item in sublist ] i = 0 print cs for ctx, pId in cs: sc(ctx) play_trajectory(fullBody, pp, all_paths_with_pauses[ctx][pId])
def plall(first=0, second=1): global path sc(first) pIds = [i for i in range(len(path))] cs = [ item for sublist in [[[first, i], [second, i]] for i in [j for j in range(len(path))]] for item in sublist ] i = 0 for ctx, pId in cs: sc(ctx) play_trajectory(fullBody, pp, path[pId])
def plall(first=0): global path sc(first) for pId in range(len(path)): play_trajectory(fullBody, pp, path[pId])
def pl(iid=None): global path if iid == None: iid = len(path) - 1 play_trajectory(fullBody, pp, path[iid])