Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version humble
Last Updated 2025-10-07
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.4.1

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
jazzy

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version jazzy
Last Updated 2025-10-07
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.7.2

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
kilted

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version kilted
Last Updated 2025-10-07
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.10.2

README

No README found.

CONTRIBUTING

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that license.

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that [license](https://opensource.org/licenses/BSD-3-Clause).
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
lyrical

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version lyrical
Last Updated 2026-03-24
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.11.3

README

No README found.

CONTRIBUTING

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that license.

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that [license](https://opensource.org/licenses/BSD-3-Clause).
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version rolling
Last Updated 2026-11-25
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 3.0.2

README

No README found.

CONTRIBUTING

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that license.

Any contribution that you make to this repository will be under the 3-Clause BSD License, as dictated by that [license](https://opensource.org/licenses/BSD-3-Clause).
No version for distro github showing humble. Known supported distros are highlighted in the buttons above.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version humble
Last Updated 2025-10-07
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.4.1

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
galactic

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version galactic
Last Updated 2021-05-12
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.2.2

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
iron

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version iron
Last Updated 2023-02-14
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 2.5.0

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
melodic

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2022-08-19
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 1.6.7

README

No README found.
Repo symbol

laser_geometry repository

laser_geometry

ROS Distro
noetic

Repository Summary

Description
Checkout URI https://github.com/ros-perception/laser_geometry.git
VCS Type git
VCS Version noetic-devel
Last Updated 2026-12-04
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
laser_geometry 1.6.8

README

Overview

The laser_geometry package contains a single C++ class: LaserProjection. There is no ROS API.

This class has two relevant functions for transforming from sensor_msgs/msg/LaserScan to sensor_msgs/msg/PointCloud or sensor_msgs/msg/PointCloud2.

  • projectLaser() is simple and fast. It does not change the frame of your data.
  • transformLaserScanToPointCloud() is slower but more precise. It makes uses of tf and the sensor_msgs/msg/LaserScan time increment to transform each individual ray appropriately. This is the recommended means of transformation for tilting laser scanners or moving robots.

Both of these functions have a final optional argument that augments the sensor_msgs/msg/PointCloud which is created to include extra channels. These channels may include intensities, distances, timestamps, the index or thew viewpoint from the original laser array.

There is a simple Python implementation here (https://github.com/ros-perception/laser_geometry/blob/indigo-devel/src/laser_geometry/laser_geometry.py).

C++ Usage

Simple projection

The method projectLaser() does the simplest possible projection of the laser. Each ray is simply projected out along the appropriate angle according to:

\begin{eqnarray*}
\left(\begin{array}{c}x\\y\\z\end{array}\right) & = & \left(\begin{array}{c}r \cos \theta\\r \sin \theta \\ 0\end{array}\right)
\end{eqnarray*}

The appropriate sine and cosine values are cached, making this a very efficient operation. However, the generated sensor_msgs/msg/PointCloud is in the same frame as the original sensor_msgs/msg/LaserScan. While this has the advantage that it does not require an instance of a tf::transformer or message notifier, it does not hold up in situations where the laser is moving and skew needs to be accounted for.

Please consult the API Documentation for full usage details.

Example: To convert a sensor_msgs/msg/LaserScan to a sensor_msgs/msg/PointCloud

laser_geometry::LaserProjection projector_;

void scanCallback (const sensor_msgs::LaserScan::ConstPtr& scan_in)
{
  sensor_msgs::PointCloud cloud;
  projector_.projectLaser(*scan_in, cloud);

  // Do something with cloud.
}

High fidelity projection

The transformLaserScanToPointCloud() method does a more advanced projection, but requires that you have set up a tf transform listener. (If you are unfamiliar with tf, it is recommended you go through the tf/Tutorials first.)

Since we are gathering data across the time of the scan, it is often important that the chosen target_frame is actually a fixed frame.

Because the stamp of a sensor_msgs/msg/LaserScan is the time of the first measurement, one cannot simply wait for a transform to target_frame at this stamp. Instead one also has to wait for a transform at the last measurement of the scan.

Please consult the

File truncated at 100 lines see the full file