diff --git a/launch/example.launch~ b/launch/example.launch~ new file mode 100644 index 0000000..a7b9fe0 --- /dev/null +++ b/launch/example.launch~ @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + publishing: + - /state + - /filtered_state + - /usb_cam/image_raw/compressed + - /test_string + types: + - geometry_msgs/Point + - geometry_msgs/Point + - sensor_msgs/CompressedImage + - std_msgs/String + trusted: + - ".*" + - foo bar + - foo + - "ba[a-z]" + + + + + + + + + + + + + + + + + + + + + diff --git a/src/client_node.py b/src/client_node.py index 1bd57e7..0d1b551 100755 --- a/src/client_node.py +++ b/src/client_node.py @@ -34,6 +34,8 @@ def __init__(self, host, port, name, broadcasting, private_key, description): # Runs a loop that checks for received messages. def run(self): for topic, msg_type, trusted in self.broadcasting: + if topic[0] != "/": + topic = "/" + topic self.create_subscriber(topic, msg_type, trusted) if topic == "/receiving": rospy.logerror("{}: topic name 'receiving' is reserved".format(