Example #1
0
    def do_navigation(self, arg):
        '\n[cv] toggle computer vision (start/1 or stop/0)\
         \n[keyboard] keyboard manual navigation'

        if arg.lower() == 'cv start' or arg.lower() == 'cv 1':
            # temp method for testing purposes
            AUV.perform_tasks()
            # print(arg)
        elif arg.lower() == 'cv stop' or arg.lower() == 'cv 0':
            AUV.stop_task()
            # print(arg)
        elif arg.lower() == 'keyboard' or arg.lower() == 'kb':
            AUV.keyboard_nav()
        else:
            print('\n[cv] toggle computer vision (start/1 or stop/0)\
                   \n[keyboard] keyboard manual navigation')
Example #2
0
    def do_navigation(self, arg):
        '\n[cv] toggle computer vision task manager\
         \n[keyboard] keyboard manual navigation'

        if arg.lower() == 'cv' or arg.lower() == 'tm':
            # TODO cv taskmanager
            print(arg)
        elif arg.lower() == 'keyboard' or arg.lower() == 'kb':
            AUV.keyboard_nav()
        # elif len(arg.split()) == 4:
        #     AUV.navigation.navigate(*parse(arg))
        else:
            print(
                '\n[cv] toggle computer vision task manager\
                 \n[keyboard] keyboard manual navigation'
            )