osrf / rosbook

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

Fixed fake_sensor.py #35

Open takujikawata opened 7 years ago

takujikawata commented 7 years ago

Added value and register_callback to FakeSensor, they are needed for topic_sensor publishers in the book. Changed the thread type to non-daemon. If the thread is daemon, callback senario (topic_sensor2.py in the book) doesn't stay the execution.