更新 task_1.py 文件,添加移动到横线的功能并调整圆弧转向逻辑。新增参数 distance 以控制移动距离,确保机器人在执行任务时的路径更加准确。
This commit is contained in:
parent
116fd15b56
commit
c6f236ca92
@ -14,9 +14,12 @@ def run_task_1(ctrl, msg):
|
||||
|
||||
# v2
|
||||
arc_turn_around_hori_line(ctrl, msg, angle_deg=90, left=False, observe=observe)
|
||||
# move_to_hori_line(ctrl, msg, observe=observe)
|
||||
|
||||
|
||||
|
||||
move_to_hori_line(ctrl, msg, distance=1, observe=observe)
|
||||
|
||||
arc_turn_around_hori_line(ctrl, msg, angle_deg=180, left=True, observe=observe)
|
||||
|
||||
move_to_hori_line(ctrl, msg, observe=observe)
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user