task-1 #4
This commit is contained in:
parent
4135f8c31a
commit
dfb651478c
@ -232,14 +232,14 @@ def calculate_distance_to_line(edge_info, camera_height, camera_tilt_angle_deg=0
|
|||||||
|
|
||||||
return final_distance
|
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 对象,包含里程计信息
|
ctrl: Robot_Ctrl 对象,包含里程计信息
|
||||||
msg: robot_control_cmd_lcmt 对象,用于发送命令
|
msg: robot_control_cmd_lcmt 对象,用于发送命令
|
||||||
target_distance: 目标与横向线的距离(米),默认为0.1米
|
target_distance: 目标位置与横向线的距离(米),默认为0.5米
|
||||||
observe: 是否输出中间状态信息和可视化结果,默认为False
|
observe: 是否输出中间状态信息和可视化结果,默认为False
|
||||||
|
|
||||||
返回:
|
返回:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user