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

The two detected variables are in two different scopes. You have to use a global variable, if you want to solve the problem like this.

Your count variable will also not work as intended. Have a look at pythons variable scoping. It seems you haven't understand it yet completely.

The two detected variables are in two different scopes. You have to use a global variable, if you want to solve the problem like this.

Your count variable will also not work as intended. Have a look at pythons variable scoping. It seems you haven't understand understood it yet completely.