|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |
Launch files
Messages
Services
Plugins
Recent questions tagged mrpt_pointcloud_pipeline at Robotics Stack Exchange
|
mrpt_pointcloud_pipeline package from mrpt_navigation repomrpt_map_server mrpt_msgs_bridge mrpt_nav_interfaces mrpt_navigation mrpt_pf_localization mrpt_pointcloud_pipeline mrpt_reactivenav2d mrpt_tps_astar_planner mrpt_trajectory_follower mrpt_tutorials |
ROS Distro
|
Package Summary
| Version | 2.9.0 |
| License | BSD |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/mrpt-ros-pkg/mrpt_navigation.git |
| VCS Type | git |
| VCS Version | ros2 |
| Last Updated | 2026-11-22 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Jose-Luis Blanco-Claraco
- Shravan S Rai
Authors
- Jose-Luis Blanco-Claraco
- Shravan S Rai
mrpt_pointcloud_pipeline
Overview
This package provides a ROS 2 node (also available as a composable node,
LocalObstaclesNode) that builds a local obstacle point cloud around the robot
from recent 2D laser scans and/or point clouds. Typical uses are feeding the
obstacles of a planner or path follower, filtering a 3D LiDAR by a volume or
height band, and downsampling.
Every observation within a sliding time window is processed by a configurable mp2p_icp filter pipeline, defined in a YAML file (see params/point-cloud-pipeline.yaml):
-
generators: how observations become point layers. -
per_observation: filters applied to each observation (e.g. removing the robot body). -
final: filters applied to the accumulated points (e.g. bounding box, decimation). One or more of its output layers are published assensor_msgs/PointCloud2.
Two optional stages handle common sensor limitations:
-
Obstacle memory (
memory_*parameters): short-term memory of obstacles inside a region the sensors can’t see (e.g. right in front of a high-mounted LiDAR). Points are stored in the reference frame, so obstacles that move into the blind zone are still reported, and are forgotten once observed free or aftermemory_max_age. -
Obstacle confirmation (
confirm_*parameters): an output point is only reported if an update built from other observations had a point withinconfirm_radius, so one-off artifacts of a single scan are discarded.
Demos
ros2 launch mrpt_tutorials demo_pointcloud_pipeline_mvsim.launch.py
runs the node with a simulated Jackal robot in mvsim. The node is also used by most other demos in mrpt_tutorials.
Node: mrpt_pointcloud_pipeline_node
Subscribed topics
-
<source_topics_2d_scans>(sensor_msgs/LaserScan): 2D laser scans. -
<source_topics_pointclouds>(sensor_msgs/PointCloud2): point clouds. -
/tf,/tf_static: sensor poses on the robot (frameid_robot), and the robot pose inframeid_referenceat each observation time.
Published topics
-
<topic_local_map_pointcloud>(sensor_msgs/PointCloud2): the local obstacle points, inframeid_robot. One topic per output layer.
Parameters
| Name | Default | Description |
|---|---|---|
source_topics_2d_scans |
"scan, laser1" |
Comma-separated list of LaserScan topics. |
source_topics_pointclouds |
"" |
Comma-separated list of PointCloud2 topics. |
pipeline_yaml_file |
(required) | YAML file with the mp2p_icp generators and filters. |
filter_output_layer_name |
"output" |
Comma-separated list of pipeline output layers to publish. |
topic_local_map_pointcloud |
"local_map_pointcloud" |
Comma-separated list of output topics, one per output layer. |
frameid_reference |
"odom" |
Frame where observations are accumulated. |
frameid_robot |
"base_link" |
Robot frame, also the frame of the published points. |
time_window |
0.20 |
Observations older than this [s] are discarded. |
one_observation_per_topic |
false |
Use only the latest observation of each input topic. |
publish_period |
0.05 |
Timer period [s]. New observations are published right away; the timer handles those waiting for their robot pose and republishes the last output. Can’t be larger than time_window. |
republish_unchanged |
true |
Republish the last output on each timer period while there are no new observations. |
tf_max_wait |
0.5 |
How long [s] an observation waits for the robot pose at its time before being dropped. |
max_input_age |
0.0 |
If >0, nothing is published while the latest observation of some input topic (one that published before) is older than this [s], so a stalled sensor does not look like free space. |
memory_layers |
"" |
Comma-separated output layers with obstacle memory (empty: disabled). |
memory_region |
"" |
Remembered region "x_min, y_min, x_max, y_max" [m], robot frame. Required if memory_layers is set. |
memory_self_box |
"" |
Box "x_min, y_min, x_max, y_max" [m] (robot frame) whose points are never stored, e.g. the robot itself. |
memory_max_age |
10.0 |
Stored points are forgotten after this time [s]. |
memory_voxel_size |
0.10 |
Storage resolution [m]. |
memory_min_hits |
3 |
A voxel is only reported after being observed in this many updates. |
memory_store_margin |
1.0 |
Live points this close to the region [m] are stored too. |
confirm_radius |
0.0 |
If >0, enables obstacle confirmation with this radius [m]. |
confirm_max_age |
0.5 |
Past updates older than this [s] are not used for confirmation. Must be larger than time_window, unless one_observation_per_topic is true. |
show_gui |
false |
Show an MRPT GUI window with the points. |
Template ROS 2 launch files
This package provides launch/pointcloud_pipeline.launch.py:
ros2 launch mrpt_pointcloud_pipeline pointcloud_pipeline.launch.py \
scan_topic_name:=/scan
Its launch arguments map to the node parameters above: scan_topic_name
(source_topics_2d_scans), points_topic_name (source_topics_pointclouds),
filter_output_topic_name (topic_local_map_pointcloud, default
/local_map_pointcloud), show_gui (default True), and the rest with the
same names. Use use_composable:=true container_name:=<name> to load it into
an existing component container, and log_level to change the log level.
Changelog for package mrpt_pointcloud_pipeline
2.9.0 (2026-11-14)
- New observations are processed and published from their own callback, instead of waiting for the next publish_period timer; new republish_unchanged parameter (default true, as before).
- New max_input_age parameter: publish nothing while some input topic stalls, so a sensor that stopped is not hidden by fresh data from the others. Robust to out-of-order stamps and clock resets.
- Contributors: Jose Luis Blanco-Claraco
2.8.0 (2026-11-01)
- Optional confirmation of output points by independent observations (confirm_radius), and no rebuild of the local map from unchanged observations (#212)
- Contributors: Jose Luis Blanco-Claraco
2.7.0 (2026-10-29)
- Place each observation with the robot pose at its timestamp (tf_max_wait), dropping those whose pose never arrives; merge each observation once.
- Optional memory of obstacles in the sensors blind zone (only those seen in several scans, never the robot itself).
- Subscribe to sensors with SensorDataQoS.
- Contributors: Jose Luis Blanco-Claraco
2.6.1 (2026-10-02)
2.6.0 (2026-10-01)
- Merge pull request #175 from mrpt-ros-pkg/mrpt3
- Merge ros2 into mrpt3
- Merge pull request #163 from mrpt-ros-pkg/feature/ccache-support
- build: enable ccache in all packages when available
- Apply clang-format-14 to all sources
- Port to MRPT 3.x: rename packages and targets
- docs: update mrpt docs URI
- Contributors: Jose Luis Blanco-Claraco
2.5.0 (2026-05-11)
- Merge pull request #161 from mrpt-ros-pkg/fix-threads Fix threads
- fix: safer multithreading access
- Merge pull request #159 from mrpt-ros-pkg/bump-cmake bump min req cmake version to 3.22
- bump min req cmake version to 3.22
- Contributors: Jose Luis Blanco-Claraco
2.4.0 (2026-04-19)
- Merge pull request #158 from mrpt-ros-pkg/feat/parallel-planner Implement parallel A* planner; misc bug and style fixes
- fix(pointcloud_pipeline): declare use_composable launch arg with default 'false' pointcloud_pipeline.launch.py consumed LaunchConfiguration('use_composable') without declaring it, causing InvalidConditionExpressionError when launched directly. Same bug as the one fixed in mrpt_pf_localization. Also added a description to container_name arg. Co-Authored-By: Claude Sonnet 4.6 <<noreply@anthropic.com>>
- clang-format
- Contributors: Jose Luis Blanco-Claraco
2.3.1 (2026-04-02)
2.3.0 (2025-10-26)
2.2.4 (2025-07-24)
2.2.3 (2025-07-22)
2.2.2 (2025-05-28)
- FIX: remove usage of obsolete ament_target_dependencies()
- Merge pull request #153 from dppp415/ros2 Composable Nodes
- Some fixes and demo
- Copyright
- Deleted duplicated code
- Nodes mrpt_pointcloud_pipeline y mrpt_pf_localization are now composables
- Contributors: Jose Luis Blanco-Claraco, dppp415
2.2.1 (2024-10-12)
2.2.0 (2024-09-25)
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
| Name | Deps |
|---|---|
| mrpt_navigation |