Skip to content

Commit 085075a

Browse files
authored
Merge pull request PointCloudLibrary#4678 from mvieth/documentation6
Improve documentation, fix warnings
2 parents fcc948a + eda5305 commit 085075a

21 files changed

+124
-90
lines changed

common/include/pcl/common/common.h

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ namespace pcl
6060
/** \brief Compute the smallest angle between two 3D vectors in radians (default) or degree.
6161
* \param v1 the first 3D vector (represented as a \a Eigen::Vector4f)
6262
* \param v2 the second 3D vector (represented as a \a Eigen::Vector4f)
63+
* \param in_degree determine if angle should be in radians or degrees
6364
* \return the angle between v1 and v2 in radians or degrees
6465
* \note Handles rounding error for parallel and anti-parallel vectors
6566
* \ingroup common

common/include/pcl/point_cloud.h

+4
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ namespace pcl
536536
* \note This breaks the organized structure of the cloud by setting the height to
537537
* 1!
538538
* \param[in] count new size of the point cloud
539+
* \param[in] value value each point of the cloud should have
539540
*/
540541
inline void
541542
assign(index_t count, const PointT& value)
@@ -549,6 +550,7 @@ namespace pcl
549550
* \brief Replaces the points with `new_width * new_height` copies of `value`
550551
* \param[in] new_width new width of the point cloud
551552
* \param[in] new_height new height of the point cloud
553+
* \param[in] value value each point of the cloud should have
552554
*/
553555
inline void
554556
assign(index_t new_width, index_t new_height, const PointT& value)
@@ -580,6 +582,7 @@ namespace pcl
580582
* `*this`
581583
* \note This calculates the height based on size and width provided. This means
582584
* the assignment happens even if the size is not perfectly divisible by width
585+
* \param[in] first, last the range from which the points are copied
583586
* \param[in] new_width new width of the point cloud
584587
*/
585588
template <class InputIterator>
@@ -616,6 +619,7 @@ namespace pcl
616619
* \brief Replaces the points with the elements from the initializer list `ilist`
617620
* \note This calculates the height based on size and width provided. This means
618621
* the assignment happens even if the size is not perfectly divisible by width
622+
* \param[in] ilist initializer list from which the points are copied
619623
* \param[in] new_width new width of the point cloud
620624
*/
621625
void

doc/advanced/content/c_cache.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ Install ``colorgcc`` on an Ubuntu system with ::
3535

3636
To enable colorgcc, perform the following steps:
3737

38-
.. code-block:: cmake
38+
.. code-block:: shell
3939

4040
cp /etc/colorgcc/colorgccrc $HOME/.colorgccrc
4141

4242

4343
* edit the $HOME/.colorgccrc file, search for the following lines:
4444

45-
.. code-block:: cmake
45+
.. code-block:: text
4646

4747
g++: /usr/bin/g++
4848
gcc: /usr/bin/gcc
@@ -54,7 +54,7 @@ To enable colorgcc, perform the following steps:
5454

5555
and replace them with:
5656

57-
.. code-block:: cmake
57+
.. code-block:: text
5858

5959
g++: ccache /usr/bin/g++
6060
gcc: ccache /usr/bin/gcc
@@ -66,7 +66,7 @@ and replace them with:
6666

6767
* create a $HOME/bin or $HOME/sbin directory, and create the following softlinks in it
6868

69-
.. code-block:: cmake
69+
.. code-block:: shell
7070

7171
ln -s /usr/bin/colorgcc c++
7272
ln -s /usr/bin/colorgcc cc

doc/tutorials/content/function_filter.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _conditional_removal:
1+
.. _function_filter:
22

33
Removing outliers using a custom non-destructive condition
44
----------------------------------------------------------
@@ -7,7 +7,7 @@ This document demonstrates how to use the FunctionFilter class to remove points
77
and faster appraoch compared to ConditionalRemoval filter or a `custom Condition class <https://cpp-optimizations.netlify.app/pcl_filter/>`_.
88

99
.. note::
10-
Advanced users can use the FunctorFilter class that can provide a small but measurable speedup when used with a `lambda <https://en.cppreference.com/w/cpp/language/lambda>`_.
10+
Advanced users can use the FunctorFilter class that can provide a small but measurable speedup when used with a `lambda <https://en.cppreference.com/w/cpp/language/lambda>`_.
1111

1212
The code
1313
--------

doc/tutorials/content/how_features_work.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ the table below for a reference on each of the terms used.
5454
+=============+================================================+
5555
| Foo | a class named `Foo` |
5656
+-------------+------------------------------------------------+
57-
| FooPtr | a shared pointer to a class `Foo`, |
57+
| FooPtr | a shared pointer to a class `Foo`, |
5858
| | |
59-
| | e.g., `shared_ptr<Foo>` |
59+
| | e.g., `shared_ptr<Foo>` |
6060
+-------------+------------------------------------------------+
61-
| FooConstPtr | a const shared pointer to a class `Foo`, |
61+
| FooConstPtr | a const shared pointer to a class `Foo`, |
6262
| | |
63-
| | e.g., `const shared_ptr<const Foo>` |
63+
| | e.g., `const shared_ptr<const Foo>` |
6464
+-------------+------------------------------------------------+
6565

6666
How to pass the input

doc/tutorials/content/random_sample_consensus.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Theoretical Primer
1010

1111
The abbreviation of "RANdom SAmple Consensus" is RANSAC, and it is an iterative method that is used to estimate parameters of a mathematical model from a set of data containing outliers. This algorithm was published by Fischler and Bolles in 1981. The RANSAC algorithm assumes that all of the data we are looking at is comprised of both inliers and outliers. Inliers can be explained by a model with a particular set of parameter values, while outliers do not fit that model in any circumstance. Another necessary assumption is that a procedure which can optimally estimate the parameters of the chosen model from the data is available.
1212

13-
From [Wikipedia]_:
13+
From [WikipediaRANSAC]_:
1414

1515
*The input to the RANSAC algorithm is a set of observed data values, a parameterized model which can explain or be fitted to the observations, and some confidence parameters.*
1616

@@ -38,7 +38,7 @@ From [Wikipedia]_:
3838
:align: right
3939
:height: 200px
4040

41-
The pictures to the left and right (From [Wikipedia]_) show a simple application of the RANSAC algorithm on a 2-dimensional set of data. The image on our left is a visual representation of a data set containing both inliers and outliers. The image on our right shows all of the outliers in red, and shows inliers in blue. The blue line is the result of the work done by RANSAC. In this case the model that we are trying to fit to the data is a line, and it looks like it's a fairly good fit to our data.
41+
The pictures to the left and right (From [WikipediaRANSAC]_) show a simple application of the RANSAC algorithm on a 2-dimensional set of data. The image on our left is a visual representation of a data set containing both inliers and outliers. The image on our right shows all of the outliers in red, and shows inliers in blue. The blue line is the result of the work done by RANSAC. In this case the model that we are trying to fit to the data is a line, and it looks like it's a fairly good fit to our data.
4242

4343
The code
4444
--------
@@ -123,4 +123,4 @@ It will show you the result of applying RandomSampleConsensus to this data set w
123123
:align: center
124124
:height: 400px
125125

126-
.. [Wikipedia] http://en.wikipedia.org/wiki/RANSAC
126+
.. [WikipediaRANSAC] http://en.wikipedia.org/wiki/RANSAC

gpu/octree/include/pcl/gpu/octree/octree.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ namespace pcl
150150
/** \brief Batch approximate nearest search on GPU
151151
* \param[in] queries array of centers
152152
* \param[out] result array of results ( one index for each query )
153-
* \param[out] sqr_distances corresponding square distances to results from query point
153+
* \param[out] sqr_distance corresponding square distances to results from query point
154154
*/
155155
void approxNearestSearch(const Queries& queries, NeighborIndices& result, ResultSqrDists& sqr_distance) const;
156156

registration/include/pcl/registration/correspondence_estimation_organized_projection.h

+10-4
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,21 @@ class CorrespondenceEstimationOrganizedProjection
187187
}
188188

189189
/** \brief Computes the correspondences, applying a maximum Euclidean distance
190-
* threshold. \param correspondences \param[in] max_distance Euclidean distance
191-
* threshold above which correspondences will be rejected
190+
* threshold.
191+
* \param[out] correspondences the found correspondences (index of query point, index
192+
* of target point, distance)
193+
* \param[in] max_distance Euclidean distance threshold above which correspondences
194+
* will be rejected
192195
*/
193196
void
194197
determineCorrespondences(Correspondences& correspondences, double max_distance);
195198

196199
/** \brief Computes the correspondences, applying a maximum Euclidean distance
197-
* threshold. \param correspondences \param[in] max_distance Euclidean distance
198-
* threshold above which correspondences will be rejected
200+
* threshold.
201+
* \param[out] correspondences the found correspondences (index of query and target
202+
* point, distance)
203+
* \param[in] max_distance Euclidean distance threshold above which correspondences
204+
* will be rejected
199205
*/
200206
void
201207
determineReciprocalCorrespondences(Correspondences& correspondences,

registration/include/pcl/registration/gicp.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,11 @@ class GeneralizedIterativeClosestPoint
186186
/** \brief Estimate a rigid rotation transformation between a source and a target
187187
* point cloud using an iterative non-linear Levenberg-Marquardt approach. \param[in]
188188
* cloud_src the source point cloud dataset \param[in] indices_src the vector of
189-
* indices describing the points of interest in \a cloud_src \param[in] cloud_tgt the
190-
* target point cloud dataset \param[in] indices_tgt the vector of indices describing
191-
* the correspondences of the interest points from \a indices_src \param[out]
192-
* transformation_matrix the resultant transformation matrix
189+
* indices describing the points of interest in \a cloud_src
190+
* \param[in] cloud_tgt the target point cloud dataset
191+
* \param[in] indices_tgt the vector of indices describing
192+
* the correspondences of the interest points from \a indices_src
193+
* \param[out] transformation_matrix the resultant transformation matrix
193194
*/
194195
void
195196
estimateRigidTransformationBFGS(const PointCloudSource& cloud_src,
@@ -275,7 +276,7 @@ class GeneralizedIterativeClosestPoint
275276
}
276277

277278
/** \brief Set the minimal translation gradient threshold for early optimization stop
278-
* \param[in] translation gradient threshold in meters
279+
* \param[in] tolerance translation gradient threshold in meters
279280
*/
280281
void
281282
setTranslationGradientTolerance(double tolerance)
@@ -293,7 +294,7 @@ class GeneralizedIterativeClosestPoint
293294
}
294295

295296
/** \brief Set the minimal rotation gradient threshold for early optimization stop
296-
* \param[in] rotation gradient threshold in radians
297+
* \param[in] tolerance rotation gradient threshold in radians
297298
*/
298299
void
299300
setRotationGradientTolerance(double tolerance)

registration/include/pcl/registration/transformation_estimation.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ class TransformationEstimation {
9393
* indices_src the vector of indices describing the points of interest in \a cloud_src
9494
* \param[in] cloud_tgt the target point cloud dataset
9595
* \param[in] indices_tgt the vector of indices describing the correspondences of the
96-
* interest points from \a indices_src \param[out] transformation_matrix the resultant
97-
* transformation matrix
96+
* interest points from \a indices_src
97+
* \param[out] transformation_matrix the resultant transformation matrix
9898
*/
9999
virtual void
100100
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

registration/include/pcl/registration/transformation_estimation_2D.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ class TransformationEstimation2D
8080

8181
/** \brief Estimate a rigid transformation between a source and a target point cloud
8282
* in 2D. \param[in] cloud_src the source point cloud dataset \param[in] indices_src
83-
* the vector of indices describing the points of interest in \a cloud_src \param[in]
84-
* cloud_tgt the target point cloud dataset \param[out] transformation_matrix the
85-
* resultant transformation matrix
83+
* the vector of indices describing the points of interest in \a cloud_src
84+
* \param[in] cloud_tgt the target point cloud dataset
85+
* \param[out] transformation_matrix the resultant transformation matrix
8686
*/
8787
inline void
8888
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,
@@ -92,9 +92,10 @@ class TransformationEstimation2D
9292

9393
/** \brief Estimate a rigid transformation between a source and a target point cloud
9494
* in 2D. \param[in] cloud_src the source point cloud dataset \param[in] indices_src
95-
* the vector of indices describing the points of interest in \a cloud_src \param[in]
96-
* cloud_tgt the target point cloud dataset \param[in] indices_tgt the vector of
97-
* indices describing the correspondences of the interest points from \a indices_src
95+
* the vector of indices describing the points of interest in \a cloud_src
96+
* \param[in] cloud_tgt the target point cloud dataset
97+
* \param[in] indices_tgt the vector of indices describing the correspondences of the
98+
* interest points from \a indices_src
9899
* \param[out] transformation_matrix the resultant transformation matrix
99100
*/
100101
virtual void

registration/include/pcl/registration/transformation_estimation_3point.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class TransformationEstimation3Point
100100
* indices_src the vector of indices describing the points of interest in \a cloud_src
101101
* \param[in] cloud_tgt the target point cloud dataset
102102
* \param[in] indices_tgt the vector of indices describing the correspondences of the
103-
* interest points from \a indices_src \param[out] transformation_matrix the resultant
104-
* transformation matrix
103+
* interest points from \a indices_src
104+
* \param[out] transformation_matrix the resultant transformation matrix
105105
*/
106106
void
107107
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

registration/include/pcl/registration/transformation_estimation_dq.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ class TransformationEstimationDQ
8383
/** \brief Estimate a rigid rotation transformation between a source and a target
8484
* point cloud using dual quaternion optimization \param[in] cloud_src the source
8585
* point cloud dataset \param[in] indices_src the vector of indices describing the
86-
* points of interest in \a cloud_src \param[in] cloud_tgt the target point cloud
87-
* dataset \param[out] transformation_matrix the resultant transformation matrix
86+
* points of interest in \a cloud_src
87+
* \param[in] cloud_tgt the target point cloud dataset
88+
* \param[out] transformation_matrix the resultant transformation matrix
8889
*/
8990
inline void
9091
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,
@@ -95,10 +96,11 @@ class TransformationEstimationDQ
9596
/** \brief Estimate a rigid rotation transformation between a source and a target
9697
* point cloud using dual quaternion optimization \param[in] cloud_src the source
9798
* point cloud dataset \param[in] indices_src the vector of indices describing the
98-
* points of interest in \a cloud_src \param[in] cloud_tgt the target point cloud
99-
* dataset \param[in] indices_tgt the vector of indices describing the correspondences
100-
* of the interest points from \a indices_src \param[out] transformation_matrix the
101-
* resultant transformation matrix
99+
* points of interest in \a cloud_src
100+
* \param[in] cloud_tgt the target point cloud dataset
101+
* \param[in] indices_tgt the vector of indices describing the correspondences of the
102+
* interest points from \a indices_src
103+
* \param[out] transformation_matrix the resultant transformation matrix
102104
*/
103105
inline void
104106
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

registration/include/pcl/registration/transformation_estimation_dual_quaternion.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ class TransformationEstimationDualQuaternion
8080
/** \brief Estimate a rigid rotation transformation between a source and a target
8181
* point cloud using dual quaternion optimization \param[in] cloud_src the source
8282
* point cloud dataset \param[in] indices_src the vector of indices describing the
83-
* points of interest in \a cloud_src \param[in] cloud_tgt the target point cloud
84-
* dataset \param[out] transformation_matrix the resultant transformation matrix
83+
* points of interest in \a cloud_src
84+
* \param[in] cloud_tgt the target point cloud dataset
85+
* \param[out] transformation_matrix the resultant transformation matrix
8586
*/
8687
inline void
8788
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,
@@ -92,10 +93,11 @@ class TransformationEstimationDualQuaternion
9293
/** \brief Estimate a rigid rotation transformation between a source and a target
9394
* point cloud using dual quaternion optimization \param[in] cloud_src the source
9495
* point cloud dataset \param[in] indices_src the vector of indices describing the
95-
* points of interest in \a cloud_src \param[in] cloud_tgt the target point cloud
96-
* dataset \param[in] indices_tgt the vector of indices describing the correspondences
97-
* of the interest points from \a indices_src \param[out] transformation_matrix the
98-
* resultant transformation matrix
96+
* points of interest in \a cloud_src
97+
* \param[in] cloud_tgt the target point cloud dataset
98+
* \param[in] indices_tgt the vector of indices describing the correspondences of the
99+
* interest points from \a indices_src
100+
* \param[out] transformation_matrix the resultant transformation matrix
99101
*/
100102
inline void
101103
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

registration/include/pcl/registration/transformation_estimation_lm.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ class TransformationEstimationLM
119119
/** \brief Estimate a rigid rotation transformation between a source and a target
120120
* point cloud using LM. \param[in] cloud_src the source point cloud dataset
121121
* \param[in] indices_src the vector of indices describing the points of interest in
122-
* \a cloud_src \param[in] cloud_tgt the target point cloud dataset \param[out]
123-
* transformation_matrix the resultant transformation matrix
122+
* \a cloud_src
123+
* \param[in] cloud_tgt the target point cloud dataset
124+
* \param[out] transformation_matrix the resultant transformation matrix
124125
*/
125126
inline void
126127
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,
@@ -131,10 +132,11 @@ class TransformationEstimationLM
131132
/** \brief Estimate a rigid rotation transformation between a source and a target
132133
* point cloud using LM. \param[in] cloud_src the source point cloud dataset
133134
* \param[in] indices_src the vector of indices describing the points of interest in
134-
* \a cloud_src \param[in] cloud_tgt the target point cloud dataset \param[in]
135-
* indices_tgt the vector of indices describing the correspondences of the interest
136-
* points from \a indices_src \param[out] transformation_matrix the resultant
137-
* transformation matrix
135+
* \a cloud_src
136+
* \param[in] cloud_tgt the target point cloud dataset
137+
* \param[in] indices_tgt the vector of indices describing the correspondences of the
138+
* interest points from \a indices_src
139+
* \param[out] transformation_matrix the resultant transformation matrix
138140
*/
139141
inline void
140142
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

registration/include/pcl/registration/transformation_estimation_point_to_plane_lls.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ class TransformationEstimationPointToPlaneLLS
8787
/** \brief Estimate a rigid rotation transformation between a source and a target
8888
* point cloud using SVD. \param[in] cloud_src the source point cloud dataset
8989
* \param[in] indices_src the vector of indices describing the points of interest in
90-
* \a cloud_src \param[in] cloud_tgt the target point cloud dataset \param[out]
91-
* transformation_matrix the resultant transformation matrix
90+
* \a cloud_src
91+
* \param[in] cloud_tgt the target point cloud dataset
92+
* \param[out] transformation_matrix the resultant transformation matrix
9293
*/
9394
inline void
9495
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,
@@ -99,10 +100,11 @@ class TransformationEstimationPointToPlaneLLS
99100
/** \brief Estimate a rigid rotation transformation between a source and a target
100101
* point cloud using SVD. \param[in] cloud_src the source point cloud dataset
101102
* \param[in] indices_src the vector of indices describing the points of interest in
102-
* \a cloud_src \param[in] cloud_tgt the target point cloud dataset \param[in]
103-
* indices_tgt the vector of indices describing the correspondences of the interest
104-
* points from \a indices_src \param[out] transformation_matrix the resultant
105-
* transformation matrix
103+
* \a cloud_src
104+
* \param[in] cloud_tgt the target point cloud dataset
105+
* \param[in] indices_tgt the vector of indices describing the correspondences of the
106+
* interest points from \a indices_src
107+
* \param[out] transformation_matrix the resultant transformation matrix
106108
*/
107109
inline void
108110
estimateRigidTransformation(const pcl::PointCloud<PointSource>& cloud_src,

0 commit comments

Comments
 (0)