Functions | |
def | _action_text (cancel=False, msg='acting') |
Methods. More... | |
def | advertise_all (cancel=False, ns=_gateway_namespace) |
def | advertise_tutorials (cancel=False, regex_patterns=False, ns=_gateway_namespace) |
def | connect_hub_by_service (ns=_gateway_namespace, raise_exception=True) |
def | create_tutorial_dictionaries (use_regex_patterns=False) |
def | find_first_remote_gateway (ns=_gateway_namespace, timeout=rospy.Duration(15.0)) |
def | flip_all (remote_gateway_name=None, cancel=False, ns=_gateway_namespace) |
def | flip_tutorials (remote_gateway_name=None, cancel=False, regex_patterns=False, ns=_gateway_namespace) |
def | pull_all (remote_gateway_name=None, cancel=False, ns=_gateway_namespace) |
def | pull_tutorials (remote_gateway_name=None, cancel=False, regex_patterns=False, ns=_gateway_namespace) |
def | wait_for_gateway (ns=_gateway_namespace, timeout=rospy.Duration(5.0)) |
Utility functions. More... | |
def | wait_for_remote_gateway (remote_gateway_name, ns=_gateway_namespace, timeout=rospy.Duration(5.0)) |
Variables | |
string | _gateway_namespace = '/gateway' |
Constants. More... | |
|
private |
Methods.
Notes about these methods: Ros is already running (i.e. rospy.init_node has been called Use the gateway namespace above (could probably make it smarter by hunting)
Definition at line 143 of file samples.py.
def rocon_gateway.samples.advertise_all | ( | cancel = False , |
|
ns = _gateway_namespace |
|||
) |
Sends a rule for advertising everything except the default blacklist.
Definition at line 148 of file samples.py.
def rocon_gateway.samples.advertise_tutorials | ( | cancel = False , |
|
regex_patterns = False , |
|||
ns = _gateway_namespace |
|||
) |
Definition at line 165 of file samples.py.
def rocon_gateway.samples.connect_hub_by_service | ( | ns = _gateway_namespace , |
|
raise_exception = True |
|||
) |
Definition at line 299 of file samples.py.
def rocon_gateway.samples.create_tutorial_dictionaries | ( | use_regex_patterns = False | ) |
Definition at line 97 of file samples.py.
def rocon_gateway.samples.find_first_remote_gateway | ( | ns = _gateway_namespace , |
|
timeout = rospy.Duration(15.0) |
|||
) |
Parses the remote gateway list to find a gateway to use for testing. It's a dumb hack to make testing quite convenient. @return gateway string name @rtype string
Definition at line 73 of file samples.py.
def rocon_gateway.samples.flip_all | ( | remote_gateway_name = None , |
|
cancel = False , |
|||
ns = _gateway_namespace |
|||
) |
Sends a rule for flipping everything to the specified remote gateway.
Definition at line 244 of file samples.py.
def rocon_gateway.samples.flip_tutorials | ( | remote_gateway_name = None , |
|
cancel = False , |
|||
regex_patterns = False , |
|||
ns = _gateway_namespace |
|||
) |
Definition at line 265 of file samples.py.
def rocon_gateway.samples.pull_all | ( | remote_gateway_name = None , |
|
cancel = False , |
|||
ns = _gateway_namespace |
|||
) |
Sends a rule for pulling everything from the specified remote gateway.
Definition at line 190 of file samples.py.
def rocon_gateway.samples.pull_tutorials | ( | remote_gateway_name = None , |
|
cancel = False , |
|||
regex_patterns = False , |
|||
ns = _gateway_namespace |
|||
) |
Definition at line 210 of file samples.py.
def rocon_gateway.samples.wait_for_gateway | ( | ns = _gateway_namespace , |
|
timeout = rospy.Duration(5.0) |
|||
) |
Utility functions.
Slowly loop (and block) until the gateway is connected to a hub.
Definition at line 30 of file samples.py.
def rocon_gateway.samples.wait_for_remote_gateway | ( | remote_gateway_name, | |
ns = _gateway_namespace , |
|||
timeout = rospy.Duration(5.0) |
|||
) |
Slowly loop (and block) until remote the gateway is visible on our hub.
Definition at line 45 of file samples.py.
|
private |
Constants.
Definition at line 23 of file samples.py.