osrf / rosbook

Example code to accompany the book Programming Robots with ROS
Apache License 2.0
484 stars 236 forks source link

Fixed topic_sensor3.py #34

Open takujikawata opened 7 years ago

takujikawata commented 7 years ago

variable 'angle' is referenced as local variable, so main function don't get the updated value. Make the variable as global to reference the same from main and save_value function.