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

Revision history [back]

click to hide/show revision 1
initial version

Hi, I was having the exact same problem. I was able to find a work around. Just put a rospy.sleep(0.01) at the very beginning of your while loop in the updated code (that you posted as an answer) or at the very beginning of BSCFun1 method. Apparently, during the sleep time, the callback functions are called and the values are updated.

Hi, I was having the exact same problem. I was able to find a work around. Just put a rospy.sleep(0.01)rospy.sleep(0.1) at the very beginning of your while loop in the updated code (that you posted as an answer) or at the very beginning of BSCFun1 method. Apparently, during the sleep time, the callback functions are called and the values are updated.