cv::viz::Viz3d crashes when using with pcl_ros in ros noetic

asked 2020-09-30 09:47:28 -0500

Maik Basso gravatar image

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 
)
...
edit retag flag offensive close merge delete

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?

dave0mi gravatar image dave0mi  ( 2023-05-09 19:27:50 -0500 )edit

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 ;)

Maik Basso gravatar image Maik Basso  ( 2023-05-10 16:18:41 -0500 )edit