diff --git a/object_tf_service.py b/object_tf_service.py index 75d8fbb..4578103 100755 --- a/object_tf_service.py +++ b/object_tf_service.py @@ -6,7 +6,6 @@ from gazebo_msgs.msg import LinkStates global SIGKILL # Horrible hack SIGKILL = False -a = 0 class tf_service(): def __init__(self): @@ -48,10 +47,8 @@ class tf_service(): rospy.signal_shutdown('User_requested') #SURPRISINGLY DIFFICULT def gazebo_link_subscriber(self): - global a # rospy.init_node('gazebo_link_subscriber') rospy.Subscriber("/gazebo/link_states", LinkStates, self._callback) - a+=1 # spin() simply keeps python from exiting until this node is stopped rospy.spin() diff --git a/run b/run index 02063ed..2ab3248 100755 --- a/run +++ b/run @@ -9,9 +9,12 @@ mv object_tf_service.py ../ echo 4 cd ../ echo 5 -python main.py +rm object_tf_service.pyc echo 6 -mv main.py RoboticSandbox/ +python main.py echo 7 +mv main.py RoboticSandbox/ +echo 8 mv object_tf_service.py RoboticSandbox/ +echo 9 echo Done