{"action":"created","issue":{"url":"https://api.github.com/repos/davidcaron/pclpy/issues/21","repository_url":"https://api.github.com/repos/davidcaron/pclpy","labels_url":"https://api.github.com/repos/davidcaron/pclpy/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/davidcaron/pclpy/issues/21/comments","events_url":"https://api.github.com/repos/davidcaron/pclpy/issues/21/events","html_url":"https://github.com/davidcaron/pclpy/issues/21","id":356431106,"node_id":"MDU6SXNzdWUzNTY0MzExMDY=","number":21,"title":"PCLVisualizer not working in pclpy","user":{"login":"pankaj203kumar","id":24790678,"node_id":"MDQ6VXNlcjI0NzkwNjc4","avatar_url":"https://avatars0.githubusercontent.com/u/24790678?v=4","gravatar_id":"","url":"https://api.github.com/users/pankaj203kumar","html_url":"https://github.com/pankaj203kumar","followers_url":"https://api.github.com/users/pankaj203kumar/followers","following_url":"https://api.github.com/users/pankaj203kumar/following{/other_user}","gists_url":"https://api.github.com/users/pankaj203kumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pankaj203kumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankaj203kumar/subscriptions","organizations_url":"https://api.github.com/users/pankaj203kumar/orgs","repos_url":"https://api.github.com/users/pankaj203kumar/repos","events_url":"https://api.github.com/users/pankaj203kumar/events{/privacy}","received_events_url":"https://api.github.com/users/pankaj203kumar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T09:43:07Z","updated_at":"2018-09-06T06:45:18Z","closed_at":null,"author_association":"NONE","body":"Hi, I am trying to use PCL library after installing pclpy and its dependencies packages. But when I use pcl.visualization.PCLVisualizer command for visualization purpose then new window pops up but then it gets struck and doesn't show anything. Can anyone help me with this issue ? I have provided few line of codes which I am using and attached the snapshot of new window getting hanged after using these codes. Thanks !!!\r\n\r\nviewer = pcl.visualization.PCLVisualizer(\"3D Viewer\")\r\nviewer.setBackgroundColor(1, 0, 0)\r\nviewer.addPointCloud(my_file)\r\nviewer.addCoordinateSystem(1.0)\r\nviewer.initCameraParameters()\r\nviewer.resetCamera()\r\n\r\n![3d_viewer](https://user-images.githubusercontent.com/24790678/44979930-bb64aa00-af6e-11e8-91b2-f2ce3c8da0a3.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/davidcaron/pclpy/issues/comments/418983309","html_url":"https://github.com/davidcaron/pclpy/issues/21#issuecomment-418983309","issue_url":"https://api.github.com/repos/davidcaron/pclpy/issues/21","id":418983309,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODk4MzMwOQ==","user":{"login":"niranjanreddy891","id":33854825,"node_id":"MDQ6VXNlcjMzODU0ODI1","avatar_url":"https://avatars0.githubusercontent.com/u/33854825?v=4","gravatar_id":"","url":"https://api.github.com/users/niranjanreddy891","html_url":"https://github.com/niranjanreddy891","followers_url":"https://api.github.com/users/niranjanreddy891/followers","following_url":"https://api.github.com/users/niranjanreddy891/following{/other_user}","gists_url":"https://api.github.com/users/niranjanreddy891/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjanreddy891/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjanreddy891/subscriptions","organizations_url":"https://api.github.com/users/niranjanreddy891/orgs","repos_url":"https://api.github.com/users/niranjanreddy891/repos","events_url":"https://api.github.com/users/niranjanreddy891/events{/privacy}","received_events_url":"https://api.github.com/users/niranjanreddy891/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T06:45:18Z","updated_at":"2018-09-06T06:45:18Z","author_association":"NONE","body":"@pankaj203kumar, try this\r\n\r\n```\r\ndef test_pcl_visualizer_simple():\r\n    pc = pclpy.io.read(test_data(\"file.las\"), \"PointXYZRGBA\")\r\n    viewer = pcl.visualization.PCLVisualizer(\"viewer\", False)\r\n    viewer.setBackgroundColor(0, 0, 0)\r\n    rgb = pcl.visualization.PointCloudColorHandlerRGBAField.PointXYZRGBA(pc)\r\n    viewer.addPointCloud(pc, rgb, \"sample cloud\")\r\n    viewer.setPointCloudRenderingProperties(0, 3, \"sample cloud\")\r\n    viewer.addCoordinateSystem(1.0)\r\n    viewer.initCameraParameters()\r\n    viewer.resetCamera()\r\n```"}}
{"actor":{"display_login":"niranjanreddy891"}}