ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Changing
void CommandDone_received(const uav::Done &msg, std::string uav_name)
to
void CommandDone_received(const uav::Done::ConstPtr &msg, std::string uav_name)
solved the problem.I think the problem was that boost::bind provides references as shared pointers, which cannot be assigned to regular references. Used roehling's answer to this question: http://answers.ros.org/question/121831/boostbind-errors-in-subscriber-callback-functions/