ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.