Skip to content

Commit

Permalink
[jsk_robot_startup] Fix mongo record subscribe specified rate
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmtnt7000 committed Jul 3, 2023
1 parent 5093a5a commit 9f24123
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def callback(self, msg, topic):
self.insert(msg,
meta={'input_topic': topic},
wait=self.blocking)
# Unregister and register subscriber again to subscribe topic at specified rate
# See https://github.com/jsk-ros-pkg/jsk_robot/issues/1838
self.subscribers[topic].unregister()
del self.subscribers[topic]

def run(self):
rate = rospy.Rate(self.update_rate)
Expand Down

0 comments on commit 9f24123

Please sign in to comment.