{"action":"closed","issue":{"url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1963","repository_url":"https://api.github.com/repos/IntelRealSense/librealsense","labels_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1963/labels{/name}","comments_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1963/comments","events_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1963/events","html_url":"https://github.com/IntelRealSense/librealsense/issues/1963","id":336208399,"node_id":"MDU6SXNzdWUzMzYyMDgzOTk=","number":1963,"title":"write_to_ply does not work when loading from .bag file.","user":{"login":"oscarzhaoyb","id":22350320,"node_id":"MDQ6VXNlcjIyMzUwMzIw","avatar_url":"https://avatars0.githubusercontent.com/u/22350320?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarzhaoyb","html_url":"https://github.com/oscarzhaoyb","followers_url":"https://api.github.com/users/oscarzhaoyb/followers","following_url":"https://api.github.com/users/oscarzhaoyb/following{/other_user}","gists_url":"https://api.github.com/users/oscarzhaoyb/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarzhaoyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarzhaoyb/subscriptions","organizations_url":"https://api.github.com/users/oscarzhaoyb/orgs","repos_url":"https://api.github.com/users/oscarzhaoyb/repos","events_url":"https://api.github.com/users/oscarzhaoyb/events{/privacy}","received_events_url":"https://api.github.com/users/oscarzhaoyb/received_events","type":"User","site_admin":false},"labels":[{"id":718299462,"node_id":"MDU6TGFiZWw3MTgyOTk0NjI=","url":"https://api.github.com/repos/IntelRealSense/librealsense/labels/SDK%202.0","name":"SDK 2.0","color":"5319e7","default":false},{"id":288064121,"node_id":"MDU6TGFiZWwyODgwNjQxMjE=","url":"https://api.github.com/repos/IntelRealSense/librealsense/labels/question","name":"question","color":"bfe5bf","default":true}],"state":"closed","locked":false,"assignee":{"login":"RealSense-Customer-Engineering","id":34384799,"node_id":"MDQ6VXNlcjM0Mzg0Nzk5","avatar_url":"https://avatars0.githubusercontent.com/u/34384799?v=4","gravatar_id":"","url":"https://api.github.com/users/RealSense-Customer-Engineering","html_url":"https://github.com/RealSense-Customer-Engineering","followers_url":"https://api.github.com/users/RealSense-Customer-Engineering/followers","following_url":"https://api.github.com/users/RealSense-Customer-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/RealSense-Customer-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/RealSense-Customer-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealSense-Customer-Engineering/subscriptions","organizations_url":"https://api.github.com/users/RealSense-Customer-Engineering/orgs","repos_url":"https://api.github.com/users/RealSense-Customer-Engineering/repos","events_url":"https://api.github.com/users/RealSense-Customer-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/RealSense-Customer-Engineering/received_events","type":"User","site_admin":false},"assignees":[{"login":"RealSense-Customer-Engineering","id":34384799,"node_id":"MDQ6VXNlcjM0Mzg0Nzk5","avatar_url":"https://avatars0.githubusercontent.com/u/34384799?v=4","gravatar_id":"","url":"https://api.github.com/users/RealSense-Customer-Engineering","html_url":"https://github.com/RealSense-Customer-Engineering","followers_url":"https://api.github.com/users/RealSense-Customer-Engineering/followers","following_url":"https://api.github.com/users/RealSense-Customer-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/RealSense-Customer-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/RealSense-Customer-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealSense-Customer-Engineering/subscriptions","organizations_url":"https://api.github.com/users/RealSense-Customer-Engineering/orgs","repos_url":"https://api.github.com/users/RealSense-Customer-Engineering/repos","events_url":"https://api.github.com/users/RealSense-Customer-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/RealSense-Customer-Engineering/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-06-27T12:29:48Z","updated_at":"2018-07-30T06:05:24Z","closed_at":"2018-07-30T06:05:24Z","author_association":"NONE","body":"----------------------------------------------------------------------------------------------------\r\n\r\n| Required Info                         |                                                                |\r\n|---------------------------------|------------------------------------------- |\r\n| Camera Model                       | { D435 } | \r\n| Firmware Version                   | 05.08.15.00 | \r\n| Operating System & Version |   Ubuntu 16  | \r\n| Kernel Version (Linux Only)    |  4.13.0-45                                         | \r\n| Platform                                 | PC |\r\n| SDK Version                            |  { 2.11.1 }                          | \r\n| Language                            |  {C++ }                          | \r\n| Segment\t\t\t|  {others }                          | \r\n\r\n### Issue Description\r\nI used the pointcloud.cpp as an template.\r\nwhen I add the following line in the code, the write_to_ply does not work. The ply file only contains headers without any point cloud data or RGB data.\r\n    // \r\n    rs2::config cfg;\r\n    string str0 = \"a.bag\";\r\n    cfg.enable_device_from_file(str0.c_str());   \r\n    \r\n    pipe->start(cfg);\r\n...\r\n   points.write_to_ply(filename,color);\r\nif I just use pipe->start();, the write_to_ply file will fill point cloud data in the ply file.\r\n\r\nCould you please tell me where I did incorrectly to save the ply file from a .bag file?"}}
{"actor":{"display_login":"RealSense-Customer-Engineering"}}