Skip to content

Commit

Permalink
Merge pull request #1182 from mdkus/fix_point_cloud_editor
Browse files Browse the repository at this point in the history
small fix: compiler error with 'point cloud editor'
  • Loading branch information
taketwo committed Mar 23, 2015
2 parents 4a4a4f5 + accbfba commit 73f2930
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class Cloud : public Statistics
/// @param pts a vector used to store the points whose coordinates are
/// transformed.
void
getDisplaySpacePoints (std::vector<Point3D>& pts) const;
getDisplaySpacePoints (Point3DVector& pts) const;

/// @brief Returns a const reference to the internal representation of this
/// object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ typedef pcl::PointXYZRGBA Point3D;
/// The type used as internal representation of a cloud object.
typedef pcl::PointCloud<Point3D> Cloud3D;

/// The type for the 3D point vector in the point cloud.
typedef pcl::PointCloud<Point3D>::VectorType Point3DVector;

/// The type for boost shared pointer pointing to a PCL cloud object.
typedef Cloud3D::Ptr PclCloudPtr;

Expand Down
2 changes: 1 addition & 1 deletion apps/point_cloud_editor/src/cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ Cloud::getDisplaySpacePoint (unsigned int index) const
}

void
Cloud::getDisplaySpacePoints (std::vector<Point3D>& pts) const
Cloud::getDisplaySpacePoints (Point3DVector& pts) const
{
for(unsigned int i = 0; i < cloud_.size(); ++i)
pts.push_back(getDisplaySpacePoint(i));
Expand Down
2 changes: 1 addition & 1 deletion apps/point_cloud_editor/src/select2DTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Select2DTool::end (int x, int y, BitMask modifiers, BitMask)
GLfloat project[16];
glGetFloatv(GL_PROJECTION_MATRIX, project);

std::vector<Point3D> ptsvec;
Point3DVector ptsvec;
cloud_ptr_->getDisplaySpacePoints(ptsvec);
for(unsigned int i = 0; i < ptsvec.size(); ++i)
{
Expand Down

0 comments on commit 73f2930

Please sign in to comment.