ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The key error message within all of those errors is:
/opt/ros/kinetic/include/ros/node_handle.h:402:14: note: passing ‘const ros::NodeHandle*’ as ‘this’ argument discards qualifiers
Your NodeHandle object in this context is const, and all of the variations of subscribe()
are non-const. You need to update the surrounding code to pass in a non-const NodeHandle.