__init__.py
Go to the documentation of this file.
00001 
00002 HEAD = 'h'
00003 LEFT = 'l'
00004 RIGHT = 'r'
00005 BASE = 'b'
00006 TIME = 't'
00007 LEFT_HAND = 'lh'
00008 RIGHT_HAND = 'rh'
00009 
00010 DEFAULT_TIME = 3.0
00011 
00012 def get_time(move):
00013     return move.get(TIME, DEFAULT_TIME)
00014 
00015 def precise_subset(movements, key):
00016     t = 0.0
00017     L = []
00018     for move in movements:
00019         if key in move:
00020             m = {key: move[key], TIME: get_time(move) + t }
00021             L.append(m)
00022             t = 0.0
00023         else:
00024             t += get_time(move)
00025     return L
00026 
00027 


pr2_precise_trajectory
Author(s): David V. Lu!!
autogenerated on Fri Aug 28 2015 12:12:32