- Reduce max_time parameter from 30 to 3 in follow_left_side_track function - Fix side velocity sign in follow_left_side_track function - Uncomment and update run_task_test in main.py - Update initial heading in task_left_line.py
18 lines
595 B
Python
18 lines
595 B
Python
import time
|
||
import sys
|
||
import os
|
||
|
||
# 添加父目录到路径,以便能够导入utils
|
||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||
|
||
from base_move.turn_degree import turn_degree
|
||
from base_move.move_base_hori_line import follow_left_side_track
|
||
from utils.log_helper import LogHelper, get_logger, section, info, debug, warning, error, success, timing
|
||
|
||
# 创建本模块特定的日志记录器
|
||
logger = get_logger("任务-test")
|
||
|
||
def run_task_test(ctrl, msg):
|
||
turn_degree(ctrl, msg, 0, absolute=True)
|
||
follow_left_side_track(ctrl, msg)
|
||
# time.sleep(100) |