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

Simplify explanation of PointXYZ structure in "Writing PCD" tutorial #2534

Merged
merged 1 commit into from
Oct 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions doc/tutorials/content/writing_pcd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,17 @@ Now, let's break down the code piece by piece.
:language: cpp
:lines: 2-3

pcl/io/pcd_io.h is the header that contains the definitions for PCD I/O
operations, and pcl/point_types.h contains definitions for several PointT type
structures (pcl::PointXYZ in our case).
The first file is the header that contains the definitions for PCD I/O
operations, and second one contains definitions for several point type
structures, including ``pcl::PointXYZ`` that we will use.

.. literalinclude:: sources/pcd_write/pcd_write.cpp
:language: cpp
:lines: 8

describes the templated PointCloud structure that we will create. The type of
each point is set to pcl::PointXYZ, which is:

.. code-block:: cpp

// \brief A point structure representing Euclidean xyz coordinates.
struct PointXYZ
{
float x;
float y;
float z;
};
each point is set to ``pcl::PointXYZ``, which is a structure that has ``x``,
``y``, and ``z`` fields.

The lines:

Expand Down