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

iteration here is a local variable, not a member variable of your class. So the variable you iterate in the iterate() function is completely different than the variable you check in your loop. Use self.iteration instead of iteration.