Enhance run_task_5 in task_5.py: Added move_to_hori_line function call to improve robot navigation by ensuring it moves to a horizontal line before returning results.
This commit is contained in:
parent
eb34eeeb3e
commit
12be1b8e67
@ -244,5 +244,7 @@ def run_task_5(ctrl, msg, direction='left', observe=False):
|
||||
section('任务5-5:转弯', "转弯")
|
||||
turn_degree(ctrl, msg, degree=90)
|
||||
|
||||
move_to_hori_line(ctrl, msg, target_distance=1.1, observe=observe)
|
||||
|
||||
# 返回移动和扫描结果
|
||||
return go_success, res['qr_result']
|
||||
|
Loading…
x
Reference in New Issue
Block a user