diff --git a/package.xml b/package.xml
index bc08070..ab15d08 100644
--- a/package.xml
+++ b/package.xml
@@ -14,7 +14,7 @@
controller_manager_msgs
diagnostic_msgs
ros_graph_parser
- rospkg
+ python-rospkg
diff --git a/src/rosgraph_monitor/parser.py b/src/rosgraph_monitor/parser.py
index 0cb245e..514f081 100644
--- a/src/rosgraph_monitor/parser.py
+++ b/src/rosgraph_monitor/parser.py
@@ -87,13 +87,13 @@ def __init__(self, model, isFile=True):
_action_servers = Keyword("RosActionServers").suppress()
_action_server = Keyword("RosActionServer").suppress(
) | Keyword("RosServer").suppress()
- _ref_server = Keyword("RefServer").suppress()
+ _ref_server = Keyword("RefServer").suppress() | Keyword("RefActionServer").suppress()
# Actio Clients Def
_action_clients = Keyword("RosActionClients").suppress()
_action_client = Keyword("RosActionClient").suppress(
) | Keyword("RosClient").suppress()
- _ref_action_client = Keyword("RefClient").suppress()
+ _ref_action_client = Keyword("RefClient").suppress() | Keyword("RefActionClient").suppress()
# Topic Connections Def
_topic_connections = Keyword("TopicConnections").suppress()
@@ -196,8 +196,8 @@ def parse(self):
self._parse_from_file()
else:
self._parse_from_string()
- except Exception as e:
- print(e.args) # Should set a default 'result'?
+ except ParseException as e:
+ print(ParseException.explain(e, depth=0)) # Should set a default 'result'?
return self._result