org.ros
Class RosCore

java.lang.Object
  extended by org.ros.RosCore

public class RosCore
extends java.lang.Object

RosCore is a collection of nodes and programs that are pre-requisites of a ROS-based system. You must have a RosCore (either this implementation or the default Python implementation distributed with ROS) running in order for ROS nodes to communicate.

See Also:
roscore documentation

Method Summary
 void awaitStart()
           
 boolean awaitStart(long timeout, java.util.concurrent.TimeUnit unit)
           
 MasterServer getMasterServer()
           
 java.net.URI getUri()
           
static RosCore newPrivate()
           
static RosCore newPrivate(int port)
           
static RosCore newPublic()
           
static RosCore newPublic(int port)
           
static RosCore newPublic(java.lang.String host, int port)
           
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPublic

public static RosCore newPublic(java.lang.String host,
                                int port)

newPublic

public static RosCore newPublic(int port)

newPublic

public static RosCore newPublic()

newPrivate

public static RosCore newPrivate(int port)

newPrivate

public static RosCore newPrivate()

start

public void start()

getUri

public java.net.URI getUri()

awaitStart

public void awaitStart()
                throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

awaitStart

public boolean awaitStart(long timeout,
                          java.util.concurrent.TimeUnit unit)
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

shutdown

public void shutdown()

getMasterServer

public MasterServer getMasterServer()