Functions
rocon_python_comms::topics Namespace Reference

Functions

def find_topic
 Find topics/services.

Function Documentation

def rocon_python_comms.topics.find_topic (   topic_type,
  timeout = rospy.rostime.Duration(5.0),
  unique = False 
)

Find topics/services.

  Do a lookup to find topics of the type
  specified. This will raise exceptions if it times out or returns
  multiple values. It can apply the additional logic of whether this should
  return a single unique result, or a list.

  @param topic_type : topic type specification, e.g. rocon_std_msgs/MasterInfo
  @type str

  @param timeout : raise an exception if nothing is found before this timeout occurs.
  @type rospy.rostime.Duration

  @param unique : flag to select the lookup behaviour (single/multiple results)
  @type bool

  @return the fully resolved name of the topic (unique) or list of names (non-unique)
  @type str

  @raise rocon_python_comms.NotFoundException if no topic is found within the timeout

Definition at line 20 of file topics.py.



rocon_python_comms
Author(s): Daniel Stonier
autogenerated on Fri May 2 2014 10:35:42