cv::viz::Viz3d crashes when using with pcl_ros in ros noetic
When using point cloud library (pcl_ros) with opencv, cv::viz::Viz3d crashes.
It compiles normally, but when the node is executed it breaks on the line:
cv::viz::Viz3d viewer;
The cmakelists.txt file:
...
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
geometry_msgs
message_generation
pcl_ros # cv::viz::Viz3d does not work
)
...
It works but I can not use pcl_ros:
...
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
geometry_msgs
message_generation
#pcl_ros # cv::viz::Viz3d, it works but I can not use pcl_ros
)
...
Asked by Maik Basso on 2020-09-30 09:47:28 UTC
Comments
Also on noetic, also using viz::Viz3d and getting a crash at runtime (segfault inside the constructor at viz::VtkAlgorithm::SetExecutive() according to gdb)
Did you figure out any resolution besides leaving out the search for pcl_ros?
Asked by dave0mi on 2023-05-09 19:27:50 UTC
I haven't had much progress in solving this problem. I remember that I disregard the use of PCL in the project. Currently, using ros 2, this problem no longer happens ;)
Asked by Maik Basso on 2023-05-10 16:18:41 UTC