Skip to content

Commit

Permalink
Merge branch 'update/introspection_nodes' into nobleo-ros2
Browse files Browse the repository at this point in the history
  • Loading branch information
Richardvdketterij committed Feb 16, 2024
2 parents b21fd96 + 7c52691 commit 4f416cd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions smach_ros/smach_ros/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@
class IntrospectionClient(Node):
def __init__(self, node_name='introspection_client', **kwargs):
Node.__init__(self, node_name, **kwargs)
self._executor = SingleThreadedExecutor()
self._executor.add_node(self)
self._spinner = threading.Thread(target=self._executor.spin)
self._spinner.start()

def __del__(self):
self._executor.shutdown()
self._spinner.join()

def get_servers(self):
"""Get the base names that are broadcasting smach states."""
Expand Down Expand Up @@ -277,15 +269,6 @@ def __init__(self, server_name, state, path):
self._state = state
self._path = path

self._executor = SingleThreadedExecutor()
self._executor.add_node(self)
self._spinner = threading.Thread(target=self._executor.spin)
self._spinner.start()

def __del__(self):
self._executor.shutdown()
self._spinner.join()

def start(self):
# Construct proxies
self.construct(self._server_name, self._state, self._path)
Expand Down

0 comments on commit 4f416cd

Please sign in to comment.