ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please look over ROS tutorials (http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers).
A subscriber object is not a message, its declaring a subscription to a topic with some parameters. The callback is what will process incoming messages. The syntax you wrote here is nonsensical with the API.
2 | No.2 Revision |
Please look over ROS tutorials (http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers).
A subscriber object is not a message, its declaring a subscription to a topic with some parameters. The callback is what will process incoming messages. The syntax you wrote here So in your example the scan_msg
is nonsensical with actually a subscriber object and the API. scan_message
is a callback function signature.