Repository navigation
feat(uav_flight_base): 新增无人机基础飞行模块(键盘遥控 / 运动学仿真 / 状态监控) - #7656
Closed
sqrt-crypto wants to merge 37 commits into
Closed
sqrt-crypto wants to merge 37 commits into
sqrt-crypto wants to merge 37 commits into
Conversation
任务2(传感器感知与运动控制)的实现: - urdf/uav_simple.urdf: 四旋翼模型(机身/旋翼/相机/2D 激光雷达) - worlds/uav_world.world: 8m×8m 封闭场地,含中央柱与红色目标桶 - launch/gazebo.launch: 在 Gazebo 中生成无人机 - launch/avoid.launch: 激光避障一条命令启动 - launch/servo.launch: 相机颜色检测 + 视觉伺服 - scripts/uav_scan_avoider.py: 激光雷达反应式避障(感知→控制),CSV 记录轨迹 - scripts/uav_color_detector.py: RGB→HSV 阈值检测红色目标,发布归一化偏差 - scripts/uav_visual_servo.py: PID 视觉伺服 + 目标丢失扫视搜索 - scripts/uav_camera_capture.py / uav_camera_record.py: 相机取帧与录帧工具 - docs/uav_flight_base/images/: 避障轨迹图与演示 GIF 实测(Ubuntu 20.04 + ROS Noetic + Gazebo 11): 无人机在 8m×8m 场地内自主避障 126 秒,轨迹始终位于 ±3.23m 以内(墙在 ±4m), 激光雷达 10Hz 输出 360 线扫描,轨迹 1441 行数据落盘。
Member
|
提交的仓库应该是:https://github.com/OpenHUTB/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.
这个 PR 做了什么
新增模块
src/uav_flight_base/:无人机基础飞行模块,包含键盘遥控、最小运动学仿真、状态监控三部分。这是"无人机"选题的第一次提交,目标是把「遥控 → 控制 → 状态反馈 → 数据落盘」这条链路先跑通,
后续任务(感知、建图导航、端到端策略)都建立在这个基座上。
模块结构
运行环境
运行步骤
验证结果
在本机(Ubuntu 20.04 + ROS Noetic)实测:
位移 7.3 米、偏航 107°,
/uav/odom稳定在 50Hz,TFmap→base_link正常广播。设计说明
先用轻量运动学模型把控制与数据链路跑通,后端可替换(
--mode gazebo已预留)。rosrun调试,main.py只负责调度。后续计划
检查项
catkin_make通过roslaunch可启动,节点正常注册/uav/cmd_vel、/uav/odom、/tf工作正常