turtlebot pointcloud_to_laserscan building problem
Hello,
I tried to build pointcloud_to_laserscan from turtlebor package, and I got this errors:
/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp: In member function 'void pointcloud_to_laserscan::CloudToScan::callback(const ConstPtr&)': /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:137:29: error: no match for 'operator=' in 'output.boost::shared_ptr<T>::operator-><sensor_msgs::LaserScan_<std::allocator<void> > >()->sensor_msgs::LaserScan_<std::allocator<void> >::header = (& cloud)->boost::shared_ptr<T>::operator-><const pcl::PointCloud<pcl::PointXYZ>
>()->pcl::PointCloud<pcl::PointXYZ>::header' /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:137:29: note: candidate is: In file included from /opt/ros/hydro/include/sensor_msgs/LaserScan.h:51:0,
from /home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/src/cloud_to_scan.cpp:33: /opt/ros/hydro/include/std_msgs/Header.h:55:8: note: std_msgs::Header_<std::allocator<void>
>& std_msgs::Header_<std::allocator<void>
>::operator=(const std_msgs::Header_<std::allocator<void>
>&) /opt/ros/hydro/include/std_msgs/Header.h:55:8: note: no known conversion for argument 1 from 'const pcl::PCLHeader' to 'const std_msgs::Header_<std::allocator<void>
>&' make[3]: *** [CMakeFiles/cloud_to_scan.dir/src/cloud_to_scan.cpp.o] Error 1 make[3]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make[2]: *** [CMakeFiles/cloud_to_scan.dir/all] Error 2 make[2]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/wojciech/catkin_ws/src/turtlebot/pointcloud_to_laserscan/build' make: *** [all] Error 2
I have ROS-Hydro and Ubuntu 13.10 Thank you in advance.