PointCloudLibrary / PointCloudLibrary/pcl
[visualization] addSphere is not working properly
Nobody has claimed this yet.
- 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);

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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