# ROS 2 pointcloud <-> laserscan converters
This is a ROS 2 package that provides components to convert `sensor_msgs/msg/PointCloud2` messages to `sensor_msgs/msg/LaserScan` messages and back.
It is essentially a port of the original ROS 1 package.
## pointcloud\_to\_laserscan::PointCloudToLaserScanNode
This ROS 2 component projects `sensor_msgs/msg/PointCloud2` messages into `sensor_msgs/msg/LaserScan` messages.
### Published Topics
* `scan` (`sensor_msgs/msg/LaserScan`) - The output laser scan.
### Subscribed Topics
* `cloud_in` (`sensor_msgs/msg/PointCloud2`) - The input point cloud. No input will be processed if there isn't at least one subscriber to the `scan` topic.
### Parameters
* `min_height` (double, default: 0.0) - The minimum height to sample in the point cloud in meters.
* `max_height` (double, default: 1.0) - The maximum height to sample in the point cloud in meters.
* `angle_min` (double, default: -π/2) - The minimum scan angle in radians.
* `angle_max` (double, default: π/2) - The maximum scan angle in radians.
* `angle_increment` (double, default: π/360) - Resolution of laser scan in radians per ray.
* `queue_size` (double, default: detected number of cores) - Input point cloud queue size.
* `scan_time` (double, default: 1.0/30.0) - The scan rate in seconds. Only used to populate the scan_time field of the output laser scan message.
* `range_min` (double, default: 0.45) - The minimum ranges to return in meters.
* `range_max` (double, default: 4.0) - The maximum ranges to return in meters.
* `target_frame` (str, default: none) - If provided, transform the pointcloud into this frame before converting to a laser scan. Otherwise, laser scan will be generated in the same frame as the input point cloud.
* `transform_tolerance` (double, default: 0.01) - Time tolerance for transform lookups. Only used if a `target_frame` is provided.
* `use_inf` (boolean, default: true) - If disabled, report infinite range (no obstacle) as range_max + 1. Otherwise report infinite range as +inf.
## pointcloud\_to\_laserscan::LaserScanToPointCloudNode
This ROS 2 component re-publishes `sensor_msgs/msg/LaserScan` messages as `sensor_msgs/msg/PointCloud2` messages.
### Published Topics
* `cloud` (`sensor_msgs/msg/PointCloud2`) - The output point cloud.
### Subscribed Topics
* `scan_in` (`sensor_msgs/msg/LaserScan`) - The input laser scan. No input will be processed if there isn't at least one subscriber to the `cloud` topic.
### Parameters
* `queue_size` (double, default: detected number of cores) - Input laser scan queue size.
* `target_frame` (str, default: none) - If provided, transform the pointcloud into this frame before converting to a laser scan. Otherwise, laser scan will be generated in the same frame as the input point cloud.
* `transform_tolerance` (double, default: 0.01) - Time tolerance for transform lookups. Only used if a `target_frame` is provided.
* `use_inf` (boolean, default: true) - If disabled, report infinite range (no obstacle) as range_max + 1. Otherwise report infinite range as +inf.
没有合适的资源?快使用搜索试试~ 我知道了~
pointcloud_to_laserscan:将3D点云转换为2D激光扫描
共12个文件
cpp:3个
hpp:2个
py:2个
需积分: 44 20 下载量 83 浏览量
2021-05-02
23:57:44
上传
评论
收藏 19KB ZIP 举报
温馨提示
ROS 2 pointcloud <-> laserscan转换器 这是ROS 2软件包,提供用于将sensor_msgs/msg/PointCloud2消息转换为sensor_msgs/msg/LaserScan消息并返回的组件。 它实质上是原始ROS 1软件包的端口。 pointcloud_to_laserscan :: PointCloudToLaserScanNode ROS 2组件将sensor_msgs/msg/PointCloud2消息sensor_msgs/msg/LaserScan到sensor_msgs/msg/LaserScan消息中。 发表的话题 scan ( sensor_msgs/msg/LaserScan )-输出激光扫描。 订阅的主题 cloud_in ( sensor_msgs/msg/PointCloud2 )-输入点云。 如果没有至少一个用户在没有输
资源推荐
资源详情
资源评论
收起资源包目录
pointcloud_to_laserscan-foxy.zip (12个子文件)
pointcloud_to_laserscan-foxy
include
pointcloud_to_laserscan
pointcloud_to_laserscan_node.hpp 4KB
laserscan_to_pointcloud_node.hpp 3KB
visibility_control.h 3KB
launch
sample_laserscan_to_pointcloud_launch.py 2KB
sample_pointcloud_to_laserscan_launch.py 2KB
src
pointcloud_to_laserscan_node.cpp 9KB
dummy_pointcloud_publisher.cpp 3KB
laserscan_to_pointcloud_node.cpp 6KB
CMakeLists.txt 2KB
CHANGELOG.rst 3KB
README.md 3KB
package.xml 2KB
共 12 条
- 1
资源评论
老盐蛋炒饭
- 粉丝: 27
- 资源: 4829
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功