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

Updated robot_driver to name the node as the namespace

parent 21ced366
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,13 @@ import cs4313_utilities.robot as robot
# a fixed series of waypoints (any "smart" behavior such as collision
# avoidance or path planning has to be implemented in the Robot class
if __name__ == "__main__":
rospy.init_node('robotNode')
ns = ""
ns = "robot1"
for argNum in range(len(sys.argv)-1):
if ((sys.argv[argNum] == '-n') or (sys.argv[argNum] == '--ns') or \
(sys.argv[argNum] == '--namespace')):
ns = sys.argv[argNum + 1]
rospy.init_node(ns)
robot = robot.SimpleRobot(namespace=ns)
# Just some canned waypoints for testing
......
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