We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac8a40 commit defbba8Copy full SHA for defbba8
rostwitter/scripts/tweet_image_server.py
@@ -70,7 +70,7 @@ def _execute_cb(self, goal):
70
self.image_topic_name = goal.image_topic_name
71
with self.lock:
72
self.img[self.image_topic_name] = None
73
- self.sub = rospy.Subscriber(
+ sub = rospy.Subscriber(
74
self.image_topic_name, Image,
75
self._image_cb)
76
@@ -130,8 +130,7 @@ def _execute_cb(self, goal):
130
else:
131
rospy.logerr('cannot subscribe image: {}'.format(self.image_topic_name))
132
ret = self.api.post_update(goal.text)
133
- self.sub.unregister()
134
- del self.sub
+ sub.unregister()
135
136
137
0 commit comments