This commit is contained in:
havoc420ubuntu 2025-05-15 08:20:57 +00:00
parent 4135f8c31a
commit dfb651478c

View File

@ -232,14 +232,14 @@ def calculate_distance_to_line(edge_info, camera_height, camera_tilt_angle_deg=0
return final_distance
def move_to_hori_line(ctrl, msg, target_distance=0.1, observe=False):
def move_to_hori_line(ctrl, msg, target_distance=0.5, observe=False):
"""
控制机器人校准并移动到横向线前的指定距离
参数:
ctrl: Robot_Ctrl 对象包含里程计信息
msg: robot_control_cmd_lcmt 对象用于发送命令
target_distance: 目标与横向线的距离()默认为0.1
target_distance: 目标位置与横向线的距离()默认为0.5
observe: 是否输出中间状态信息和可视化结果默认为False
返回: