用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/MIUAV/vibe-coding-ros2 --skill costmap-configuration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | costmap-configuration |
| description | 成本图配置技能 - 层级配置、膨胀半径、障碍物阈值、动态更新 |
| argument-hint | costmap OR 成本图 OR inflation OR costmap configuration |
| user-invocable | true |
Navigation2 成本图配置与优化
当需要以下帮助时使用此技能:
# config/global_costmap.yaml
global_costmap:
ros__parameters:
global_frame: map
robot_base_frame: base_link
update_frequency: 1.0
publish_frequency: 1.0
cost_scaling_factor: 1.0
# 障碍层
obstacles:
enabled: true
observation_sources: scan
scan:
sensor_frame: base_scan
topic: /scan
data_type: LaserScan
obstacle_range: 5.0
raytrace_range: 5.5
# 膨胀层
inflation:
enabled: true
cost_scaling_factor: 1.0
inflation_radius: 0.55
# 静态地图层
static_map:
enabled: true
map_topic: /map
# config/local_costmap.yaml
local_costmap:
ros__parameters:
global_frame: odom
robot_base_frame: base_link
update_frequency: 5.0
publish_frequency: 2.0
width: 3.0
height: 3.0
resolution: 0.05
plugins:
- obstacle_layer
- inflation_layer
obstacle_layer:
enabled: true
observation_sources: pointcloud
pointcloud:
topic: /lidar_points
data_type: PointCloud2
obstacle_range: 2.5
raytrace_range: 3.0
inflation_layer:
enabled: true
cost_scaling_factor: 1.5
inflation_radius: 0.35
Costmap 成本值 (0-255):
0 = NO obstacle
1-127 = Lethal obstacle (最近障碍物)
128 = Inscribed radius (内切圆半径)
129-252 = Possibly circumscribed radius (可能的外接圆)
253-254 = No information
255 = Unknown