Repository navigation
重构ROS节点为类式封装,新增模拟数据版perception_decision_node节点 - #3811
Merged
Merged
Conversation
donghaiwang
approved these changes
Dec 19, 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.
修改的详细描述
perception_decision_node.py文件,将原有函数式ros_test_node.py重构为面向对象的PerceptionDecisionNode类,/cmd_vel话题发布者,将决策模块生成的控制指令封装为Twist消息并发布,完成端到端逻辑验证。经过了什么样的测试?
venv_py37,位于/home/pan-j-l/my_ros_project/);roscore,确认端口11311无占用;catkin_ws,执行source devel/setup.bash刷新环境变量;rosrun mmap_test perception_decision_node.py,检查节点初始化日志;rostopic echo /cmd_vel验证控制指令是否正常发布;rosrun mmap_test perception_decision_node.py _feature_dim:=256 _timer_hz:=5),验证参数加载逻辑;运行结果: