osrf / rosbook

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

Fixed topic_sensor3.py #34

Open takujikawata opened 6 years ago

takujikawata commented 6 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.