This commit is contained in:
Max Hunt 2020-02-10 13:15:20 +00:00
parent cb0ea7c6f6
commit aa14c87b82

View File

@ -40,7 +40,7 @@ class tf_service():
def gazebo_link_subscriber(self): def gazebo_link_subscriber(self):
rospy.init_node('gazebo_link_subscriber') rospy.init_node('gazebo_link_subscriber')
rospy.Subscriber("/gazebo/link_states", LinkStates, callback) rospy.Subscriber("/gazebo/link_states", LinkStates, self._callback)
# spin() simply keeps python from exiting until this node is stopped # spin() simply keeps python from exiting until this node is stopped
rospy.spin() rospy.spin()