Skip to content

Commit

Permalink
Improved the test_move script in ur_driver
Browse files Browse the repository at this point in the history
  • Loading branch information
hsd-dev committed Jul 2, 2019
1 parent c755a37 commit d3254ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ur_driver/test_move.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
from __future__ import print_function
import time
import sys
import rospy
import actionlib
from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal
Expand Down Expand Up @@ -111,7 +112,7 @@ def user_menu():
return choice

def main():
_use_ros_control = False

try:
rospy.init_node("test_move", anonymous=True, disable_signals=True)
print("""
Expand All @@ -120,9 +121,7 @@ def main():
Else, an empty namespace is assumed.
""")

if _use_ros_control == True:
controller_ns = get_controller().name
elif(len(sys.argv) > 0):
if(len(sys.argv) > 1):
controller_ns = sys.argv[1]
else:
controller_ns = DEFAULT_CONTROLLER_NS
Expand All @@ -149,6 +148,8 @@ def main():
else:
print("\n Invalid choice, try again!")

print("\n Invalid choice, try again!")

except KeyboardInterrupt:
rospy.signal_shutdown("KeyboardInterrupt")
raise
Expand Down

0 comments on commit d3254ad

Please sign in to comment.