Skip to content

Commit

Permalink
Merge pull request #103 from tue-robotics/fix/hero_in_ac2
Browse files Browse the repository at this point in the history
Added Hero as robot object
  • Loading branch information
MatthijsBurgh authored Jan 15, 2019
2 parents de3e2fd + 2f89f78 commit 0749c69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action_server/src/action_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
rospy.init_node('action_server')

try:
robot_name = rospy.get_param('~robot_name')
robot_name = rospy.get_param('~robot_name').lower()
except KeyError:
rospy.logerr("Please provide a 'robot_name'")
exit(0)
Expand All @@ -23,8 +23,10 @@
from robot_skills.amigo import Amigo as Robot
elif robot_name == 'sergio':
from robot_skills.sergio import Sergio as Robot
elif robot_name == 'hero':
from robot_skills.hero import Hero as Robot
else:
rospy.logerr("'robot_name' must be either 'amigo' or 'sergio'")
rospy.logerr("'robot_name' must be 'amigo', 'sergio' or 'hero'")
sys.exit()

robot = Robot()
Expand Down

0 comments on commit 0749c69

Please sign in to comment.