引入logging, 增强错误处理并添加类文档#4779
Merged
donghaiwang merged 47 commits intoOpenHUTB:mainfrom Dec 28, 2025
Merged
Conversation
donghaiwang
approved these changes
Dec 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
修改的详细描述
logging模块: 将所有print语句替换为logging调用,使输出信息更规范,包含时间戳和日志级别,便于调试和生产环境使用。__init__中增加了对mujoco.FatalError的捕获,当MJCF模型文件存在语法或资源引用问题时,能给出更明确的错误提示。PandaAutoGrab类添加了详细的文档字符串,解释了类的功能、核心算法和主要属性,极大地提升了代码的可读性和可维护性。经过了什么样的测试?
运行效果
动图、视频、截图等
