qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

Segmentaion Fault Chapter 8 : pcl_filter #31

Closed adityag6994 closed 6 years ago

adityag6994 commented 6 years ago

Hey, I am getting a segmentation fault when I run pcl_filter node

hal@hal:~/catkin_ws$ rosrun pcl_ros_tutorial pcl_filter 
Segmentation fault (core dumped)

pcl_publisher is running also I can see the point cloud in rviz. Anything I am missing ?

adityag6994 commented 6 years ago

changing these lines in pcl_filter.cpp cloudHandler handler; --> cloudHandler handler(); compiled for me.