Sunday, February 26, 2012

ros pcl_visualization


if you get

Linking CXX executable bin/point_viewer
  CMakeFiles/point_viewer.dir/src/point_viewer.o: In function `main':
  /home/fabio/ros_workspace/kinect_test/src/point_viewer.cpp:37: undefined reference to `pcl_visualization::CloudViewer::CloudViewer(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
  /home/fabio/ros_workspace/kinect_test/src/point_viewer.cpp:42: undefined reference to `pcl_visualization::CloudViewer::wasStopped(int)'
  /home/fabio/ros_workspace/kinect_test/src/point_viewer.cpp:43: undefined reference to `pcl_visualization::CloudViewer::showCloud(pcl::PointCloud<pcl::PointXYZ> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
  /home/fabio/ros_workspace/kinect_test/src/point_viewer.cpp:37: undefined reference to `pcl_visualization::CloudViewer::~CloudViewer()'
  /home/fabio/ros_workspace/kinect_test/src/point_viewer.cpp:37: undefined reference to `pcl_visualization::CloudViewer::~CloudViewer()'
  collect2: ld returned 1 exit status
  make[2]: *** [bin/point_viewer] Error 1
  make[1]: *** [CMakeFiles/point_viewer.dir/all] Error 2

then  install (with synaptic) ros-electric-point-cloud-perception
(ros-electric-perception-pcl-addons is not sufficient)

No comments:

Post a Comment