Public Member Functions | |
URI | getMasterUri () throws RosRuntimeException |
URI | getMasterUri (long timeout, TimeUnit unit) |
Provides URLs for a ROS master.
Definition at line 29 of file MasterUriProvider.java.
Get a master URI.
There is no guarantee that calling this class twice will provide the same URI.
This call may or may not block until a URI is available.
RosRuntimeException | this exception may or may not be thrown if there is no master URI available |
Implemented in org.ros.master.uri.SwitchableMasterUriProvider, and org.ros.master.uri.StaticMasterUriProvider.
URI org.ros.master.uri.MasterUriProvider.getMasterUri | ( | long | timeout, |
TimeUnit | unit | ||
) |
Get a master URI within a given amount of time.
There is no guarantee that calling this class twice will provide the same URI.
This call may or may not block until a URI is available.
timeout | the amount of time to wait for a URI |
unit | the time unit for the wait time |
null
Implemented in org.ros.master.uri.SwitchableMasterUriProvider, and org.ros.master.uri.StaticMasterUriProvider.