Compilation error while compiling nodelet library

asked 2017-03-24 08:58:38 -0600

mkreddy477 gravatar image

Hello All,

I am have written a nodelet. While compiling I am getting the following error.

In file included from /usr/include/boost/bind.hpp:22:0, from /opt/ros/kinetic/include/ros/publisher.h:35, from /opt/ros/kinetic/include/ros/node_handle.h:32, from /opt/ros/kinetic/include/ros/ros.h:45, from /home/swahana/Murali/catkin_ws_nodelets/src/uu_get_pointcloud/src/get_pointcloud_node.cpp:7: /usr/include/boost/bind/bind.hpp: In instantiation of âstruct boost::_bi::result_traits<boost::_bi::unspecified, void="" (uu_get_pointcloud::pointcloud::*)(const="" boost::shared_ptr<const="" sensor_msgs::image_<std::allocator<void=""> > >&, const boost::shared_ptr<const stereo_msgs::disparityimage_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&)>â: /usr/include/boost/bind/bind.hpp:883:48: required from âclass boost::_bi::bind_t<boost::_bi::unspecified, void="" (uu_get_pointcloud::pointcloud::*)(const="" boost::shared_ptr<const="" sensor_msgs::image_<std::allocator<void=""> > >&, const boost::shared_ptr<const stereo_msgs::disparityimage_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&), boost::_bi::list4<boost::arg&lt;1>, boost::arg<2>, boost::arg<3>, boost::arg<4> > >â /home/swahana/Murali/catkin_ws_nodelets/src/uu_get_pointcloud/src/get_pointcloud_node.cpp:104:77: required from here /usr/include/boost/bind/bind.hpp:69:37: error: âvoid (uu_get_pointcloud::pointcloud::*)(const boost::shared_ptr<const sensor_msgs::image_<std::allocator<void=""> > >&, const boost::shared_ptr<const stereo_msgs::disparityimage_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&, const boost::shared_ptr<const sensor_msgs::camerainfo_<std::allocator<void=""> > >&)â is not a class, struct, or union type typedef typename F::result_type type;

anybody out there can give me some Idea about the possible problem.

Thanks in advance

edit retag flag offensive close merge delete