PCL Programming Notes — assertion ` PX! = 0 ‘failed

Reference: http://blog.csdn.net/mnonm_mnonm_mnonm/article/details/8706659

Error: boost: : from… Assertion `px ! = 0′ failed.
Reason: The smart pointer is uninitialized.
Processing: Initialize.
Such as

PointCloudT::Ptr cloud;

The compiler can pass, but the program will report the above error when run, after the following initialization, the error disappeared.

PointCloudT::Ptr cloud=boost::make_shared <PointCloudT> ();


Read More: