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

sensor acquisition pose info is lost after pcl::removeNaNFromPointCloud and pcl::removeNaNNormalsFromPointCloud #2519

Closed
csukuangfj opened this issue Oct 6, 2018 · 0 comments · Fixed by #2522

Comments

@csukuangfj
Copy link
Contributor

Your Environment

  • PCL Version: the master branch

Context

/** \brief Sensor acquisition pose (origin/translation). */
Eigen::Vector4f sensor_origin_;
/** \brief Sensor acquisition pose (rotation). */
Eigen::Quaternionf sensor_orientation_;

the above two fields of the cloud_out are not set in the following two functions

template <typename PointT> void
pcl::removeNaNFromPointCloud (const pcl::PointCloud<PointT> &cloud_in,
pcl::PointCloud<PointT> &cloud_out,
std::vector<int> &index)

template <typename PointT> void
pcl::removeNaNNormalsFromPointCloud (const pcl::PointCloud<PointT> &cloud_in,
pcl::PointCloud<PointT> &cloud_out,
std::vector<int> &index)

Expected Behavior

pose info should be kept after filtering.

Current Behavior

pose info is lost after filtering.

Code to Reproduce

See the code above.

Possible Solution

Copy the pose info from the input cloud to the outpu cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant