ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

turtlebot pointcloud_to_laserscan building problem

asked 2013-11-10 07:09:11 -0600

Wojciech gravatar image

updated 2013-11-18 19:00:01 -0600

tfoote gravatar image


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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-11-11 19:40:01 -0600

fergs gravatar image

In ROS Hydro, all ROS messages were removed from PCL. This requires that code be updated to use pcl_conversions, see the migration guide for details:

You might check if there is a version already updated for Hydro, or if you are using the Turtlebot, check out the replacement depthimage_to_laserscan which offers significantly better performance

edit flag offensive delete link more

answered 2014-02-12 03:31:13 -0600

stephane gravatar image


pointcloud_to_laserscan has a new version for hydro :

edit flag offensive delete link more


Hi! Does it working in Indigo? Thanks!

noonv gravatar image noonv  ( 2014-07-31 06:54:52 -0600 )edit

Question Tools

1 follower


Asked: 2013-11-10 07:09:11 -0600

Seen: 628 times

Last updated: Feb 12 '14