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

Revision history [back]

my trick is create spinOnce function by calling it, the callback will be called

def spinOnce(self):
    r = rospy.Rate(self.rate)
    r.sleep()