This is the top-level namespace of the rocon_master_info ROS package. It provides a ros node for advertising basic information about a ros master.
This module contains the machinery for advertising basic information about a ros master.
Bases: object
This class accepts a few parameters describing the ros master and then publishes the ros master info on a latched publisher. Publishing is necessary because an icon can only be represented by it’s location as a parameter. It is easier directly publishing the icon rather than having clients go do the lookup themselves.
Retrieves name, description and icon parameters from the parameter server and publishes them on a latched info topic. The icon parameter must be a ros resource name (pkg/filename).
Spin function, currently this just replicates the rospy spin function since everything is done in the constructor.
Some methods for retrieving the rocon master information. Also provides the main method for scripts/tools that do this. —-
Tries to gather the rocon master info but if not available, return with a rocon_std_msgs.MasterInfo object filled with appropriate information (“Unknown Master” ...).
Parameters: | timeout (double) – how long to blather around looking for the master info topic. |
---|---|
Returns: | the master information |
Return type: | rocon_std_msgs.MasterInfo |