23 lines
540 B
Python
23 lines
540 B
Python
import time
|
||
import cv2
|
||
import sys
|
||
import os
|
||
|
||
# 添加父目录到路径,以便能够导入utils
|
||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||
|
||
from base_move.move_base_hori_line import align_to_horizontal_line, move_to_hori_line
|
||
|
||
def run_task_1(ctrl, msg, image_processor):
|
||
print('Running task 1...')
|
||
|
||
# v2
|
||
# align_to_horizontal_line(ctrl, msg, image_processor.get_current_image())
|
||
|
||
move_to_hori_line(ctrl, msg, image_processor.get_current_image(), image_processor=image_processor)
|
||
|
||
|
||
|
||
|
||
|