You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# `pointcloud_to_grid` ROS 2 package
2
-
This package converts `sensor_msgs/PointCloud2` LIDAR data to `nav_msgs/OccupancyGrid` 2D map data based on intensity and / or height.
2
+
This package converts `sensor_msgs/PointCloud2` LIDAR data to both `nav_msgs/OccupancyGrid` and `grid_map_msgs/GridMap` 2D map data based on intensity and / or height.
@@ -17,7 +17,8 @@ Don't foget to `source ~/ros2_ws/install/setup.bash`.
17
17
18
18
19
19
## Features
20
-
- Few dependencies (ROS 2 and PCL mainly) [ROS installation](http://wiki.ros.org/ROS/Installation)
20
+
- Few dependencies (ROS 2, PCL, and grid_map_msgs mainly) [ROS installation](http://wiki.ros.org/ROS/Installation)
21
+
-**Dual output format support**: Publishes both `nav_msgs/OccupancyGrid` and `grid_map_msgs/GridMap` messages simultaneously
21
22
- Simple as possible
22
23
- Fast
23
24
@@ -58,6 +59,42 @@ Start the visualization in a **new terminal** :
58
59
ros2launchpointcloud_to_gridrviz.launch.py
59
60
```
60
61
62
+
## Dual Output Format Support
63
+
64
+
The package now supports publishing both `nav_msgs/OccupancyGrid` and `grid_map_msgs/GridMap` message types simultaneously. This allows for better integration with different ROS 2 packages that may prefer one format over the other.
65
+
66
+
### New Parameters
67
+
68
+
In addition to the existing parameters, the following new parameters control the GridMap output topics:
69
+
70
+
| Parameter | Type | Default | Description |
71
+
|-----------|------|---------|-------------|
72
+
|`mapi_gridmap_topic_name`| string |`intensity_gridmap`| Topic name for intensity GridMap |
73
+
|`maph_gridmap_topic_name`| string |`height_gridmap`| Topic name for height GridMap |
74
+
75
+
### Output Topics
76
+
77
+
The node now publishes to four topics simultaneously:
The package is configured to use `BEST_EFFORT` reliability QoS policy for the input point cloud subscription. This ensures compatibility with typical LiDAR sensor publishers that often use this policy for performance reasons. This prevents QoS compatibility warnings that might appear with the default `RELIABLE` policy.
97
+
61
98
62
99
## Related solutions
63
100
-[github.com/ANYbotics/grid_map](https://github.com/ANYbotics/grid_map) - This is a C++ library with ROS interface to manage two-dimensional grid maps with multiple data layers.
0 commit comments