def addFunc(func, name, parent=None, confirm=False): addTask(rt.CallbackTask(callback=func, name=name), parent=parent) if confirm: addTask(rt.UserPromptTask( name='Confirm execution has finished', message='Continue when plan finishes.'), parent=parent)
def addFunc(func, name, parent=None): addTask(rt.CallbackTask(callback=func, name=name), parent=parent)