ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm pretty sure its because you marked your method signature as const
but are modifying a non-const member variable robot
. You should remove the void topic_callback(const std_msgs::msg::String &msg) **const**
.