Skip to content

Commit

Permalink
[trees] exceptions on interrupted or timed out trees
Browse files Browse the repository at this point in the history
  • Loading branch information
stonier committed Nov 23, 2019
1 parent c296a58 commit c82bf7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
20 changes: 13 additions & 7 deletions .pydevproject
Original file line number Diff line number Diff line change
@@ -1,46 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>









<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">









<path>/${PROJECT_DIR_NAME}</path>









</pydev_pathproperty>









<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.6</pydev_property>









<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">python3.6</pydev_property>

<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">python3</pydev_property>



Expand All @@ -50,4 +55,5 @@




</pydev_project>
4 changes: 2 additions & 2 deletions py_trees_ros/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def setup(self, timeout: float=py_trees.common.Duration.INFINITE):
try:
super().setup(setup_timeout_sec, node=self.node)
except RuntimeError as e:
if str(e) == "tree setup timed out":
raise exceptions.TimedOutError("tree setup timed out")
if str(e) == "tree setup interrupted or timed out":
raise exceptions.TimedOutError(str(e))
else:
raise

Expand Down

0 comments on commit c82bf7c

Please sign in to comment.