From bc3d323663966f85304a7510e37e327b09769dbd Mon Sep 17 00:00:00 2001 From: qeo <3786759407@qq.com> Date: Sat, 27 Dec 2025 19:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qwer.py | 277 +++++++++++------- 1 file changed, 164 insertions(+), 113 deletions(-) diff --git a/src/autonomousvehicle_movement_and_automatic_obstacle_avoidance/qwer.py b/src/autonomousvehicle_movement_and_automatic_obstacle_avoidance/qwer.py index c103a7e6f8..c277c15d18 100644 --- a/src/autonomousvehicle_movement_and_automatic_obstacle_avoidance/qwer.py +++ b/src/autonomousvehicle_movement_and_automatic_obstacle_avoidance/qwer.py @@ -1,3 +1,4 @@ + """ 无人小车自主行驶与避让模拟 基于MuJoCo和Python实现 @@ -15,43 +16,50 @@ class AutonomousCar: def __init__(self, model_path=None): - """初始化无人小车模拟器""" - # 如果没有提供模型文件,使 用 内置的XML模型 + """初始化无人小车模拟器 + + Args: + model_path (str, optional): MuJoCo模型文件路径. 默认为None,使用内置模型 + """ + # 如果没有提供模型文件,使用内置的XML模型 if model_path is None: self.xml = """ +