-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix possible alignement issues on 32 bits CPUs #1405
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
Fix possible alignement issues on 32 bits CPUs #1405
Conversation
Hi Victor, thanks for taking care of this. I think that we don't need to get rid of |
Can we integrate this in 1.8.1? I'm asking because of that WIP tag :) |
filter.filter (*selected_points); | ||
|
||
qDebug () << "Original minus indices is "<<original_minus_indices->width; | ||
|
||
//Eigen::Vector4f source_origin = input_cloud_item->data (ItemDataRole::ORIGIN).value<Eigen::Vector4f> (); | ||
//Eigen::Quaternionf source_orientation = input_cloud_item->data (ItemDataRole::ORIENTATION).value<Eigen::Quaternionf> (); | ||
//pcl::PCLPointCloud2::Ptr cloud_blob = boost::make_shared <pcl::PCLPointCloud2> ();; | ||
//pcl::PCLPointCloud2::Ptr cloud_blob = boost::shared_ptr <pcl::PCLPointCloud2> (new pcl::PCLPointCloud2); | ||
//toPCLPointCloud2 (*original_minus_indices, *cloud_blob); | ||
//CloudItem* new_cloud_item = new CloudItem (input_cloud_item->text () | ||
//, cloud_blob |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we erase these comments all together?
In any case double check the spaces before the parenthesis and I would say to erase those comment blocks unless someone opposes. |
How do I know which objects are aligned/not aligned? |
Aligned are objects that have Eigen members inside. Looking at the changes in this PR, I think only |
Ready for review |
👍 |
Is there a way for us to prevent people from using make_shared with PointCloudT types (overriding?) or will we just need to pay attention to all subsequent PRs? |
Here is a brief explanation of what is wrong with
Now the solution might be to disable or make private the placement new operator, so that |
#1387 (comment)
apps_cloud_composer
still compiles fine.