ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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.