ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Looking at your code, the MessageFilter tutorial, and this part of the error:
/usr/include/boost/bind/mem_fn_template.hpp:163:7: note: no known conversion for argument 2 from ‘const boost::shared_ptr<const geometry_msgs::PoseWithCovarianceStamped_<std::allocator<void> > >’ to ‘const boost::shared_ptr<geometry_msgs::PoseWithCovarianceStamped_<std::allocator<void> > >&’
I think your callback function may be missing a const (leaving unformatted so I can use bold):
void odomCallback(const boost::shared_ptr<const geometry_msgs::PoseWithCovarianceStamped>& msg);
There may be another issue, but start with that.
2 | No.2 Revision |
Looking at your code, the MessageFilter tutorial, and this part of the error:
/usr/include/boost/bind/mem_fn_template.hpp:163:7: note: no known conversion for argument 2 from ‘const boost::shared_ptr<const geometry_msgs::PoseWithCovarianceStamped_<std::allocator<void> > >’ to ‘const boost::shared_ptr<geometry_msgs::PoseWithCovarianceStamped_<std::allocator<void> > >&’
I think your callback function may be missing a const const
(leaving unformatted so I can use bold):
void odomCallback(const boost::shared_ptr<const geometry_msgs::PoseWithCovarianceStamped>& msg);
There may be another issue, but start with that.