Conversation
Member
|
ros相关的功能提交到ros2仓库 |
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)物理仿真 + 键盘运动控制,需要提供 Carla 仿真环境下的键盘控制车辆实现。原仓库只有
manual_control模块,但其脚本只能从仓库根目录运行,且缺少 launch 启动支持,不符合模块入口规范。修改内容
src/carla_manual_control/模块目录main.py(基于 OpenHUTB 官方示例,实现键盘控制车辆)launch/main.launch,支持 roslaunch 启动README.md:运行环境、依赖安装、运行步骤、操作说明、演示动图demo.gif演示动图运行环境
运行步骤
Windows 启动 Carla:
Ubuntu 运行脚本:
或通过 launch 启动:
运行效果
左侧 HUD 实时显示速度、油门、转向、刹车等状态,按 WASD 可控制车辆行驶。