Skip to content

Commit d68de4f

Browse files
authored
Merge pull request #182 from compas-dev/closing_event
Use closing event
2 parents f00546b + 421fd4b commit d68de4f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
requirements = [
1313
# Until COMPAS reaches 1.0, we pin major.minor and allow patch version updates
1414
'compas>=0.16.1,<0.17',
15-
'roslibpy>=0.7.1',
15+
'roslibpy>=1.1.0',
1616
'pyserial',
1717
]
1818
keywords_list = ['robotic fabrication', 'digital fabrication', 'architecture', 'robotics', 'ros']

src/compas_fab/backends/ros/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ def __enter__(self):
150150
return self
151151

152152
def __exit__(self, *args):
153-
self.planner.dispose_planner()
154-
# self.closing() ?
155153
self.close()
156154

157155
def load_robot(self, load_geometry=False, urdf_param_name='/robot_description', srdf_param_name='/robot_description_semantic', precision=None, local_cache_directory=None):

src/compas_fab/backends/ros/planner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, client):
3232
self.attached_collision_object_topic = None
3333

3434
self.client.on_ready(self.init_planner)
35-
# self.client.on_closing(self.dispose_planner)
35+
self.client.on('closing', self.dispose_planner)
3636

3737
@forward_docstring(MoveItForwardKinematics)
3838
def forward_kinematics(self, *args, **kwargs):

0 commit comments

Comments
 (0)