Functions | Variables
rocon_gateway::samples Namespace Reference

Functions

def _action_text
 Methods.
def advertise_all
def advertise_tutorials
def connect_hub_by_service
def create_tutorial_dictionaries
def find_first_remote_gateway
def flip_all
def flip_tutorials
def pull_all
def pull_tutorials
def wait_for_gateway
 Utility functions.
def wait_for_remote_gateway

Variables

string _gateway_namespace = '/gateway'
 Constants.

Function Documentation

def rocon_gateway.samples._action_text (   cancel = False,
  msg = 'acting' 
) [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 163 of file samples.py.

def rocon_gateway.samples.connect_hub_by_service (   ns = _gateway_namespace,
  raise_exception = True 
)

Definition at line 287 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 236 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 255 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 186 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 204 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.


Variable Documentation

Constants.

Definition at line 23 of file samples.py.



rocon_gateway
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Sat Jun 8 2019 18:48:44