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

turtlebot pointcloud_to_laserscan building problem

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

Wojciech gravatar image

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

tfoote gravatar image

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

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

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: http://wiki.ros.org/hydro/Migration#PCL

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
0

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

stephane gravatar image

Hi,

pointcloud_to_laserscan has a new version for hydro : https://github.com/clearpathrobotics/...

edit flag offensive delete link more

Comments

Hi! Does it working in Indigo? Thanks!

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

Question Tools

1 follower

Stats

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

Seen: 631 times

Last updated: Feb 12 '14