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

Revision history [back]

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.

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.