Skip to content

Software

pointcloud_to_laserscan

By ROS Perception, from github.com/ros-perception/pointcloud_to_laserscan (opens in a new tab)

  • Perception
  • Tool
  • BSD-3-Clause

A ROS 2 package with two components that convert PointCloud2 messages to LaserScan messages and back. It is a port of the original ROS 1 package.

Facts

GitHub stars
607read on 28 Nov 2026
Last update
2 Nov 2026Newest commit on rolling
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner

Checked on GitHub on 28 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 772967f (opens in a new tab), on 6 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Projects PointCloud2 messages into LaserScan messages through the pointcloud_to_laserscan::PointCloudToLaserScanNode component, publishing to the scan topic.
  • Re-publishes LaserScan messages as PointCloud2 messages through the pointcloud_to_laserscan::LaserScanToPointCloudNode component, publishing to the cloud topic.
  • The point-cloud-to-scan node processes no input unless something subscribes to its scan topic; the scan-to-cloud node likewise waits for a subscriber on cloud.
  • Height limits, scan angle range, angle increment and range limits are configurable parameters for the point-cloud-to-scan conversion.
  • An optional target_frame parameter transforms the data into another frame before conversion, with a transform_tolerance for lookups.
  • A use_inf parameter selects whether no-obstacle readings are reported as +inf or as range_max + 1.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by RC WheelLeg.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 2 Nov 2026.

Works with

1 robot on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 772967f

Robotheca read the repository at two versions: the summary at 595bc92 and the facts and the README at 772967f (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by ROS Perception, at commit 772967f, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

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: 2.2e-308) - The minimum height to sample in the point cloud in meters.
  • max_height (double, default: 1.8e+308) - The maximum height to sample in the point cloud in meters.
  • angle_min (double, default: -π) - The minimum scan angle in radians.
  • angle_max (double, default: π) - The maximum scan angle in radians.
  • angle_increment (double, default: π/180) - 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.0) - The minimum ranges to return in meters.
  • range_max (double, default: 1.8e+308) - 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 laser scan into this frame before converting to a pointcloud. Otherwise, pointcloud will be generated in the same frame as the input laser scan.
  • transform_tolerance (double, default: 0.01) - Time tolerance for transform lookups. Only used if a target_frame is provided.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.