Skip to content

feat: preserve original point cloud fields and add optional downsampling for initial_map visualization#84

Open
gakutasu wants to merge 2 commits intorsasaki0109:mainfrom
sbgisen:feature/improve-viz
Open

feat: preserve original point cloud fields and add optional downsampling for initial_map visualization#84
gakutasu wants to merge 2 commits intorsasaki0109:mainfrom
sbgisen:feature/improve-viz

Conversation

@gakutasu
Copy link
Copy Markdown
Contributor

Summary

  • initial_map was previously published as PointXYZI, discarding all
    original fields (e.g. RGB) from the source PCD/PLY file. It now uses
    raw_map_cloud (PCLPointCloud2) directly, preserving all fields.
  • Added two parameters to control visualization quality vs. performance:
    • viz_downsample (bool, default: false): enable voxel downsampling
      for the published initial_map
    • viz_voxel_leaf_size (double, default: 0.5): leaf size used when
      viz_downsample is true

Motivation

Maps with RGB fields (e.g. colorized LiDAR or photogrammetry-derived PCD)
were not renderable in color in RViz2 because the conversion to PointXYZI
stripped the color data. Additionally, large maps caused RViz2 performance
issues due to publishing at full resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant