Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[visualization] addSphere is not working properly #4070

Open
vigneshsara opened this issue May 8, 2020 · 7 comments
Open

[visualization] addSphere is not working properly #4070

vigneshsara opened this issue May 8, 2020 · 7 comments
Labels
kind: bug Type of issue module: visualization needs: testing Specify why not closed/merged yet

Comments

@vigneshsara
Copy link

vigneshsara commented May 8, 2020

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]
@vigneshsara vigneshsara added kind: bug Type of issue status: triage Labels incomplete labels May 8, 2020
@kunaltyagi
Copy link
Member

Your Environment isn't updated

@kunaltyagi kunaltyagi added module: visualization needs: author reply Specify why not closed/merged yet and removed status: triage Labels incomplete labels May 8, 2020
@kunaltyagi
Copy link
Member

sphere shape placed in wrong places

Please provide more information, specially where you clicked vs where the sphere appeared

@vigneshsara
Copy link
Author

If i click the point ,it display near to some previous points places. like A ,B are two sphere available in viewer and now i have add new sphere its display near to A are B .

@vishnukumarts
Copy link

vishnukumarts commented May 12, 2020

Yes, Indeed I too face this issue.
Goto pcd_viewer.cpp (in pcl/tools)
Add the below line, before (p->addText3Dpcl::PointXYZ (ss.str (), pos, 0.0005, 1.0, 1.0, 1.0, ss.str ()))
p->addSphere<pcl::PointXYZ> (pos, 0.0005, 1.0, 1.0, 1.0, ss.str ());

Build the viewer you can able to see this issue. Adding my pcd file.

@kunaltyagi
Copy link
Member

You missed adding a pcd file @vishnukumarts

@kunaltyagi kunaltyagi added needs: testing Specify why not closed/merged yet and removed needs: author reply Specify why not closed/merged yet labels May 12, 2020
@vishnukumarts
Copy link

cam1.zip

@kunaltyagi kunaltyagi changed the title addSphere is not working properly [visualization] addSphere is not working properly May 12, 2020
@sthoduka
Copy link

this is probably related to #3954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Type of issue module: visualization needs: testing Specify why not closed/merged yet
Projects
None yet
Development

No branches or pull requests

4 participants