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

Fixed a naming error (robot versus rbt) in robot_driver.py

parent 5bb19f4f
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ if __name__ == "__main__":
ns = sys.argv[argNum + 1]
rospy.init_node(ns)
robot = robot.SimpleRobot(namespace=ns)
rbt = robot.SimpleRobot(namespace=ns)
# 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] ]
......@@ -23,8 +23,8 @@ if __name__ == "__main__":
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])
rbt.setWaypoint(waypoint[0], waypoint[1])
while not robot.isAtWaypoint:
robot.spinOnce()
rbt.spinOnce()
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