message_filters-related issue
I was following a tutorial on message_filters in order to subscribe to 2 different topics of different type and later use it in a callback function. However, I got a weird long error message as follow:
In file included from /usr/include/boost/bind.hpp:22,
from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/publisher.h:35,
from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/node_handle.h:32,
from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/ros.h:45,
from /home/shah/code/ros_workspace/point_cloud_drone/src/pointcloud_builder_node.cpp:1:
/usr/include/boost/bind/bind.hpp: In member function ‘void boost::_bi::list3<A1, A2, A3>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_mfi::mf2<void, PointCloudBuilder, const geometry_msgs::PoseStampedConstPtr&, const geometry_msgs::Pose2DConstPtr&>, A = boost::_bi::list9<const boost::shared_ptr<const geometry_msgs::PoseStamped_<std::allocator<void> > >&, const boost::shared_ptr<const geometry_msgs::Pose2D_<std::allocator<void> > >&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&>, A1 = boost::arg<1>, A2 = boost::arg<2>, A3 = boost::_bi::value<PointCloudBuilder*>]’:
/usr/include/boost/bind/bind_template.hpp:305: instantiated from ‘typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F, L>::operator()(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&) [with A1 = boost::shared_ptr<const geometry_msgs::PoseStamped_<std::allocator<void> > >, A2 = boost::shared_ptr<const geometry_msgs::Pose2D_<std::allocator<void> > >, A3 = boost::shared_ptr<const message_filters::NullType>, A4 = boost::shared_ptr<const message_filters::NullType>, A5 = boost::shared_ptr<const message_filters::NullType>, A6 = boost::shared_ptr<const message_filters::NullType>, A7 = boost::shared_ptr<const message_filters::NullType>, A8 = boost::shared_ptr<const message_filters::NullType>, A9 = boost::shared_ptr<const message_filters::NullType>, R = void, F = boost::_mfi::mf2<void, PointCloudBuilder, const geometry_msgs::PoseStampedConstPtr&, const geometry_msgs::Pose2DConstPtr&>, L = boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<PointCloudBuilder*> >]’
/usr/include/boost/bind/bind.hpp:820: instantiated from ‘void boost::_bi::list9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_bi::bind_t<void, boost::_mfi::mf2<void, PointCloudBuilder, const geometry_msgs::PoseStampedConstPtr&, const geometry_msgs::Pose2DConstPtr&>, boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<PointCloudBuilder*> > >, A = boost::_bi::list9<const boost::shared_ptr<const geometry_msgs::PoseStamped_<std::allocator<void> > >&, const boost::shared_ptr<const geometry_msgs::Pose2D_<std::allocator<void> > >&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&>, A1 = boost::arg<1>, A2 = boost::arg<2>, A3 = boost::arg<3>, A4 = boost::arg<4>, A5 = boost::arg<5>, A6 = boost::arg<6>, A7 = boost::arg<7>, A8 = boost::arg<8>, A9 = boost ...