Package rocon_gateway :: Module public_interface
[frames] | no frames]

Module public_interface

source code

Classes
  PublicInterface
The public interface is the set of rules (pubs/subs/services/actions) that are exposed and made available for freely sharing with a multimaster system.
Functions
 
publicRuleExists(public_rule, public_rules)
Checks that the public rule doesn't already exist in the list of public rules (which can represent the public interface or the rules themselves).
source code
Variables
  __package__ = 'rocon_gateway'
Function Details

publicRuleExists(public_rule, public_rules)

source code 

Checks that the public rule doesn't already exist in the list of public rules (which can represent the public interface or the rules themselves). We only need to compare the name/node as they uniquely identify the name/regex

Parameters:
  • public_rule - the rule to search for @type Rule
  • public_rules - list of Rule (public, watchlist or blacklist)
  • list (list of Rule objects

    @return True if the public rule exists, False otherwise @rtype bool

    )