Assertion failed when initializing pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZI>)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Assertion failed when initializing pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZI>)

Tianyu_Wu
Hi,

I’m a beginner to PCL and I was working on the PointXYZI for road marking extraction based on the intensity field in the points. I am currently working with the Xcode Version 9.2 and when I tried to initialize using the code:

pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZI>);

An error popped up as:

Assertion failed: ((internal::UIntPtr(array) & (15)) == 0 && "this assertion is explained here: " "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"), function plain_array, file /usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h, line 109.

I tried the line for PointXYZ type as below, and it went on well.

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);

In order to figure out what went wrong, I tried using CMake to build the project, and it also worked without error with PointXYZI.

I was wondering if this is a problem with my Xcode and is there any possible way that I can get the line with PointXYZI function in Xcode as I am debugging all my code there.

Thank you,
Ty.

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Assertion failed when initializing pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZI>)

Tianyu_Wu
Don't know why the last post looks like that.

I’m a beginner to PCL and I was working on the PointXYZI for road marking
extraction based on the intensity field in the points. I am currently
working on the Xcode Version 9.2 and when I tried to initialize using the
code:

pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new
pcl::PointCloud<pcl::PointXYZI>);

An error popped up as:

Assertion failed: ((internal::UIntPtr(array) & (15)) == 0 && "this assertion
is explained here: "
"http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html"
" **** READ THIS WEB PAGE !!! ****"), function plain_array, file
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h, line 109.

I tried the line for PointXYZ type as below, and it went on well.

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new
pcl::PointCloud<pcl::PointXYZ>);

In order to figure out what went wrong, I tried using CMake to build the
project, and it also worked without error with PointXYZI.

I was wondering if this is a problem with my Xcode and is there any possible
way that I can get the line with PointXYZI function in Xcode as I am
debugging all my code there.

Thank you,
Ty.



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Assertion failed when initializing pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZI>)

Sérgio Agostinho
To some extent that is weird: PCL uses aligned object but if I recall
correctly the only flag that is usually normally passed to Eigen is to
disable debug mode, so simply including the header should be sufficient.
Without understanding exactly your build system it's impossible to tell
anything more.

The good new is that in theory, you can still use XCode. Just let CMake
generate the project for you, as long as you configure the project and
targets properly, everything should run smooth. For further info check

https://stackoverflow.com/questions/16700415/cmake-generate-xcode-project-from-existing-sources#16701018

https://cmake.org/cmake/help/v3.0/manual/cmake-generators.7.html

Cheers



On 07-03-2018 04:31, Tianyu_Wu wrote:

> Don't know why the last post looks like that.
>
> I’m a beginner to PCL and I was working on the PointXYZI for road marking
> extraction based on the intensity field in the points. I am currently
> working on the Xcode Version 9.2 and when I tried to initialize using the
> code:
>
> pcl::PointCloud<pcl::PointXYZI>::Ptr cloud (new
> pcl::PointCloud<pcl::PointXYZI>);
>
> An error popped up as:
>
> Assertion failed: ((internal::UIntPtr(array) & (15)) == 0 && "this assertion
> is explained here: "
> "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html"
> " **** READ THIS WEB PAGE !!! ****"), function plain_array, file
> /usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h, line 109.
>
> I tried the line for PointXYZ type as below, and it went on well.
>
> pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new
> pcl::PointCloud<pcl::PointXYZ>);
>
> In order to figure out what went wrong, I tried using CMake to build the
> project, and it also worked without error with PointXYZI.
>
> I was wondering if this is a problem with my Xcode and is there any possible
> way that I can get the line with PointXYZI function in Xcode as I am
> debugging all my code there.
>
> Thank you,
> Ty.
>
>
>
> --
> Sent from: http://www.pcl-users.org/
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment