PointCloudLibrary / PointCloudLibrary/pcl

problems about using PCLVisualizer to display polygons

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

Nobody has claimed this yet.

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

Description

I'd like to use addpolygon() to show planar patches. An certain polygon surface can display but after some rotation it will disappear. I also tried to use addplane() and got the same result.

Your Environment

  • Operating System and version: Ubuntu 16.04
  • Compiler:gcc 7.0
  • PCL Version:1.7

Context

Expected Behavior

Current Behavior

Code to Reproduce

pcl::visualization::PCLVisualizer pViewer("planes");
pViewer.addCoordinateSystem (1.0);
Eigen::Vector4f planarCoeff(p.plane.normal()(0), p.plane.normal()(1), p.plane.normal()(2), p.plane.offset());
pcl::PlanarPolygonpcl::PointXYZ planeHull(hull.points, planarCoeff);
std::string planeName = "polygon";
pViewer.addPolygonpcl::PointXYZ(hull.makeShared(), dist(rd)%255, dist(rd)%255, dist(rd)%255, planeName);
pViewer.setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_REPRESENTATION, pcl::visualization::PCL_VISUALIZER_REPRESENTATION_SURFACE, planeName);
pViewer.setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_OPACITY, 1.0, planeName);

Possible Solution

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 with the supplied PCLVisualizer snippet, especially addPolygon and addPlane, and reproduce the disappearing planar surface on Ubuntu 16.04 with PCL 1.7 and gcc 7.0. Investigate why rotation makes the polygon disappear; done when the cause is identified and the behavior is corrected or its limitation is documented.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.