Repository navigation
完成ros封装,上传launch文件 #4364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
完成ros封装,上传launch文件 #4364
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
47f6b86
无人车的深度语义分割
Xu-z-y edc81ea
Merge branch 'OpenHUTB:main' into main
Xu-z-y d34553e
Merge branch 'OpenHUTB:main' into main
Xu-z-y 5f4c6d4
Merge branch 'OpenHUTB:main' into main
Xu-z-y b723dcc
Merge branch 'OpenHUTB:main' into main
Xu-z-y 09eaf64
Merge branch 'OpenHUTB:main' into main
Xu-z-y ce4d0cc
更新感知模块README并添加传感器环境脚本
Xu-z-y 15e05c8
Merge branch 'OpenHUTB:main' into main
Xu-z-y 0c0cb14
Merge branch 'OpenHUTB:main' into main
Xu-z-y 2269e13
加载Town05地图,定位Model3并切换至后上方追尾视角,获取全地图合法生成点
Xu-z-y a22888c
加载Town05地图,定位Model3并切换至后上方追尾视角,获取全地图合法生成点
Xu-z-y 706008a
删除远程仓库中的carlaCNN.ipynb文件(本地已删除,同步至远程)
Xu-z-y 7b4e7fe
删除远程仓库中的carlaCNN.py文件(本地已删除,同步至远程)
Xu-z-y e160b43
Merge branch 'OpenHUTB:main' into main
Xu-z-y 712565b
新增carla_model3_spawn_with_spectator.py:加载Town05生成Model3并设置追尾视角
Xu-z-y b5f87b7
Merge branch 'OpenHUTB:main' into main
Xu-z-y a4d7664
为carla_model3_spawn_with_spectator.py新增NPC交通流:生成200辆NPC并启动自动驾驶。
Xu-z-y cf1194d
Merge branch 'OpenHUTB:main' into main
Xu-z-y d951314
新增核心功能:主角车沿车道稳定自动驾驶+视角平滑跟随,NPC交通流自动驾驶
Xu-z-y 3c9fd0b
Merge branch 'OpenHUTB:main' into main
Xu-z-y fc332a2
核心优化:基于CARLA强同步模式解决镜头抖动,绑定视角与车辆状态到同一帧
Xu-z-y a9f7ab3
Merge branch 'OpenHUTB:main' into main
Xu-z-y eb378fd
新增核心功能:实时RGB摄像头画面采集+OpenCV显示
Xu-z-y e046d4d
Merge branch 'OpenHUTB:main' into main
Xu-z-y 60d14a9
新增核心功能:语义分割摄像头(Cityscapes调色板可视化),整合RGB双摄像头+强同步无抖动视角
Xu-z-y f978513
Merge branch 'OpenHUTB:main' into main
Xu-z-y fe1459b
新增核心功能:RGB与语义分割图像横向拼接显示,单窗口对比
Xu-z-y df5129f
Merge branch 'OpenHUTB:main' into main
Xu-z-y 7cd32fd
新增核心功能:自主行走行人,整合车辆+行人+RGB+语义分割拼接显示,全场景同步
Xu-z-y f2e58c4
删除src/carla_autonomous_driving文件夹
Xu-z-y 5964b61
Merge branch 'OpenHUTB:main' into main
Xu-z-y ee2b995
feat(monitor): 新增实时性能监控可视化,显示FPS/队列长度/同步帧号,优化文本布局避免重叠
Xu-z-y 0c710bf
Merge branch 'OpenHUTB:main' into main
Xu-z-y 58a5cb6
feat(view): 新增前视+俯视多视角可视化,重构摄像头通用初始化函数修复属性兼容问题
Xu-z-y 603b972
Merge branch 'OpenHUTB:main' into main
Xu-z-y da4ed75
feat(heatmap): 新增行人+车辆语义密度热力图,优化为2×2四视图布局(前视RGB+语义/俯视RGB+热力图)
Xu-z-y eb2d1b3
feat(count): 新增语义类别实时计数功能(行人/车辆/交通灯),右上角可视化计数面板,基于像素阈值估算目标数量
Xu-z-y e11142a
Merge branch 'OpenHUTB:main' into main
Xu-z-y de19e12
Merge branch 'OpenHUTB:main' into main
Xu-z-y 1a0f040
feat(highlight): 新增关键语义目标高亮标注功能,行人(红)/车辆(蓝)轮廓检测,叠加RGB画面无侵入式修改
Xu-z-y 7b4f8ba
Merge branch 'OpenHUTB:main' into main
Xu-z-y 9af01b7
feat(fusion): 新增语义-RGB融合叠加功能,可调节透明度,重构多视角拼接布局
Xu-z-y 13ea163
Merge branch 'OpenHUTB:main' into main
Xu-z-y 97515d7
feat(interactive): 新增键盘交互可视化模式切换,支持4种布局+融合透明度动态调节
Xu-z-y edf6f41
Merge branch 'OpenHUTB:main' into main
Xu-z-y 920ed3b
完成ros封装,上传launch文件
Xu-z-y File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/carla_autonomous_driving_perception/launch/CMakeLists.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| cmake_minimum_required(VERSION 3.0.2) | ||
| # 功能包名称(必须与package.xml中的name一致) | ||
| project(mmap_test) | ||
|
|
||
| # -------------------------- 适配Python3.7.5 -------------------------- | ||
| # 指定你的虚拟环境Python解释器路径(关键!) | ||
| set(PYTHON_EXECUTABLE /home/pan-j-l/my_ros_project/venv_py37/bin/python3) | ||
| # 系统Python3.7的头文件路径(Ubuntu20.04默认路径,一般无需修改) | ||
| set(PYTHON_INCLUDE_DIR /usr/include/python3.7m) | ||
| # 系统Python3.7的库文件路径(Ubuntu20.04默认路径,一般无需修改) | ||
| set(PYTHON_LIBRARY /usr/lib/x86_64-linux-gnu/libpython3.7m.so) | ||
|
|
||
| # -------------------------- 查找ROS依赖包 -------------------------- | ||
| find_package(catkin REQUIRED COMPONENTS | ||
| rospy | ||
| std_msgs | ||
| sensor_msgs | ||
| cv_bridge | ||
| ) | ||
|
|
||
| # -------------------------- 声明Catkin包 -------------------------- | ||
| catkin_package( | ||
| # 声明该包依赖的其他ROS包,供其他包引用 | ||
| CATKIN_DEPENDS rospy std_msgs sensor_msgs cv_bridge | ||
| ) | ||
|
|
||
| # -------------------------- 安装Python脚本 -------------------------- | ||
| # 将scripts目录下的Python脚本安装到ROS的devel目录,实现全局调用 | ||
| catkin_install_python(PROGRAMS | ||
| scripts/ros_test_node.py | ||
| DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
| ) | ||
|
|
||
| # -------------------------- 包含目录 -------------------------- | ||
| include_directories( | ||
| ${catkin_INCLUDE_DIRS} | ||
| ) | ||
23 changes: 23 additions & 0 deletions
23
src/carla_autonomous_driving_perception/launch/carla_perception.launch
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <launch> | ||
| <!-- 全局参数配置 --> | ||
| <param name="/perception_decision_node/image_shape" value="[3, 128, 128]" /> | ||
| <param name="/perception_decision_node/feature_dim" value="128" /> | ||
| <param name="/perception_decision_node/cmd_dim" value="2" /> | ||
| <param name="/perception_decision_node/timer_freq" value="10" /> | ||
|
|
||
| <!-- 启动节点:移除shell属性,指定系统Python + 虚拟环境依赖 --> | ||
| <node | ||
| name="perception_decision_node" | ||
| pkg="mmap_test" | ||
| type="perception_decision_node.py" | ||
| output="screen" | ||
| respawn="false"> | ||
|
|
||
| <!-- 关键:让Python同时加载系统ROS包 + 虚拟环境的torch等包 --> | ||
| <env name="PYTHONPATH" value="/home/pan-j-l/my_ros_project/venv_py37/lib/python3.7/site-packages:/opt/ros/noetic/lib/python3/dist-packages:$PYTHONPATH" /> | ||
| <!-- 指定ROS的Python解释器(避免虚拟环境无rospy) --> | ||
| <env name="ROS_PYTHON_VERSION" value="3" /> | ||
| </node> | ||
|
|
||
| </launch> |
24 changes: 24 additions & 0 deletions
24
src/carla_autonomous_driving_perception/launch/package.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?xml version="1.0"?> | ||
| <package format="2"> | ||
| <!-- 功能包基本信息 --> | ||
| <name>mmap_test</name> | ||
| <version>0.0.1</version> | ||
| <description>ROS Noetic功能包:集成感知模块与决策模块的测试节点</description> | ||
| <!-- 修正:使用合法的QQ邮箱 --> | ||
| <maintainer email="3541417288@qq.com">pan-j-l</maintainer> | ||
| <license>MIT</license> | ||
|
|
||
| <!-- 编译工具依赖 --> | ||
| <buildtool_depend>catkin</buildtool_depend> | ||
|
|
||
| <!-- ROS运行时依赖 --> | ||
| <exec_depend>rospy</exec_depend> | ||
| <exec_depend>std_msgs</exec_depend> | ||
| <exec_depend>sensor_msgs</exec_depend> | ||
| <exec_depend>cv_bridge</exec_depend> | ||
|
|
||
| <!-- 导出编译类型 --> | ||
| <export> | ||
| <build_type>catkin</build_type> | ||
| </export> | ||
| </package> |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要避免使用绝对路径