-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Function create_pointcloud not found #6142
Comments
This sample is designed to call upon OpenGL graphics, so it may not be the best example to adapt if you are trying to reduce the program's complexity down to a simpler point cloud application. For example, your script omits the #include "example.hpp" line, and example.hpp contains instructions for rendering a point cloud with OpenGL. The simplest form of a C++ point cloud script, which may be a better place to begin experimentation at, is this: rs2::pointcloud pc; A slightly more complicated version of this that can export the point cloud to a .ply format file is in the link below. |
Thank you. But I have additional question then. I will describe in more details. Seems it use sensor_msgs/Image message in devise_0/sensor_0/Depth_0/image/data topic. And your code use frame type. P.S. I dont't use rendering part from tutorial, I need only conversion. |
If you need to convert ROS data to PCL data, this link may be helpful: https://answers.ros.org/question/316701/ros-intel-realsense-how-to-process-data-with-pcl/ Alternatively, if you are able to make use of the Python language then there is an Intel tutorial for loading in a bag file, retrieving the data from it and generating a point cloud. https://github.com/dorodnic/binder_test/blob/master/pointcloud.ipynb |
There's an error in documentation of pointcloud, I'll update it for the next release. |
dorodnic, ok, thanks. Thanks for links, MartyG-RealSense, I will try to use them. |
Hi @ViacheslavRud I reviewed the pointcloud documentation, and an edit for create_pointcloud() was made on March 29 2020. I will therefore close this case as completed. Thanks! |
This documentation still mentions it: |
Issue Description
Hi. I'm trying to use this code
from this tutorial https://github.com/IntelRealSense/librealsense/tree/master/examples/pointcloud.
But it gives me next error:
class rs2::context’ has no member named ‘create_pointcloud’
What is wrong here?
The text was updated successfully, but these errors were encountered: