Repository navigation
完成ROS节点封装:集成感知/决策模块的测试节点 - #3631
Merged
Merged
Conversation
dream1112221
approved these changes
Dec 18, 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.
修改概述:
修改的详细描述
经过了什么样的测试?
运行效果
动图、视频、截图等
修改的详细描述
1.完成感知/决策模块的ROS节点封装:编写ros_test_node.py测试节点,集成PerceptionModule(传感器数据融合)、DecisionModule(控制指令生成)核心逻辑,适配ROS消息流转框架;
2.解决环境适配问题:修正Linux大小写敏感导致的路径错误,将脚本首行Python解释器路径适配为虚拟环境实际路径/home/pan-j-l/my_ros_project/venv_py37/bin/python3;
3。补充异常处理与日志输出:为节点添加模块初始化失败、ROS中断的异常捕获,输出关键日志(如特征形状、控制指令),便于调试。
经过了什么样的测试?
操作系统:
Ubuntu 20.04 LTS(运行在VMware Workstation虚拟机);
Python版本:3.7.5(基于venv_py37虚拟环境运行,已安装opencv-python==4.5.5.62、torch==1.13.1等依赖);
ROS版本:Noetic;
运行结果:
