Skip to content

Commit

Permalink
throw UnorganizedPointCloudException for PointCloud::at (fix #2520) (#…
Browse files Browse the repository at this point in the history
…2521)

Throw UnorganizedPointCloudException in PointCloud::at
  • Loading branch information
csukuangfj authored and taketwo committed Oct 7, 2018
1 parent 60151dc commit 0fdb1c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/include/pcl/point_cloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ namespace pcl
if (this->height > 1)
return (points.at (row * this->width + column));
else
throw IsNotDenseException ("Can't use 2D indexing with a unorganized point cloud");
throw UnorganizedPointCloudException ("Can't use 2D indexing with an unorganized point cloud");
}

/** \brief Obtain the point given by the (column, row) coordinates. Only works on organized
Expand All @@ -299,7 +299,7 @@ namespace pcl
if (this->height > 1)
return (points.at (row * this->width + column));
else
throw IsNotDenseException ("Can't use 2D indexing with a unorganized point cloud");
throw UnorganizedPointCloudException ("Can't use 2D indexing with an unorganized point cloud");
}

/** \brief Obtain the point given by the (column, row) coordinates. Only works on organized
Expand Down

0 comments on commit 0fdb1c2

Please sign in to comment.