Skip to content

Commit

Permalink
fix sign error
Browse files Browse the repository at this point in the history
Well, this is embarrassing. Many thanks to the readers who pointed out this out.
  • Loading branch information
codebot committed Jan 22, 2016
1 parent 3d00794 commit ffea93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wanderbot/red_light_green_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
else:
cmd_vel_pub.publish(red_light_twist)
# BEGIN PART_1
if light_change_time > rospy.Time.now(): #<5>
if rospy.Time.now() > light_change_time: #<5>
driving_forward = not driving_forward
light_change_time = rospy.Time.now() + rospy.Duration(3)
# END PART_1
Expand Down

0 comments on commit ffea93d

Please sign in to comment.