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

Revision history [back]

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**.