Skip to content
Snippets Groups Projects
Commit 2ce5d6fa authored by Davis, Duane T's avatar Davis, Duane T
Browse files

Minor bug fix to ensure callbacks fire before first waypoint is set

parent f11d1eeb
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ if __name__ == "__main__":
# Just some canned waypoints for testing
waypointList = [[5.0, 5.0], [-10.0, 5.0], [-5.0, -5.0], [10.0, -5.0], [0.0, 0.0] ]
rbt.spinOnce() # Let it process at least one round of callbacks before starting
for waypoint in waypointList:
print("Setting waypoint (" + str(waypoint[0]) + ", " + str(waypoint[1]) + ")")
robot.setWaypoint(waypoint[0], waypoint[1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment