create.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 #
3 # License: BSD
4 # https://raw.github.com/robotics-in-concert/rocon_multimaster/license/LICENSE
5 #
6 
7 ##############################################################################
8 # Imports
9 ##############################################################################
10 
11 import gateway_msgs.msg as gateway_msgs
12 
13 ##############################################################################
14 # Methods
15 ##############################################################################
16 
17 
18 def create_gateway_remote_rule(gateway, rule):
19  r = gateway_msgs.RemoteRule()
20  r.gateway = gateway
21  r.rule = rule
22  return r
23 
24 
25 def create_gateway_rule(name, connection_type, node_name=''):
26  '''
27  Quickly hack a gateway rule.
28 
29  @param name : connection name (e.g. /chatter)
30  @type string
31  @param connection_type : one of pub, sub, etc.
32  @type gateway_msgs.ConnectionType,XXX constants
33  '''
34  r = gateway_msgs.Rule()
35  r.name = name
36  r.type = connection_type
37  r.node = node_name
38  return r
def create_gateway_remote_rule(gateway, rule)
Methods.
Definition: create.py:18
def create_gateway_rule(name, connection_type, node_name='')
Definition: create.py:25


rocon_gateway_utils
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 14:40:06