Skip to content

Commit

Permalink
Merge pull request #298 from tue-robotics/feature/remove_default_robo…
Browse files Browse the repository at this point in the history
…t_name

Remove default robot name in robot_constructor
  • Loading branch information
LoyVanBeek committed May 30, 2017
2 parents 1e1ce68 + f0fb28a commit 29a04c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions robot_skills/src/robot_skills/util/robot_constructor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys

def robot_constructor(robot_name=None):
"""Construct a robot by it's name. Choices are amigo, sergio, mockbot"""
if not robot_name:
robot_name = sys.argv[1]
def robot_constructor(robot_name):
"""Construct a robot by it's name. Choices are amigo, sergio, mockbot
:param robot_name str of robot name. Current options are amigo, sergio, mockbot
:returns a Robot-instance"""

if robot_name == "amigo":
import robot_skills.amigo
Expand Down

0 comments on commit 29a04c0

Please sign in to comment.