test line

This commit is contained in:
havoc420ubuntu 2025-05-18 15:32:54 +00:00
parent 26527e7775
commit aac055c1e0

View File

@ -69,11 +69,13 @@ def run_task_1(ctrl, msg):
move_distance = 0.3
move_speed = 0.5
if not direction:
# TODO 这里的校准不一定好用,需要优化
# TODO to check
go_straight_by_hori_line(ctrl, msg, distance=move_distance, speed=move_speed, observe=observe)
else:
go_straight(ctrl, msg, distance=move_distance, speed=move_speed, observe=observe)
return
section('任务1-5模拟装货', "停止")
info('机器人躺下,模拟装货过程', "信息")
start_time = time.time()
@ -96,7 +98,6 @@ def run_task_1(ctrl, msg):
ctrl=ctrl,
msg=msg,
radius=res['radius'] * 2,
#
angle_deg=85,
#
pass_align=True,
@ -107,7 +108,7 @@ def run_task_1(ctrl, msg):
move_to_hori_line(ctrl, msg, target_distance=0.4, observe=observe)
section('任务1-990度旋转', "旋转")
turn_degree(ctrl, msg, degree=90)
turn_degree(ctrl, msg, degree=0, absolute=True) # TODO
section('任务1-10: y校准准备 task-2', "移动")
# TODO