ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You code with create_subscription
has error in the std::bind
- you have &ClassNmae::sub_cb
here + there is no stamp
in the MyHeader.msg
definition.
Did you want to use std_msgs/Header.msg
? It is a different thing, widely used, so the name clash was possible.