Interference of pcl_ros and PCLVisualizer

asked 2020-04-17 14:34:29 -0500

dschimpf gravatar image

I have been using PCLVisualizer to visualize my point clouds. To transform a point cloud from one frame to another I was trying to use pcl_ros::transformPointCloud. To get this to work I added pcl_ros to both my CMakeList.txt and package.xml file. After adding that pcl_ros::transformPointCloud now works, but calling

pcl::visualization::PCLVisualizer::Ptr viewer (new pcl::visualization::PCLVisualizer ("3D Viewer"));

now produces the error:

Generic Warning: In /build/vtk6-dmAaMa/vtk6-6.2.0+dfsg1/Rendering/OpenGL/vtkOpenGLPolyDataMapper.cxx, line 69
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper was deprecated for VTK 6.2 and will be removed in a future version.

Failed to find match for field 'x'.
Failed to find match for field 'y'.
Failed to find match for field 'z'.
Failed to find match for field 'rgb'.
Failed to find match for field 'normal_x'.
Failed to find match for field 'normal_y'.
Failed to find match for field 'normal_z'.
Failed to find match for field 'curvature'.
Failed to find match for field 'x'.
Failed to find match for field 'y'.
Failed to find match for field 'z'.
Failed to find match for field 'rgb'.
Failed to find match for field 'normal_x'.
Failed to find match for field 'normal_y'.
Failed to find match for field 'normal_z'.
Failed to find match for field 'curvature'.
[DeterminePathplan-2] process has died [pid 16839, exit code -11, cmd /home/dan/catkin_ws/devel/lib/grind_cell/DeterminePathplan __name:=DeterminePathplan __log:=/home/dan/.ros/log/f314cb24-80d2-11ea-bb34-405bd8905c99/DeterminePathplan-2.log].
log file: /home/dan/.ros/log/f314cb24-80d2-11ea-bb34-405bd8905c99/DeterminePathplan-2*.log

if I remove pcl_ros from my CMakeList.txt and package.xml files, the PCLVisualizer works as expected.

What do I need to do so that I can use both PCLVisualizer & pcl_ros::transformPointCloud?

Thanks!

edit retag flag offensive close merge delete

Comments

Hello, have you ever solved the problem? I have encounter the problem when I want to use the pcl::visualization.

Oysster gravatar image Oysster  ( 2020-12-24 04:27:59 -0500 )edit