1 Star 1 Fork 4

tangyang / pointcloud_publisher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

pointcloud_publisher

此代码的作用:

  1. 将点云文件内容数据发布到话题 /pointcloud/output
  2. 使用octomap_server_node接收数据并生成Octomap
  3. 使用rviz查看点云及对应的Octomap

使用方法

安装Octomap

An Efficient Probabilistic 3D Mapping Framework Based on Octrees

源码地址:https://github.com/OctoMap/octomap

这里 $ROS_DISTRO 代表你电脑上的ros版本,可以通过 echo $ROS_DISTRO 查看具体代表的版本,如果命令没有输出内容,可以根据不同的ubuntu系统,替换成字符串即可:

  • Ubuntu14.04 -> indigo
  • Ubuntu16.04 -> kinetic
  • Ubuntu18.04 -> melodic
sudo apt-get install ros-$ROS_DISTRO-octomap-ros 
sudo apt-get install ros-$ROS_DISTRO-octomap-msgs
sudo apt-get install ros-$ROS_DISTRO-octomap-server

给rviz安装插件用于显示octomap

sudo apt-get install ros-$ROS_DISTRO-octomap-rviz-plugins

下载并编译ROS节点

cd catkin_ws/src
git clone https://gitee.com/tangyang/pointcloud_publisher.git
cd ..
catkin_make

启动节点并预览

roslaunch pointcloud_publisher demo.launch

使用其他点云

我们可以将其他.pcd文件拷贝到 pointcloud_publisher/data 目录下,然后修改 launch/demo.launch 中的path参数即可:

<param name="path" value="$(find pointcloud_publisher)/data/room_scan1.pcd" type="str" />
MIT License Copyright (c) 2020 poplartang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

将点云文件内容数据发布到话题 /pointcloud/output、使用octomap_server_node接收数据并生成Octomap、使用rviz查看点云及对应的Octomap 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/tangyang/pointcloud_publisher.git
git@gitee.com:tangyang/pointcloud_publisher.git
tangyang
pointcloud_publisher
pointcloud_publisher
master

搜索帮助