PointCloudLibrary / PointCloudLibrary/pcl

PCLVisualizer::updateText doesn't always update, sometimes adds instead

Open
#926 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This may possibly be user error, but I wanted to make a note of it here anyway, in case others experience it.

If I use addText to create 2D text in a visualization, providing an id manually, updating it does not always remove the old text — even when I again provide that id.

It strikes me that this may be a mismanagement of defaults problem, since the id defaults to the text string, and my text string is changing every loop iteration or so.

This does not appear to happen on the first viewport. If I have more than one viewport, it happens on the second. I'll let you know later whether it happens on the third and fourth.

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 PCLVisualizer::addText and PCLVisualizer::updateText, focusing on manually supplied IDs, changing text strings, and behavior across multiple viewports. Reproduce the issue with a second viewport and verify that updating an existing ID replaces the old text rather than adding another item.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.