Giter Club home page Giter Club logo

pcd2pgm's Introduction

PCD2PGM

基于 ROS2 和 PCL 库,用于将 .pcd 点云文件转换为用于 Navigation 的 pgm 栅格地图

pcd pgm
pcd pgm

一. 功能

  • 读取指定的.pcd文件

  • 使用Pass Through滤波器过滤点云

  • 使用Radius Outlier滤波器进一步处理点云

  • 将处理后的点云转换为占据栅格地图(Occupancy Grid Map)

  • 将转换后的地图发布到指定ROS话题上

二. 使用指南

2.1 克隆仓库

git clone https://gitee.com/LihanChen2004/pcd2pgm.git

2.2 安装依赖

ROS2 Humble(尚未在其他 ROS 版本中测试)

rosdep install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y

2.3 编译

cd /path/to/your/ros2_ws/
colcon build --symlink-install

2.4 运行 PCD2PGM 节点

source install/setup.sh
ros2 launch pcd2pgm pcd2pgm.launch.py

2.5 保存栅格地图

ros2 run nav2_map_server map_saver_cli -f YOUR_MAP_NAME

三. 参数说明

可以通过修改pcd2pgm/pcd.yaml文件来配置节点的参数。

/pcd2pgm:
  ros__parameters:
    file_directory: /home/lihanchen/Downloads/pcd2pgm/  # PCD文件所在目录
    file_name: RMUC  # PCD文件名(不包含后缀)
    flag_pass_through: false  # 是否使用Pass Through滤波器
    map_resolution: 0.05  # 地图分辨率
    map_topic_name: map  # 发布地图的ROS话题名
    thre_radius: 0.5  # Radius Outlier滤波器半径
    thre_z_max: 2.0  # Z轴最大值(用于Pass Through滤波器)
    thre_z_min: 0.1  # Z轴最小值(用于Pass Through滤波器)
    thres_point_count: 10  # 最小点数阈值(用于Radius Outlier滤波器)
    use_sim_time: false  # 是否使用仿真时间

pcd2pgm's People

Contributors

lihanchen2004 avatar

Stargazers

Kazuma Yagi avatar celaraze avatar  avatar  avatar Langzhe Gu avatar  avatar Wen Li avatar Qi Zhang avatar  avatar liqianqi avatar  avatar

Watchers

celaraze avatar  avatar

Forkers

yiyuncu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.