Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 import gateway_msgs.msg as gateway_msgs
00012
00013
00014
00015
00016
00017
00018 def create_gateway_remote_rule(gateway, rule):
00019 r = gateway_msgs.RemoteRule()
00020 r.gateway = gateway
00021 r.rule = rule
00022 return r
00023
00024
00025 def create_gateway_rule(name, connection_type, node_name=''):
00026 '''
00027 Quickly hack a gateway rule.
00028
00029 @param name : connection name (e.g. /chatter)
00030 @type string
00031 @param connection_type : one of pub, sub, etc.
00032 @type gateway_msgs.ConnectionType,XXX constants
00033 '''
00034 r = gateway_msgs.Rule()
00035 r.name = name
00036 r.type = connection_type
00037 r.node = node_name
00038 return r