Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi there!

The problem is where you put the rospy.spin().

rospy.spin() keeps the current thread alive but does not execute any other instructions.

In your example, removing the rospy.spin() command before and after while not rospy.is_shutdown () will run the code I think you want to run.