PointCloudLibrary / PointCloudLibrary/pcl

[visualization] addSphere is not working properly

Open
#4,070 7 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

Describe the bug

I want to mark the picking points form point picking event, so that i had use the addSphere to mark the point, if i had mark the multiple points in cloud its not working properly

Context

Add the marker using addSphere .

Expected behavior

Add the sphere shape in marker in pcl visualizer

Current Behavior

sphere shape placed in wrong places

Screenshots/Code snippets

 pcl::PointXYZRGB currentPoint;
 event.getPoint(currentPoint.x,currentPoint.y,currentPoint.z);
 std::string sphere="s0"+boost::lexical_cast<std::string>(countOne);
 pclViewer->addSphere(currentPoint,0.005,255,0,0,sphere,portOne);

Screenshot from 2020-05-08 19-49-26

Your Environment (please complete the following information):

  • OS: [e.g. Ubuntu 18.04]
  • Compiler: [:eg GCC 8.1]
  • PCL Version [e.g. 1.10, HEAD]

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 by reproducing the issue with the provided point-picking snippet, focusing on event.getPoint and pclViewer->addSphere. Inspect how multiple picked points are passed to addSphere and compare their coordinates with the displayed markers. Done means spheres are placed at the selected points consistently when multiple points are marked.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.