RosUtils.java
Go to the documentation of this file.
00001 package org.ros;
00002 
00003 import java.net.InetAddress;
00004 
00005 import org.ros.node.Node;
00006 import org.ros.address.InetAddressFactory;
00007 import org.ros.node.DefaultNodeFactory;
00008 import org.ros.node.NodeConfiguration;
00009 
00010 public class RosUtils {
00011 
00012         public static Node createExternalMaster(String node_name, String masterURI){
00013               java.net.URI muri =java.net.URI.create( masterURI);
00014           
00015           InetAddress host = InetAddressFactory.newNonLoopback();
00016           NodeConfiguration nodeConfiguration = NodeConfiguration.newPublic(host.getHostName(), muri);
00017 
00018          DefaultNodeFactory factory = new DefaultNodeFactory();
00019          return  factory.newNode(node_name, nodeConfiguration);
00020         }
00021 }


rosserial_android
Author(s): Adam Stambler
autogenerated on Mon Dec 2 2013 12:02:05