PointCloudLibrary / PointCloudLibrary/pcl

PCLPointCloud2 concatenation operation needs to consider the field size

Open
#3,337 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: todo module: common
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

Currenty, PCLPointCloud2::concatenate assumed same name implies same datatype. WIth the PR #3312 this will no longer be true. This issue was found during refactoring of #3320

Context

Fields will no longer be restricted to float_32 so concatenating it with a field of datatype float_64 will result in a corrupted output.

Expected Behavior

During concatenation, a check of field datatype should be performed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the PCLPointCloud2::concatenate entry point and review the field handling affected by PR #3312. Reproduce concatenation with same-named float_32 and float_64 fields, then verify that the datatype is checked and the output is no longer corrupted.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.