ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
in this line :
if light_change_time > rospy.Time.now():
driving_forward = not driving_forward
should be: if light_change_time < rospy.Time.now():
By the way, the author fixed the code here:
https://github.com/osrf/rosbook/blob/master/wanderbot/red_light_green_light.py