Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/MIUAV/vibe-coding-ros2 --skill costmap-configuration명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| 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