Closed ghost closed 11 years ago
>> import navigation.nav as nav
>> from datetime import datetime
>> macro_m = nav.macro_move("2", "2", "0", datetime.now()) # Arbitrary numbers
>> macro_m
macro_move(x='2', y='2', theta='0', timestamp=datetime.datetime(2013, 3, 28, 22, 12, 10, 568905))
>> micro_m = nav.micro_move("1000", "2", datetime.now()) # Arbitrary numbers
>> micro_m
micro_move(speed='1000', direction='2', timestamp=datetime.datetime(2013, 3, 28, 22, 13, 51, 950001))
>> from multiprocessing import Queue # You don't need to do this
>> qNav_loc = Queue() # You don't need to do this
>> qNav_loc.put(micro_m)
>> qNav_loc.put(macro_m)
Is that good? Need to know anything else?
Seems enough. Thanks! we'll know tomorrow :)
could you give me an example of how you want the navigation commands in the queue? Is there a difference between micro and macro nav command formats, apart from the arguments?