ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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